Hello there!
What is the current behaviour of Knitro (as of 13.2) when the function, Jacobian, or Hessian encounters an inf or NaN? I saw in an old post, from 2015, that the solver will take a shorter step until a feasible answer is obtained. However, I see that the following return code is possible:
KN_RC_EVAL_ER:
This termination value indicates that an evaluation error occurred
(e.g., divide by 0, taking the square root of a negative number),
preventing the optimization from continuing.
Kind regards
TD