这种程序很容易写 只要格式规范一下就行了
Min=0.2*x1+0.7*x2+0.4*x3+0.3*x4+0.5*x5;
0.3*x1+2*x2+1*x3+0.6*x4+1.8*x5>=70;
0.1*x1+0.05*x2+0.02*x3+0.2*x4+0.05*x5>=3;
0.05*x1+0.01*x2+0.02*x3+0.02*x4+0.00008*x5>=10 ;
结果 最优值42.77674
X1 199.9911 0.000000
X2 0.000000 0.1213123
X3 0.000000 0.7564684E-01
X4 0.000000 0.8671646E-01
X5 5.557037 0.000000