求助,fmincon函数报错
各位前辈,本人初次接触matlab,在使用fmincon函数后报告如下错误:
??? Error using ==> fmincon
The constraint function mycon must return two outputs:
the nonlinear inequality constraints and the nonlinear equality constraints.
意思是说我的那个非线性约束函数必须有两个输出值,但是在我的mycon函数里已经有了c和ceq了 为什么还报错呢 请前辈们指教,谢谢了
|