Path: blob/main/Lessons/Lesson 01 - LP 1/Self_Assess_Solns_01.ipynb
871 views
Lesson 01 - Self-Assessment Solutions
Self Assessment: LP Assumptions
(a) Additivity is violated by the term in the objective function and proportionality is violated by the term in the third constraint.
(b) The in the objective function violates the proportionality assumption and the constraints of violate the divisibility assumption.
(c) as the RHS of constraint 2 violated the proportionality assumption and the certainty assumption is violated because the exact value of is not known.
Self Assessment: Paper and Pencil Method
The maximum value is and occurs when and .
Self Assessment: Graphical Method #1
From the graphical method observe that the two binding contraints are and Since the constraints are binding we know that and From the second equation we know . Substitute into the first equation to get which yields So the optimal value is and it occurs at
Hover over the CPF solutions in Desmos to get the coordinates:
Self Assessment: Graphical Method #2
(a) As in the Wyndor Glass Co. problem, we want to find the optimal levels of two activities that compete for limited resources. Let and be the fraction purchased of the partnership in the first and second friends venture respectively.
(b) Maximize
subject to
(c) Solved by the graphical method. and .
Self Assessment: Graphical Method #3
There are infinitely many optimal solutions to this problem. and all the points on the line connecting these two points, .
Self Assessment: Graphical Method #4
After setting up in Desmos check the value of Z at the CPFs which are the vertices of the unbounded, U-shaped region at the top of the graph.
Self-Assessment: Unbounded Region
There is no maximum value since we can increase the value of to make it as large as we want so that the value of grows unboundedly. There is a minimum value of at .
There are multiple ways to do this. For example change to . Now we get a maximum value of at but there is no minimum value.
Any pair of that satisfy and e.g. will make it so that has infinitely many maxima (with negative values) along the line at the left edge of the feasible region.
Self-Assessment: Specifying Bounds
Self-Assessment: Formulate and Solve #1
(a) Minimize
subject to
(c) Pyomo Solution in next cell
Self-Assessment: Formulate and Solve #2
(a) The LP model:
The hard part of this model, for most students, seems to be the constraint that the number of full time workers has to be at least twice the number of part time workers:
full time 2 * part time
full time - 2 * part time 0
(b) The Pyomo solution is in the cell below this one.
The objective function minimum cost is $4,106.67 if it were possible to have a fractional number of workers per shift. Of course you can't have a fractional number of workers per shift, but you can either round these values to integers for an approximate solution or you can tell the solver to use only integer values which actually makes the problem into a harder problem called an integer programming problem. If you round the numbers of consultants to the nearest integer you should find a total cost of $4280.
(c) Set an integer constraint (domain=NonNegativeIntegers) on the decision variable cells and solve using Pyomo to get a total cost of $4160. Rounding fractional solutions yielded a less optimal answer than using integer programming in this case. (In general don't use integer variables unless instructed to do so. We will see more about this in Lesson 6.)
Textbook Problem 3.5-6 (a,e) Solution
(a) Model formulation:
(e) Optimal solution using the simplex method in Pyomo is in the following cell.
Self-Assessment: Formulate and Solve #3
(a) Model formulation:
(e) Optimal solution using the simplex method in Pyomo is in the following cell.