maybe_add_self_consistency
doesn't work for single-stage optimization
#1234
Labels
bug
Something isn't working
coil
stuff relating to coils and coil optimization
easy
Short and simple to code or review
objectives
Adding or improving objective functions
optimization
Adding or improving optimization methods
P3
Highest Priority, someone is/should be actively working on this
The optimizer only calls
maybe_add_self_consistency
if the objective is not aProximalProjection
. This means it will not get called in single-stage optimization, and the corresponding curve constraints will not be applied.A possible solution would be to split
maybe_add_self_consistency
into two separate functions: one for constraints applied to theEquilibrium
and another for all other things. The former would still only be applied when the objective is not aProximalProjection
, but the latter would always get called for all optimizations. This is because the proximal optimizer has special logic specific to equilibria.Obviously the user can manually add them for now to make this work.
The text was updated successfully, but these errors were encountered: