matlab中用linprog函数提示Optimization terminated怎么解?
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/15 20:25:07
matlab中用linprog函数提示Optimization terminated怎么解?
F=[10 90 20 80 40 70 50 60 30 60 80 40];
m=[1 1 1 1 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1 0 0 0 0
0 0 0 0 0 0 0 0 1 1 1 1
1 0 0 0 1 0 0 0 1 0 0 0
0 1 0 0 0 1 0 0 0 1 0 0
0 0 1 0 0 0 1 0 0 0 1 0
0 0 0 1 0 0 0 1 0 0 0 1];
n=[4 3 5 2 4 3 3];
M=[0 0 0 0 0 0 0 0 0 0 0 0];
[X,v]=linprog(F,[],[],m,n,M);
老提示Optimization terminated,
F=[10 90 20 80 40 70 50 60 30 60 80 40];
m=[1 1 1 1 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1 0 0 0 0
0 0 0 0 0 0 0 0 1 1 1 1
1 0 0 0 1 0 0 0 1 0 0 0
0 1 0 0 0 1 0 0 0 1 0 0
0 0 1 0 0 0 1 0 0 0 1 0
0 0 0 1 0 0 0 1 0 0 0 1];
n=[4 3 5 2 4 3 3];
M=[0 0 0 0 0 0 0 0 0 0 0 0];
[X,v]=linprog(F,[],[],m,n,M);
老提示Optimization terminated,
F=[10 90 20 80 40 70 50 60 30 60 80 40];
>> m=[1 1 1 1 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1 0 0 0 0
0 0 0 0 0 0 0 0 1 1 1 1
1 0 0 0 1 0 0 0 1 0 0 0
0 1 0 0 0 1 0 0 0 1 0 0
0 0 1 0 0 0 1 0 0 0 1 0
0 0 0 1 0 0 0 1 0 0 0 1];
>> n=[4;3;5;2;4;3;3];
>> [x,fval]=linprog(F,[],[],m,n,zeros(7,1))
Exiting:One or more of the residuals,duality gap,or total relative error
has stalled:
the dual appears to be infeasible (and the primal unbounded).
(The primal residual < TolFun=1.00e-008.)
x =
1.0e+009 *
0.0000
0.0000
0.0000
0.0000
0.0000
0.0000
1.7174
-1.7174
-0.0000
-0.0000
-1.7174
1.7174
fval =
-8.5869e+010
>> m=[1 1 1 1 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1 0 0 0 0
0 0 0 0 0 0 0 0 1 1 1 1
1 0 0 0 1 0 0 0 1 0 0 0
0 1 0 0 0 1 0 0 0 1 0 0
0 0 1 0 0 0 1 0 0 0 1 0
0 0 0 1 0 0 0 1 0 0 0 1];
>> n=[4;3;5;2;4;3;3];
>> [x,fval]=linprog(F,[],[],m,n,zeros(7,1))
Exiting:One or more of the residuals,duality gap,or total relative error
has stalled:
the dual appears to be infeasible (and the primal unbounded).
(The primal residual < TolFun=1.00e-008.)
x =
1.0e+009 *
0.0000
0.0000
0.0000
0.0000
0.0000
0.0000
1.7174
-1.7174
-0.0000
-0.0000
-1.7174
1.7174
fval =
-8.5869e+010
matlab中用linprog函数提示Optimization terminated怎么解?
关于MATLAB中的linprog函数
请问,matlab中的这段linprog函数怎么解释?其中的ones(1,
matlab中linprog函数在约束条件有多个等式的情况下aeq beq 怎么弄
matlab中linprog问题
matlab 中用函数ezplot作图时颜色怎么设定?
matlab中linprog的有关问题
matlab使用solve函数提示得不到解
用matlab的optimization工具箱遗传算法做函数优化问题:
matlab中用polyfit求出拟合函数的系数后 怎么显示出完整的拟合函数
Matlab中用subs函数替换求值问题
matlab中用ezplot画分段函数图