|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
文件夹里有7个文件,其中non.m是我自己写的,使用拉fmincon函数~
其余六个是matlab自带的文件~
把它放到都一个文件夹里~
在wokspacez中输入初始值~
Aeq=[ 0.5878 0.7405 0.7953 0.1760 -0.1652;
0.7925 0.1322 -0.5317 -0.9827 0.8718;
-0.1623 -0.6963 -0.2908 0.0573 0.4611];
再运行non(Aeq)
就可的结果拉~
但在matcom中总有错~
我把缺少的文件加进去,他又说少别的~越加越多阿,没完啦~
恳请大侠指点阿~
谢谢阿~
错误如下~
籈rror D:\program\matlab7.1\work\fmincon.m 138: 'switch optimget(options,'Display',defaultopt,'fast')'
'optimget' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 168: 'mtxmpy = optimget(options,'HessMult',defaultopt,'fast');'
'optimget' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 177: 'diagnostics = isequal(optimget
(options,'Diagnostics',defaultopt,'fast'),'on');'
'optimget' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 178: 'gradflag = strcmp(optimget
(options,'GradObj',defaultopt,'fast'),'on');'
'optimget' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 179: 'hessflag = strcmp(optimget
(options,'Hessian',defaultopt,'fast'),'on');'
'optimget' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 185: 'gradconstflag = strcmp(optimget
(options,'GradConstr',defaultopt,'fast'),'on');'
'optimget' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 186: 'line_search = strcmp(optimget
(options,'LargeScale',defaultopt,'fast'),'off'); % 0 means trust-region, 1 means line-search'
'optimget' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 276: 'XOUT = startx(u,l);'
'startx' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 368: 'if findstr(xlate('Too many output arguments'),lasterr)'
'xlate' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 376: 'errmsg = sprintf('%s%s%s\n%s%s', ...'
'func2str' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 450: 'msg = diagnose
('fmincon',OUTPUT,gradflag,hessflag,constflag,gradconstflag,...'
'diagnose' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 481: '[X,FVAL,LAMBDA,EXITFLAG,OUTPUT,GRAD,HESSIAN] = ...'
'sfminbx' was not found. Please debug the code.
Error D:\program\matlab7.1\work\fmincon.m 481: '[X,FVAL,LAMBDA,EXITFLAG,OUTPUT,GRAD,HESSIAN] = ...'
argument internal error |
|