作者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