matlab求解线性规划问题的linprog中option这个参数是干嘛的?求帮助

Song_joe 2012-08-24 12:07:02
用matlab解线性规划中linprog(...,...,option)这个option书上说是“控制参数”,是干什么的?我见到的实际问题中option都用zeros(3,1)填的,代表什么意思?(我做的是三维问题)
ps:matlab中对option的解释是
Options are Display, Diagnostics, TolFun, LargeScale, MaxIter.
Currently, only 'final' and 'off' are valid values for the parameter
Display when LargeScale is 'off' ('iter' is valid when LargeScale
is 'on').求大神搭救!

...全文
1556 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Ly_090908008 2013-04-23
  • 打赏
  • 举报
回复
能加你QQ吗 我的毕业设计是关于线性规划灵敏度分析及matlab程序设计的。 能探讨探讨么? QQ:942279511 谢谢了
zhsw08 2012-11-23
  • 打赏
  • 举报
回复
linprog各个参数的输入是有顺序的,下限lb、上限ub、初始值x0都在options前面,所以,你的zeros(3,1),应该是指下限,即3个变量大于0;如果要指定options,需先给lb、ub、x0赋值,若不赋值,则需用[]标出
Song_joe 2012-08-25
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

Options are Display, Diagnostics, TolFun, LargeScale, MaxIter.
参数是这些 Display, Diagnostics, TolFun, LargeScale, MaxIter
Currently, only 'final' and 'off' are valid values for the parameter
Displ……
[/Quote]
先谢谢你。我明白点了,options的位置可以填Display,Diagnostics,TolFun,LargeScale,Maxiter.
linprog的原型是[x,fval]=linprog(c,A,b,Aeq,beq,LB,UB,X0,OPTIONS)
我碰到的题是这样
c=[2;3;-5];
a=[-2,5,-1;1,3,1]; b=[-10;12];
aeq=[1,1,1];
beq=7;
x=linprog(-c,a,b,aeq,beq,zeros(3,1))
这个zeros(3,1)对应于原型里的哪个参数啊?
Song_joe 2012-08-25
  • 打赏
  • 举报
回复
先谢谢你。我明白点了,options的位置可以填Display,Diagnostics,TolFun,LargeScale,Maxiter.
linprog的原型是[x,fval]=linprog(c,A,b,Aeq,beq,LB,UB,X0,OPTIONS)
我碰到的题是这样
c=[2;3;-5];
a=[-2,5,-1;1,3,1]; b=[-10;12];
aeq=[1,1,1];
beq=7;
x=linprog(-c,a,b,aeq,beq,zeros(3,1))
这个zeros(3,1)对应于原型里的哪个参数啊?
Gloveing 2012-08-24
  • 打赏
  • 举报
回复
Options are Display, Diagnostics, TolFun, LargeScale, MaxIter.
参数是这些 Display, Diagnostics, TolFun, LargeScale, MaxIter
Currently, only 'final' and 'off' are valid values for the parameter
Display when LargeScale is 'off' ('iter' is valid when LargeScale
is 'on').
目前只有'final' and 'off' 在LargeScale is 'off' 的时候,只有'final' 和'off' 是有效的
Gloveing 2012-08-24
  • 打赏
  • 举报
回复
Options are Display, Diagnostics, TolFun, LargeScale, MaxIter.
参数是这些 Display, Diagnostics, TolFun, LargeScale, MaxIter
Currently, only 'final' and 'off' are valid values for the parameter
Display when LargeScale is 'off' ('iter' is valid when LargeScale
is 'on').
目前只有'final' and 'off' 在LargeScale is 'off' 的时候,只有'final' 和'off' 是有效的

3,425

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧