Course Test · University: upper level

Optimisation: test

Linear programs solved by the simplex method with their dual prices, infeasible and unbounded programs, integer programs and knapsacks, the assignment and transportation problems, critical points and the Hessian test, Lagrange multipliers, convexity, least squares and a gradient step.

Twenty exercises of the kind this course sets. Answers are on the independent answers page; the same exercises done with RatMath are on the RatMath answers page.

  1. 1.A linear program
    Maximise 3x+5y3x + 5y subject to x≤4x \le 4, 2y≤122y \le 12, 3x+2y≤183x + 2y \le 18, x,y≥0x, y \ge 0.
  2. 2.Shadow prices
    For the same program, find the dual solution (shadow prices) and check that the dual value equals 36.
  3. 3.Minimising
    Minimise 3x+2y3x + 2y subject to x+y≥4x + y \ge 4, x+3y≥6x + 3y \ge 6, x,y≥0x, y \ge 0.
  4. 4.Infeasibility
    Show that x+y≤1x + y \le 1, x+y≥2x + y \ge 2, x,y≥0x, y \ge 0 has no solution.
  5. 5.Unboundedness
    Show that maximising x+yx + y subject to x−y≤1x - y \le 1, x,y≥0x, y \ge 0 is unbounded.
  6. 6.Integer programming
    Maximise 5x+4y5x + 4y subject to 6x+4y≤246x + 4y \le 24, x+2y≤6x + 2y \le 6, x,y≥0x, y \ge 0 integers. Compare with the LP relaxation.
  7. 7.Knapsack
    Items weigh 2, 3, 4, 5 and are worth 3, 4, 5, 6. Which should go in a knapsack holding weight 5?
  8. 8.Assignment problem
    Assign four workers to four jobs at least total cost, with costs (9278643758187694)\begin{pmatrix} 9&2&7&8\\6&4&3&7\\5&8&1&8\\7&6&9&4 \end{pmatrix}.
  9. 9.Transportation problem
    Two warehouses hold 20 and 30 units; three stores need 10, 25 and 15. Shipping costs per unit are (861091213)\begin{pmatrix} 8&6&10\\9&12&13 \end{pmatrix}. Find the cheapest plan's cost.
  10. 10.Optimising a rectangle
    A rectangle has perimeter 20. What is the largest area it can have?
  11. 11.One-variable minimum
    Find the minimum of f(x)=x4−3x3+2f(x) = x^4 - 3x^3 + 2.
  12. 12.Critical points in the plane
    Find and classify the critical point of f=x2+xy+y2−3xf = x^2 + xy + y^2 - 3x.
  13. 13.Second-derivative test
    Classify the critical points of f=x3−3x+y2f = x^3 - 3x + y^2.
  14. 14.Lagrange multipliers
    Find the point of the line x+2y=5x + 2y = 5 closest to the origin.
  15. 15.A constrained maximum
    Maximise xyzxyz on the plane x+y+z=3x + y + z = 3 with x,y,z>0x, y, z > 0.
  16. 16.Convexity
    Is f=2x2+2xy+3y2f = 2x^2 + 2xy + 3y^2 convex? Give the Hessian's eigenvalues.
  17. 17.Least squares
    Fit a line y=a+bxy = a + bx to (0,1),(1,3),(2,4),(3,4)(0, 1), (1, 3), (2, 4), (3, 4) by least squares.
  18. 18.Gradient descent
    Take one gradient-descent step of size 0.1 from (1,1)(1, 1) on f=x2+4y2f = x^2 + 4y^2.
  19. 19.Newton's method for a minimum
    Take two Newton steps for minimising f(x)=x2−ln⁡xf(x) = x^2 - \ln x from x0=1x_0 = 1. What is the exact minimiser?
  20. 20.Duality
    Write the dual of: maximise x+yx + y subject to x+2y≤4x + 2y \le 4, 3x+y≤63x + y \le 6, x,y≥0x, y \ge 0; show both optimal values agree.