DS2 Tutorial 4 - Answers
DS2 Tutorial 4 - Answers
DS2 Tutorial 4 - Answers
There are seven important shopping regions in the Hyderabad area: Ameerpet,
Begumpet, Charminar, Dilsukhnagar, Erragadda, Falaknuma, and Gachibowli (A, B, C, D,
E, F, and G for short). The Greater Hyderabad Muncipal Corporation (GHMC) wants to
achieve the goal that every person living in any one of these regions has to be within 10km
of a “lifestyle mall”. You have been brought in as an consultant to decide where to build
these malls. There are proposals to build a mall in each of the seven regions. The distances
between the various regions and costs of building a mall in each region are given in Table
1.1 below:
Distances between different regions and cost of building malls in each region
Regions A B C D E F G Costs
(a) Formulate an integer program that will determine the locations to build lifestyle
malls at a minimum cost subject to the constraint that each district is within 10km
of a mall. Clearly define decision variable, objective function and constraints.
(8 points)
Decision variable:
Define Xi = {1 if mall is built in region i and 0 otherwise} i = A, B, C, D, E, F, G
S.T
Constraints, check for each city, then add the constraint
(b) The MLAs of Begumpet and Gachibowli are at loggerheads, and so, the MLA of
Gachibowli has said that if a mall is located in Begumpet then a mall will not be
located in Gachibowli. Modify your model to accommodate this. (2 points)
If Xb =1 , then Xg = 0
Xb+Xg<=1
(c) The MLAs of Begumpet and Gachibowli have made up with each other; so, the
constraint of part (c) does not hold anymore. Now suppose that if a mall is located
in Begumpet or Gachibowli (or both), then a mall has to be located in one of the
other regions. Modify your model to accommodate this. (3 points)
(d) It is now learnt that the MLAs of Begumpet and Gachibowli reconciled via
negotiations with the MLA of Erragadda. So, now if a mall is located in Begumpet
or Gachibowli (or both), then a mall has to be located in Erragadda. Accommodate
this constraint. (2 points)
If Xb + Xg >= 1, then Xe =1
Consider a General Assignment Problem (GAP) problem, where a set of 𝑁 ≡ {1, … , 6} jobs
are to be assigned to a set of 𝑀 ≡ {1, … ,5} machines. The 6 jobs require 7, 5, 9, 8, 6, 4 units
of work respectively, and the 5 machines have a capacity of 11, 8, 8, 14, 9 units of work
respectively. Each job must be assigned to exactly one machine, and it is not necessary to
use all the 5 machines.
The cost incurred if job 𝑗 ∈ 𝑁 is scheduled on machine 𝑖 ∈ 𝑀 is given in the table below:
Decision variable: Xij = {1, if ith machine is assigned to jth job; 0 otherwise}
Objective Function:
Minimize 𝑍 = ∑5𝑖=1 ∑6𝑗=1 𝐶𝑖𝑗 ∗ 𝑋𝑖𝑗 ; costs Cij are given in above table
Constraints:
Capacity constraints:
c) In addition to the assignment costs given above, suppose that a fixed cost is incurred
when machine 𝑖∈𝑀 is operated. The fixed cost of operating a machine for each of these
five machines are given by 25, 30, 24, 19 and 17, respectively. Modify the formulation
in part (a) to incorporate this fixed cost. Define any new variables, if required.
(5 points)
Objective function:
Minimise 𝑍 = ∑5𝑖=1 ∑6𝑗=1 𝐶𝑖𝑗 ∗ 𝑋𝑖𝑗 + 25𝑌1 + 30𝑌2 + 24𝑌3 + 19𝑌4 + 17𝑌5
OR
you can rewrite capacity constraints and Multiply RHS by Yi for each machine e.g.:
Mach 1 7X11 + 5X12 + 9X13 + 8 X14 + 6 X15 + 4X16 <= 11Y1
d) Referring to your formulation in part (c), write an inequality that models the
condition that at most 4 out of the 5 machines can be in operation. (2 points)
𝑌1 + 𝑌2 + 𝑌3 + 𝑌4 + 𝑌5 ≤ 4
e) Referring to your formulation in part (c), write an inequality (or inequalities) that
models the following condition: If Machine 4 is in operation, then at least 20% of its
capacity must be used. (2 points)
g) Referring to your formulation in part (c), give a constraint to model the following
condition: if at least two out of the three machines 1, 2, and 3, are in operation, then
at least one of the machines 4 or 5 must be in operation. (They don’t necessarily have
to have jobs assigned to them if they are in operation.) (2 points)
If 𝑌1 + 𝑌2 + 𝑌3 ≥ 2, then 𝑌4 + 𝑌5 ≥ 1
If 𝑌1 + 𝑌2 + 𝑌3 ≥ 2 implies Delta = 1
𝑌4 + 𝑌5 > = delta
b) What is the best lower bound on the problem at this stage? (1 point)
c) What are the active nodes in the branch-and-bound tree at this stage? (1 point)
Active Nodes are 5,7 and 8.
d) Formulate and use MS Excel Solver to solve the linear programming relaxation at
Node 5. Upload your MS Excel file showing the formulation and calculations.(4 points)
Solving this in excel ( You might not have excel; in such cases, you will be given the
solution in separate tree with diff type of questions),
we get: 𝑥5= (1, 0, 2, 0) with 𝑧5=− 3.
e) Based on your solution to part (d), did the incumbent value change? If yes, what is the
new incumbent solution? (1 point)
f) What are the active nodes in the branch-and-bound tree at this stage? (1 point)
g) From the solution shown at Node 6, select an appropriate branching variable and
determine the optimal solution at Node 8. Did your incumbent solution change?
(4 points)
h) Can the branch-and-bound process be terminated at this stage? If yes, explain your
reasoning. If not, continue branching and determine the optimal solution to the
problem. (2 points)
The only other active node at this stage is Node 7. But, Node 6 has a lower bound of
𝑧6=− 4.5, and therefore the best integer solution that we can possibly be obtained by
solving Node 7 cannot be better than the current incumbent. Therefore, Node 7 can
be fathomed by bound.
Also, adding constraint X4<=0 doesn’t satisfy the second constraint 7X1+3X2−
4X3−2X4 ≤1. Thus node 7 can be fathomed by infeasibility.
We can declare that 𝑥8= (2, 0, 3, 1) is the optimal solution with 𝑧8=− 4 as the optimum
objective function value.