@@ -654,9 +654,9 @@ function parse_model!(exprs, comps, ext, eqs, icon, vs, ps, sps, c_evts, d_evts,
654
654
elseif mname == Symbol (" @defaults" )
655
655
parse_system_defaults! (exprs, arg, dict)
656
656
elseif mname == Symbol (" @constraints" )
657
- parse_costs ! (cons, dict, body)
657
+ parse_constraints ! (cons, dict, body)
658
658
elseif mname == Symbol (" @costs" )
659
- parse_constraints ! (costs, dict, body)
659
+ parse_costs ! (costs, dict, body)
660
660
elseif mname == Symbol (" @consolidate" )
661
661
parse_consolidate! (body, dict)
662
662
else
@@ -1160,7 +1160,7 @@ function parse_constraints!(cons, dict, body)
1160
1160
Base. remove_linenums! (body)
1161
1161
for arg in body. args
1162
1162
push! (cons, arg)
1163
- push! (dict[:constraints ], readable_code .(cons) ... )
1163
+ push! (dict[:constraints ], readable_code (arg) )
1164
1164
end
1165
1165
end
1166
1166
@@ -1169,7 +1169,7 @@ function parse_costs!(costs, dict, body)
1169
1169
Base. remove_linenums! (body)
1170
1170
for arg in body. args
1171
1171
push! (costs, arg)
1172
- push! (dict[:costs ], readable_code .(costs) ... )
1172
+ push! (dict[:costs ], readable_code (arg) )
1173
1173
end
1174
1174
end
1175
1175
0 commit comments