24小时热门版块排行榜    

查看: 1341  |  回复: 1

egoo147963

新虫 (初入文坛)

[求助] Matlab中有一句程序是[x,y]=fmincon('disc_m'......错误提示怎么解决?

Matlab中有一句程序是[x,y]=fmincon('disc_m',x0,[],[],[],[],lb,ub,'disc_y')
错误提示为:
Warning: Trust-region-reflective algorithm does not solve this type of problem, using active-set algorithm. You could also try the interior-point or sqp algorithms: set the Algorithm option
to 'interior-point' or 'sqp' and rerun. For more help, see Choosing the Algorithm in the documentation.
> In fmincon at 472
??? Error using ==> feval
Undefined function or method 'disc_m' for input arguments of type 'double'.

Error in ==> fmincon at 574
      initVals.f = feval(funfcn{3},X,varargin{:});

Caused by:
    Failure in initial user-supplied objective function evaluation. FMINCON cannot continue.
请问怎么办,本科matlab菜鸟 求教大神,万分感谢
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

qq2537742567

新虫 (小有名气)


让你通过option set 换个算法来算。
2楼2014-04-14 12:52:11
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 egoo147963 的主题更新
信息提示
请填处理意见