matlab 非线性规划问题,我的变量有40个,很急编程后,出现的错误是:Warning: Large-scale (trust region) method does not currently solve this type of problem, switching to medium-scale (line search).> In fmincon at 274 In youh1 at
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/07 21:19:56
matlab 非线性规划问题,我的变量有40个,很急编程后,出现的错误是:Warning: Large-scale (trust region) method does not currently solve this type of problem, switching to medium-scale (line search).> In fmincon at 274 In youh1 at
matlab 非线性规划问题,我的变量有40个,很急
编程后,出现的错误是:
Warning: Large-scale (trust region) method does not currently solve this type of problem,
switching to medium-scale (line search).
> In fmincon at 274
In youh1 at 3
? Function 'lt' is not defined for values of class 'sym'.
Error in ==> C:\Program Files\MATLAB71\toolbox\shared\optimlib\nlconst.p>nlconst at 744
Error in ==> fmincon at 512
[X,FVAL,lambda,EXITFLAG,OUTPUT,GRAD,HESSIAN]=...
Error in ==> youh1 at 3
[x,fval]=fmincon('myfun1',x0,[],[],[],[],[],[],'mycon1')
请问该怎么解决啊,急
matlab 非线性规划问题,我的变量有40个,很急编程后,出现的错误是:Warning: Large-scale (trust region) method does not currently solve this type of problem, switching to medium-scale (line search).> In fmincon at 274 In youh1 at
关于整数优化方面,Matlab还没有现成的工具箱可以使用,建议:
1:使用GA算法,你这个是线性优化,用GA很容易完成
2:Matlab里调用开源的算法,这是我们经常用的,开源的算法有:
lpsolve55.dll,使用这个,现在我们已经能做到2万个变量的整数优化,时间在6分钟左右
3: Matlab里调用Lindo的API,这个适合公司、院校,毕竟Lindo的API是付费的,用过lingo的人都知道,lingdo在整数优化方面,无人能及,lindo就是lingo的API