注册 登录
编程论坛 Matlab

[求助]是否需要安装优化工具箱

sway9821205 发布于 2007-09-29 11:43, 1269 次点击

我装的版本是6.5 听说还要安装优化工具箱 我编了个程序是使用fmincon函数,请问是否需要安装 这是运行结果

??? Error using ==> fmincon
FMINCON cannot continue because user supplied nonlinear constraint function
failed with the following error:

Error: File: c:\MATLAB6p5\work\mycon.m Line: 82 Column: 317
Missing operator, comma, or semicolon.

Error in ==> c:\MATLAB6p5\work\design.m
On line 386 ==> [x,fval,exitflag,output]=fmincon(@designobj,x0,A,B,[],[],lb,ub,@mycon,options,s,p,a,b1,c1,d,e,t)

1 回复
#2
hitzhang2007-10-02 10:41

是的,fmincon函数中有优化工具箱的内置函数
只用这一次的话,我建议你用别的电脑
如果你经常用或是问题规模较大,建议你用专业的优化软件,像LINGO很容易学的,而且结果的可信度比Matlab要好,算法灵活稳定性好。

1