-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBeerDistributionProblem.lp
More file actions
38 lines (38 loc) · 972 Bytes
/
BeerDistributionProblem.lp
File metadata and controls
38 lines (38 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
\* Beer Distribution Problem *\
Minimize
Sum_of_Transporting_Costs: 2 route_A_1 + 4 route_A_2 + 5 route_A_3
+ 2 route_A_4 + route_A_5 + 3 route_B_1 + route_B_2 + 3 route_B_3
+ 2 route_B_4 + 3 route_B_5
Subject To
Sum_of_Products_into_Bar1: route_A_1 + route_B_1 >= 500
Sum_of_Products_into_Bar2: route_A_2 + route_B_2 >= 900
Sum_of_Products_into_Bar3: route_A_3 + route_B_3 >= 1800
Sum_of_Products_into_Bar4: route_A_4 + route_B_4 >= 200
Sum_of_Products_into_Bar5: route_A_5 + route_B_5 >= 700
Sum_of_Products_out_of_Warehouse_A: route_A_1 + route_A_2 + route_A_3
+ route_A_4 + route_A_5 <= 1000
Sum_of_Products_out_of_Warehouse_B: route_B_1 + route_B_2 + route_B_3
+ route_B_4 + route_B_5 <= 4000
Bounds
0 <= route_A_1
0 <= route_A_2
0 <= route_A_3
0 <= route_A_4
0 <= route_A_5
0 <= route_B_1
0 <= route_B_2
0 <= route_B_3
0 <= route_B_4
0 <= route_B_5
Generals
route_A_1
route_A_2
route_A_3
route_A_4
route_A_5
route_B_1
route_B_2
route_B_3
route_B_4
route_B_5
End