Error : Failure in initial user-supplied nonlinear constraint function evaluation.
Hello everyone!
I’m encountering an issue with my MATLAB code and could use some assistance. Specifically, I’m getting the following error message:
[sol, fval, exitflag, output] = solve(prob);
Caused by:
Failure in initial user-supplied nonlinear constraint function evaluation.
It seems to be related to the evaluation of the nonlinear constraint function. I’ve attached the relevant part of my code below. I’m particularly confused because I linearised all my constraint terms, so I wasn’t expecting any non-linearity.
Could you please help me identify the issue and suggest any potential fixes?
Thank you!
best Regards!
MyProblem()Hello everyone!
I’m encountering an issue with my MATLAB code and could use some assistance. Specifically, I’m getting the following error message:
[sol, fval, exitflag, output] = solve(prob);
Caused by:
Failure in initial user-supplied nonlinear constraint function evaluation.
It seems to be related to the evaluation of the nonlinear constraint function. I’ve attached the relevant part of my code below. I’m particularly confused because I linearised all my constraint terms, so I wasn’t expecting any non-linearity.
Could you please help me identify the issue and suggest any potential fixes?
Thank you!
best Regards!
MyProblem() Hello everyone!
I’m encountering an issue with my MATLAB code and could use some assistance. Specifically, I’m getting the following error message:
[sol, fval, exitflag, output] = solve(prob);
Caused by:
Failure in initial user-supplied nonlinear constraint function evaluation.
It seems to be related to the evaluation of the nonlinear constraint function. I’ve attached the relevant part of my code below. I’m particularly confused because I linearised all my constraint terms, so I wasn’t expecting any non-linearity.
Could you please help me identify the issue and suggest any potential fixes?
Thank you!
best Regards!
MyProblem() nlp, optimization, error MATLAB Answers — New Questions