Skip to content

Commit 3bcc420

Browse files
authored
switch parse_costs! and parse_constraints
It seems like they are currently backward
1 parent 3503046 commit 3bcc420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/model_parsing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,9 @@ function parse_model!(exprs, comps, ext, eqs, icon, vs, ps, sps, c_evts, d_evts,
654654
elseif mname == Symbol("@defaults")
655655
parse_system_defaults!(exprs, arg, dict)
656656
elseif mname == Symbol("@constraints")
657-
parse_costs!(cons, dict, body)
657+
parse_constraints!(cons, dict, body)
658658
elseif mname == Symbol("@costs")
659-
parse_constraints!(costs, dict, body)
659+
parse_costs!(costs, dict, body)
660660
elseif mname == Symbol("@consolidate")
661661
parse_consolidate!(body, dict)
662662
else

0 commit comments

Comments
 (0)