Debugging NLopt :FORCED_STOP

Log the points at which it is evaluating the function by adding a println(p) to your nlfunc. That may help.

It’s hard to offer more advice without a minimal working example (what is value_depending_on_sol, for example).

1 Like