声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1307|回复: 5

[编程技巧] MATLAB优化的问题出现的警告信息(附程序)

[复制链接]
发表于 2007-8-13 10:15 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
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 pantograph_solve at 11
Error in ==> optim\private\nlconst at 632
               YL(YIND)=YL(YIND)/2;
Error in ==> fmincon at 512
   [X,FVAL,lambda,EXITFLAG,OUTPUT,GRAD,HESSIAN]=...
Error in ==> pantograph_solve at 11
[x,fval,exitflag,output,lambda,grad,hessian]=fmincon(@pantograph,x0,A,b,Aeq,beq,lb,ub,@mycon_pantograph)%,options)

我编写了MATLAB优化的程序,在运行时出现了上面的错误,是什么原因阿?请指教!!!

[ 本帖最后由 eight 于 2007-8-15 20:34 编辑 ]
回复
分享到:

使用道具 举报

发表于 2007-8-13 10:49 | 显示全部楼层
怎么不把相关代码发上来啊,有的错误的可能性太多!
 楼主| 发表于 2007-8-13 10:55 | 显示全部楼层
好的,我把我的程序传上来
 楼主| 发表于 2007-8-13 10:58 | 显示全部楼层

程序

ehbelta.m

1 KB, 下载次数: 9

mycon_pantograph.m

322 Bytes, 下载次数: 7

pantograph.m

108 Bytes, 下载次数: 6

pantograph_solve.m

371 Bytes, 下载次数: 6

发表于 2007-8-15 20:33 | 显示全部楼层
原帖由 行之 于 2007-8-13 10:15 发表
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 pantograph_solve at 11
Error in ==> ...



这个 warning 论坛早就有讨论,请自己搜索一下
 楼主| 发表于 2007-8-16 13:43 | 显示全部楼层
具体在哪里?

[ 本帖最后由 eight 于 2007-8-17 20:14 编辑 ]
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-24 01:25 , Processed in 0.065800 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表