END332 EMid 1 Solns
END332 EMid 1 Solns
Answer 1
Decision variables (10 pts):
xij: number of games team i played with a result of j (i=1,2,3; j=1,2,3,4)
i=1: Fenerbahçe Medicana, i=2: Eczacıbaşı Dynavit, i=3: Vakıfbank;
j=1: standard win (3-0 or 3-1), j=2: win in the deciding set (3-2),
j=3: loss in the deciding set (2-3), j=4: standard loss (1-3 or 0-3).
IP MODEL:
Objective function:
Since we are only interested in feasible solutions that satisfy the constraints, we can use a
dummy (null) objective function. This means we are not trying to maximize or minimize any
particular value.
Constraints (20 pts):
Number of wins/losses
3
IP MODEL:
Objective function:
Since we are only interested in feasible solutions that satisfy the constraints, we can use a
dummy (null) objective function. This means we are not trying to maximize or minimize any
particular value.
Constraints:
Number of wins/losses
x11 + x21 + x31 = 10 (number of standard wins)
x12 + x22 + x32 = 2 (number of wins in the deciding set)
x13 + x23 + x33 = 2 (number of losses in the deciding set)
x14 + x24 + x34 = 1 (number of standard losses)
Number of games played
x11 + x12 + x13 + x14 = 5 (number of games played by Fenerbahçe Medicana)
x21 + x22 + x23 + x24 = 5 (number of games played by Eczacıbaşı Dynavit)
x31 + x32 + x33 + x34 = 5 (number of games played by Vakıfbank)
Equal total points
3 x11 + 2 x12 + x13 = 3 x21 + 2 x22 + x23 (points won by Fenerbahçe = points won by Eczacıbaşı)
3 x11 + 2 x12 + x13 = 3 x31 + 2 x32 + x33 (points won by Fenerbahçe = points won by Vakıfbank)
Based on these two constraints, there is no need to equalize points won by Eczacıbaşı and points
won by Vakıfbank
Equal total points (alternative representation)
3 x11 + 2 x12 + x13 = 12 (points won by Fenerbahçe Medicana)
3 x21 + 2 x22 + x23 = 12 (points won by Eczacıbaşı Dynavit)
3 x31 + 2 x32 + x33 = 12 (points won by Vakıfbank)
As three favorite teams won ten games 3-0 or 3-1, two games 3-2, and lost two games 2-3, total
points they won would be 36. So each team should have 12 points.
Sign restriction:
All xij ≥ 0 and integer
Answer 1 Alternative modeling: Binary variables
Modeling in this way using binary variables is not recommended. It would be inefficient and
impractical due to the complexity introduced by the increased number of variables and
constraints.
Decision variables:
xijk: a binary variable that equals 1 if team i has a result of j in game k, and 0 otherwise
(i=1,2,3,4; j=1,2,3; k=1,2,3,4,5)
i=1: Fenerbahçe Medicana, i=2: Eczacıbaşı Dynavit, i=3: Vakıfbank;
j=1: standard win (3-0 or 3-1), j=2: win in the deciding set (3-2),
j=3: loss in the deciding set (2-3), j=4: standard loss (1-3 or 0-3);
k: game (round/week) number.
Variables:
yij: number of games team i played with a result of j
BIP MODEL:
Objective function:
Since we are only interested in feasible solutions that satisfy the constraints, we can use a
dummy (null) objective function. This means we are not trying to maximize or minimize any
particular value.
Constraints:
Number of wins/losses
3 5
5 5 5 5 5 5
𝑦𝑦𝑖𝑖2 = � 𝑥𝑥𝑖𝑖2𝑘𝑘 for all 𝑖𝑖 (wins in the deciding set for team 𝑖𝑖)
𝑘𝑘=1
5
𝑦𝑦𝑖𝑖3 = � 𝑥𝑥𝑖𝑖3𝑘𝑘 for all 𝑖𝑖 (losses in the deciding set for team 𝑖𝑖)
𝑘𝑘=1
5
Sign restriction:
All xijk = 0 or 1
Answer 2
y1=y2=y3=y5=0 (2 pts.);
z1=z2=z3=z6=0 (2 pts.);
z4 + z5 = 1 (2 pts.)
Answer 3
MODEL (5 pts.)
If xj is 1 then item j will be in the knapsack, 0 otherwise
max 9 x1 + 16 x2 + 14 x3 + 5 x4
st 3 x1 + 4 x2 + 4 x3 + 2 x4 ≤ 10
xj = 0 or 1 j = 1, … 4
INTERPRETATION (5 pts.)
Items 2, 3, and 4 should be in the knapsack, in this case total value would be 35
Answer 4
The NNH method identifies the best tour as A-B-D-C-A, with a total distance of 320 km.
The best tour (2 pts.); A-B-D-C-A (2 pts.); total distance 320 km (2 pts.)