作者markbaseball (阿伸)
看板Math
标题[其他]线性规划问题
时间Sun Apr 17 00:32:26 2011
1. Suppose that you now have $60 us dollars and 60 francs in your hand.
2. you can buy 4 francs by spending $1 us dollar; also,you can buy $1 us
dollar by spending 3 francs
3. you are trying to maximize the number of us dollars that you can have in
hand after the transaction commplete
4. How do you compute the # of us dollars you are going to have in hand? ---
You now have $60 + the # of us dollars you have bought (by paying francs) -
the # of us dollars you have spent(spent for buying francs)
我的想法为
Max Z=60+X1-1/3X2
s.t. 0<=X1<=15
X2限制式想不出来
请各位帮忙解答 谢谢!!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.167.97.199
1F:→ josephbe :X1代表US去买francs的量 04/17 00:43
2F:→ josephbe :所以max Z=60-X1+(4X1+60)/3=80+X1/3 0<=X1<=60 04/17 00:44
3F:→ josephbe :所以得到100,这样吗@@? 04/17 00:45