I am using Least square method in Matlab to solve a Non Linear problem. Problem is bound constrained. When I run the code sometimes I got this error:

"Error using snls (line 47)

Objective function is returning undefined values at initial point. lsqcurvefit cannot continue"

So what can this problem be? I also checked the objective function values at initial points, it is  giving negative values.

Can anyone help to figure out this problem? When and how does  this occur and how can I solve it?

Thanks in Advance!

 

  

More Mahak Singh Chauhan's questions See All
Similar questions and discussions