Question: Error in statement breaks the loop - change this behaviour

Hello

I am running NLPSolve within a loop over some values of parameters. For one of the parameter values, the NLPSolve gives me

Error, (in Optimization:-NLPSolve) no improved point could be found
 

and exits the loop. How do I change this behaviour? I would like the loop to continue for other parameters.

I have tried interface(errorbreak=0) interface(errorcursor=false) but this didn't work.

Can anyone help please.

Thank you, Best Regards

Jan Zapal

 

 

Please Wait...