全部版块 我的主页
论坛 新商科论坛 四区(原工商管理论坛) 商学院 运营管理(物流与供应链管理)
1045 0
2011-05-30
set ORIG;   # origins (steel mills)
set DEST;   # destinations (factories)
set PROD;   # products
set TRUCK;  # trucks
param pallet_w;                 # weight of each pallet.
param rate {ORIG,PROD} > 0;     # tons per hour at origins
param avail {ORIG} >= 0;        # hours available at origins
param demand {DEST,PROD} >= 0;  # tons required at destinations
param capacity {TRUCK} >= 0;    # truck's capacity in num. of pallets.
param crew {TRUCK} >= 0;        # number of trucks available
param make_cost {ORIG,PROD} >= 0;        # manufacturing cost/ton
param truck_cost {ORIG,DEST,TRUCK} >= 0;  # shipping cost/ton
param fix_cost {ORIG, PROD} >= 0;              # fixed costs
var Make {ORIG,PROD} >= 0;                  # tons produced at origins
var Prod {ORIG,PROD} binary;                # =1 produced, =0, not produced
var Pallets{ORIG,DEST,PROD} integer, >= 0;  # pallets shipped
var Trucks {ORIG,DEST, TRUCK} integer, >=0; # num. of trucks used
#minimize Total_Cost: sum{i in ORIG, j in DEST, l in TRUCK} Trucks[i,j,l];
minimize Total_Cost:
  sum {i in ORIG, p in PROD}             make_cost[i,p] * Make[i,p] +
  sum {i in ORIG, j in DEST, l in TRUCK} truck_cost[i,j,l] * Trucks[i,j,l] +
  sum {i in ORIG, p in PROD}             fix_cost[i,p] * Prod[i,p];


这道题目怎么做啊?如果火车的数量最少是10辆给条路线。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群