数学建模社区-数学中国
标题:
lingo怎么写,初级!
[打印本页]
作者:
hzy2008ye
时间:
2009-7-24 13:23
标题:
lingo怎么写,初级!
min M1=3x1+2x2
x1>200
X2>300
min M2=2x1+3x2
x1>200
x2>300
把式子在lingo里同时表示怎么写呢?
作者:
552433160
时间:
2009-7-24 15:58
min= 3x1+2x2;
x1>200;
X2>300;
分别求最小值
min =2x1+3x2;
x1>200;
x2>300;
作者:
552433160
时间:
2009-7-24 16:02
min=3*x1+2*x2; x1>200; x2>300;
结果
Global optimal solution found.
Objective value: 1200.000
Infeasibilities: 0.000000
Total solver iterations: 0
Variable Value Reduced Cost
X1 200.0000 0.000000
X2 300.0000 0.000000
Row Slack or Surplus Dual Price
1 1200.000 -1.000000
2 0.000000 -3.000000
3 0.000000 -2.000000
作者:
hzy2008ye
时间:
2009-7-25 10:00
不希望分别写!就是要一起写啊…………
2#
552433160
作者:
lkk
时间:
2009-7-25 20:11
X的取值范围是一样的,两个目标函数就用一个FOR循环嘛
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5