Hi Joris,
I have the following type of code: (I am using the bonmin solver, that contain both noninteger, and integer variables)
self.c = self.opti.parameter(1,1)
self.opti.set_value(self.c, value)
self.opti.subject_to(2 >= self.c)
When I run my code, I get this error:
CasADi - 2020-08-24 13:43:09 WARNING("solver:nlp_grad failed: NaN detected for output grad_gamma_p, at (row 27, col 0).") [.../casadi/core/oracle_function.cpp:265]
CasADi - 2020-08-24 13:43:09 WARNING("Failed to calculate multipliers") [.../casadi/core/nlpsol.cpp:606]
However, if I don't use a parameter variable, and instead just set self.c = some constant value, then I no longer get the error. The behavior using the parameter versus not using the parameter seem the same, but seeing this error is still getting me nervous.
thanks for any help on this,
Alex