Hello Guys,
great work with CasADi. I am a student and have to work with it and I pretty like it.
Now to my questions. I get the following warning:
CasADi - WARNING("solver:nlp_jac_g failed: NaN detected for output jac_g_x, at nonzero index 1 (row 2, col 0).") [.../casadi/core/oracle_function.cpp:249]
I'm not sure what it is about and would like to know it. Have anybody an idea, where I can search for the error or solution?
Is it the g array or an issue in the boundaries?
Another question and maybe the solution for the first, but I don't know if it is related, is my fabs() calculation.
I have a constrain, that the input has to be between 20 and 80. Another constrain in g is, that the input has to be 5 away from a integer number between the 20 and 80. Is it possible, that for example, if the integer is 50, the optimizer is looking for a solution from 30 upwarts with the gradient, and get stuck at 45 without checking, if the costfunction has a smaller value, higher than 55?