Question: You have n items with sizes a 1 , . . . , an to be packed into some bins. Each bin has capacity V
You have n items with sizes a an to be packed into some bins. Each bin
has capacity V Assume that V ai i n That is at most, you need n bins to pack all
items.
i Formulate an integer linear program to find the item allocation that uses the fewest number
of bins. Hint: Use a binary variable yj to denote whether bin j is used; use another binary
variable xij to denote whether item i should be placed in bin jThis is called bin packing
problem.
ii Now consider a case where you have five items with size and the capacity of each
bin is Formulate the IP in that case. Use CVX to solve the IP and its LP relaxation. In
CVX you may want to use MOSEK or Gurobi as solver to solve IP problems What are the
optimal solutions to the IP and its LP relaxation? Is there an integrality gap in this case?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
