Skip to content

Commit

Permalink
fix: call complete when OptimizationSystems are simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jan 30, 2024
1 parent cb661bb commit 197da7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/systems/optimization/optimizationsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -621,5 +621,6 @@ function structural_simplify(sys::OptimizationSystem; kwargs...)
neweqs = fixpoint_sub.(equations(sys), (subs,))
@set! sys.op = length(neweqs) == 1 ? first(neweqs) : neweqs
@set! sys.states = newsts
sys = complete(sys)
return sys
end

0 comments on commit 197da7c

Please sign in to comment.