主题: [MATLAB工具箱] 求助,fmincon函数报错
查看单个帖子
旧 2011-01-31, 13:01   #1
zj201
初级会员
 
注册日期: 2011-01-31
年龄: 40
帖子: 4
声望力: 0
zj201 正向着好的方向发展
默认 求助,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了 为什么还报错呢 请前辈们指教,谢谢了
zj201 当前离线   回复时引用此帖