《数学建模课程设计》清理考试试题(3)
时间:2025-04-22
时间:2025-04-22
shuxue
建立模型:Max Z 24 4x1 16 5x2
x1 x2 50
10 x 1 7x2 380
4x1 100
x 0, 1x2 0
程序:max 96x1+80x2
St
2) x1+x2<50
3) 10x1+7x2<380
4) 4x1<100
end
运行结果:Global optimal solution found.
Objective value: 4160.000
Total solver iterations: 2
Variable Value Reduced Cost X1 10.00000 0.000000 X2 40.00000 0.000000
Row Slack or Surplus Dual Price 1 4160.000 1.000000 2 0.000000 42.66667 3 0.000000 5.333333 4 60.00000 0.000000 5 10.00000 0.000000 6 40.00000 0.000000 Range结果:
答案:(1)x1=10桶牛奶生产A1,x2=40桶牛奶生产A2,每天获利Z=4160元
(2)30<42.66667 应该买
, (3)每小时5.333333元
4. 利用数学软件进行分式的化简
程序:fx=x^6+9x^5-2x^4+7;gx=x^2-x+3;
PolynomialQuotient[fx,gx,x]
PolynomialRemainder[fx,gx,x]
运行结果:
由运行结果得结论: