From 4b389cb6a5988f0c31cdc57411e20db86b6f21d8 Mon Sep 17 00:00:00 2001 From: August Johansson Date: Wed, 9 Oct 2024 14:27:37 +0200 Subject: [PATCH] Fix bug setting constraints: must have minus sign --- Utilities/Calibration/EquilibriumCalibrationSetup.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/Calibration/EquilibriumCalibrationSetup.m b/Utilities/Calibration/EquilibriumCalibrationSetup.m index 68693a89..385dd936 100644 --- a/Utilities/Calibration/EquilibriumCalibrationSetup.m +++ b/Utilities/Calibration/EquilibriumCalibrationSetup.m @@ -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, ...