Skip to content

Commit

Permalink
Fix bug setting constraints: must have minus sign
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjohansson committed Oct 9, 2024
1 parent 83db3fb commit 4b389cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/Calibration/EquilibriumCalibrationSetup.m
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ function printVariableChoice(ecs)

n = size(ecs.bounds.lower, 1);
linIneq.A = [-eye(n); eye(n)];
linIneq.b = [ecs.bounds.lower; ecs.bounds.upper];
linIneq.b = [-ecs.bounds.lower; ecs.bounds.upper];

params = {'objChangeTol' , 1e-12, ...
'maximize' , false, ...
Expand Down

0 comments on commit 4b389cb

Please sign in to comment.