用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').求大神搭救!
------解决方案--------------------------------------------------------
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' 是有效的
------解决方案--------------------------------------------------------
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' 是有效的
------解决方案--------------------------------------------------------
linprog各个参数的输入是有顺序的,下限lb、上限ub、初始值x0都在options前面,所以,你的zeros(3,1),应该是指下限,即3个变量大于0;如果要指定options,需先给lb、ub、x0赋值,若不赋值,则需用[]标出