LP and NLP live demonstrations

LP: max 3x + 2y

x+y ≤ b₁; 2x+y ≤ 5; x,y ≥ 0. Only b₁ changes.

Teal: resource 1 · Graphite: resource 2 · Sand: feasible region · Amber point: optimum

Teal: actual optimum · Dashed amber: old-price prediction · Graphite point: current value

How to use this in class

Predict each value before clicking. In Backtracking, use c₁=0.1 and ρ=0.5: reject 1, 0.5 and 0.25; accept 0.125. After moving, repeat the search with the new gradient. The next accepted step is 0.5 and reaches the minimum for this particular example.

Reference: Boyd and Vandenberghe, Convex Optimization, Chapter 9. All examples here are calculated directly. No data is submitted by this page.