Slack variables value and multipliers #574
-
Hello! I am trying to do some sensitivity analysis to optimal solutions I get from Ipopt, but I am struggling to get the slack variables and their associated multipliers. In the finalize_solution method, I save them as:
But I find that the slack variables I get they are outside the range given by c_lb < s < c_ub (in my case, if c_ub = 2.0, the slack variable is 2.000000017493693) The problem with this, is that the Hessian matrix I will compute for my post analysis is not definite positive, since the term v_u / (c_ub - s) < 0 (being v_u the associated upper bound multiplier). So my first question is then: It is expected that the slack variables get out of bounds? Many thanks in advance!!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I just saw that setting Cheers, Juan. |
Beta Was this translation helpful? Give feedback.
I just saw that setting
relax_bound_factor
to 0 solves the issue. Just for my education, what side effect can have setting this value to zero?Cheers,
Juan.