model:
max=51800-409*x1-225*x2-228*x3-580*x4-2.68*x5;
400*x4+3*x5<=25000;
20*x1+35*x2+10*x3+100*x4+0.6*x5<3500;
30*x1+75*x2+40*x3+50*x4+0.3*x5<4000;
x1+x2+x3+1.5*x4<=100;
x4<=32;
x5<=3000;
@gin(x4);
@gin(x5);
end
怎么弄的,我老是出现。。
Global optimal solution found.
Objective value: 51800.00
Extended solver steps: 0
Total solver iterations: 0
Variable Value Reduced Cost
X1 0.000000 409.0000
X2 0.000000 225.0000
X3 0.000000 228.0000
X4 0.000000 580.0000
X5 0.000000 2.680000
Row Slack or Surplus Dual Price
1 51800.00 1.000000
2 25000.00 0.000000
3 3500.000 0.000000
4 4000.000 0.000000
5 100.0000 0.000000
6 32.00000 0.000000
7 3000.000 0.000000
哪有求助还要人家给钱的?
你这个显示的就是找到的最优解!
你的模型肯定有问题,是要求目标函数的最大值还是最小值?
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |