RatMath ShelfCourse guide

University: upper level

Optimisation

Use the left and right arrow keys to turn pages.

Course summary

Where RatMath helps

80%

32 of 40 focal problems use RatMath for a calculation or a substantive step.

Direct calculation
26 · 65%
Assisted
6 · 15%
Worked by hand
8 · 20%

Using the packages

Exact linear programs and small combinatorial models make certificates and shadow prices concrete. Local derivatives need domain checks, constraint qualifications and global reasoning before they establish an optimum.

Calculator interface

Provide a constraint editor with active constraints, feasible-set shading and explicit statuses for infeasible or unbounded models. Display primal and dual objectives and distinguish local candidates from certified global optima.

Packages used in the lessons

@ratmath/analytic (13 days) · @ratmath/discrete (11 days) · @ratmath/linalg (5 days) · @ratmath/core (3 days)

How to read the percentages

Each of the 40 focal problems has equal weight. Direct means the displayed package calculation answers the computational question after the inputs are set up. Assisted means it contributes a step and the worked solution supplies essential reasoning, interpretation or selection. Worked by hand means the guide relies on a construction, argument or judgment for that task. The helpful share combines direct and assisted days. Courses and instructors assign different mixes of problems. The percentages describe this syllabus.

Classroom inputs and practical limits

32 of 40 days include a checked executable example. On 13 days the measured size sweep exercises a named API used in the lesson. Each day identifies its tested inputs and the mathematical property checked. Hand-worked days give the input scale and the argument to verify.

Ranges across the five units

Days 1–8 · Linear modeling. About 2–5 variables and 2–10 constraints for teaching linear programs, with small rational or integer coefficients.

Unit benchmark · discrete.linearProgram, variables. Largest passing sample 100 (57.90 ms, 84.5 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 9–16 · Discrete optimization. Roughly 2–10 binary decisions or a 2×2 to 8×8 assignment; feasibility, integrality and optimality are separate questions.

Unit benchmark · discrete.integerProgram, binary choices. Largest passing sample 32 (38.64 ms, 90.8 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 17–24 · Smooth unconstrained optimization. One or two real variables, simple polynomials and a few starting points; local stationary conditions need global checks.

Unit benchmark · analytic.gradientDescent, iterations. Largest passing sample 300 (7.03 ms, 81.6 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 25–32 · Constrained optimization. One or two active constraints and up to three continuous unknowns in hand calculations; check constraint qualifications.

Unit benchmark · discrete.linearProgram, variables. Largest passing sample 100 (57.90 ms, 84.5 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 33–40 · Methods and sensitivity. Small least-squares matrices or about 1–50 numerical iterations; inspect scaling, gradient norm and feasibility as well as objective change.

Unit benchmark · analytic.gradientDescent, iterations. Largest passing sample 300 (7.03 ms, 81.6 MiB peak process RSS). The runs did not locate a ceiling for this family.

Measurement method, runtime limits and complete workload results

Lecture and problem-set sequence

Days 1–8 Linear modeling

Write objectives and inequalities, solve LPs and interpret solver statuses.

3 direct calculation · 4 assisted · 1 worked by hand

  1. Day 1 A linear program
  2. Day 2 Minimising
  3. Day 3 Infeasibility
  4. Day 4 Unboundedness
  5. Day 5 Shadow prices
  6. Day 6 Duality
  7. Day 7 Standard form
  8. Day 8 Weak duality
Days 9–16 Discrete optimization

Encode choices, model assignments and compare relaxations with integral solutions.

5 direct calculation · 1 assisted · 2 worked by hand

  1. Day 9 Integer programming
  2. Day 10 Knapsack
  3. Day 11 Assignment problem
  4. Day 12 Transportation problem
  5. Day 13 Max flow, min cut
  6. Day 14 Network integrality
  7. Day 15 Relaxation bound
  8. Day 16 Binary implications
Days 17–24 Smooth unconstrained optimization

Find critical points, check curvature and distinguish local from global behavior.

5 direct calculation · 1 assisted · 2 worked by hand

  1. Day 17 Optimising a rectangle
  2. Day 18 One-variable minimum
  3. Day 19 Critical points in the plane
  4. Day 20 Second-derivative test
  5. Day 21 Critical points
  6. Day 22 Absolute extrema
  7. Day 23 Stationary inflection
  8. Day 24 Coercivity
Days 25–32 Constrained optimization

Handle multipliers, active sets and boundary candidates.

6 direct calculation · 0 assisted · 2 worked by hand

  1. Day 25 Lagrange multipliers
  2. Day 26 A constrained maximum
  3. Day 27 Convexity
  4. Day 28 Lagrange multipliers
  5. Day 29 Second derivative test
  6. Day 30 Definiteness
  7. Day 31 Complementary slackness
  8. Day 32 Constraint qualification
Days 33–40 Methods and sensitivity

Fit least squares, choose steps and diagnose convergence and scaling.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 33 Least squares
  2. Day 34 Gradient descent
  3. Day 35 Newton's method for a minimum
  4. Day 36 Condition number
  5. Day 37 Newton's method
  6. Day 38 Least squares line
  7. Day 39 Gradient iteration
  8. Day 40 Stopping conditions

Start day 1 →