adamgreenhall / minpower

power systems tools made beautiful
adamgreenhall.github.io/minpower
71 stars 33 forks source link

component already defined when lines get constraition #26

Open WhitejadeHang opened 1 year ago

WhitejadeHang commented 1 year ago

RuntimeError: Cannot add component 'swing_bus_i0_t00' (type <class 'pyomo.core.base.constraint.AbstractScalarConstraint'>) to block 'power system problem': a component by that name (type <class 'pyomo.core.base.constraint.ScalarConstraint'>) is already defined.

adamgreenhall commented 1 year ago

Hi there - I'm not actively working on this project anymore and don't have the bandwidth to debug this issue. I'm happy to review PRs though, if are using it and have a fix.