ENG 401 · Engineering Mathematics VI (Mathematical Modelling and Operation Research)
Our notes
2 min readInteger programming (IP)
Some variables must be whole numbers (pumps, trucks) or 0/1 (build or not).
- Rounding an LP answer may be infeasible or far from the best.
- Branch and bound: solve the LP; if a variable is fractional (x = 2.6), split into two sub-problems (x ≤ 2 and x ≥ 3), and continue, discarding branches that cannot beat the best whole-number answer found.
- 0-1 variables model yes/no decisions: choose projects within a budget, fixed charges, either-or constraints.
Goal programming
Real decisions have several goals (profit, quality, safety, emissions). Goal programming sets a target for each and minimises the weighted or ranked deviations:
profit + d₁⁻ − d₁⁺ = target, and minimise d₁⁻ (falling short), for example.
Goals can be pre-emptive (rank 1 satisfied first) or weighted.
Nonlinear programming
Objective or constraints are curved: costs with economies of scale, stresses, flows.
Unconstrained: set the derivatives to zero; check with second derivatives.
Equality constraints: Lagrange multipliers: optimise L = f − λg and set all partial derivatives to zero.
Inequality constraints: the Karush-Kuhn-Tucker (KKT) conditions extend Lagrange's method.
Worked example: least material for a tank
A closed cylindrical tank must hold V = 1 m³. Minimise the surface area A = 2πr² + 2πrh.
From the volume, h = V ÷ (πr²), so A = 2πr² + 2V ÷ r.
dA/dr = 4πr − 2V ÷ r² = 0 → r³ = V ÷ (2π) = 0.1592 → r ≈ 0.542 m.
h = 1 ÷ (π × 0.542²) = 1 ÷ 0.923 ≈ 1.084 m.
So h = 2r: the best closed cylinder is as tall as it is wide.
Check with Lagrange: L = 2πr² + 2πrh − λ(πr²h − 1).
∂L/∂h: 2πr = λπr² → λ = 2/r.
∂L/∂r: 4πr + 2πh = 2λπrh = 4πh → 4πr = 2πh → h = 2r. Same.
Geometric programming
For objectives and constraints that are posynomials (sums of positive terms like c x^a y^b), common in engineering design (heat exchangers, circuits). Solved through a dual problem; it gives the optimal share of each cost term.
Stochastic programming
Some data are random (demand, rainfall, prices).
- Chance constraints: a constraint must hold with a stated probability: P(supply ≥ demand) ≥ 0.95.
- Two-stage models: decide now (build capacity), then adjust once the random value is known (buy extra).
Searching methods
For problems without formulas for derivatives: golden-section and Fibonacci search (one variable), gradient methods, and heuristics such as genetic algorithms and simulated annealing for very large or messy problems.
Exams usually ask
- Explain branch and bound.
- Solve a two-variable optimisation with a Lagrange multiplier.
Common mistake
Assuming a stationary point is a minimum. Check the second derivative or compare nearby values.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Integer programming
(opens en.wikipedia.org in a new tab)
Wikipedia, Integer programming, CC BY-SA 4.0 · licence
-
Goal programming
(opens en.wikipedia.org in a new tab)
Wikipedia, Goal programming, CC BY-SA 4.0 · licence
-
Nonlinear programming
(opens en.wikipedia.org in a new tab)
Wikipedia, Nonlinear programming, CC BY-SA 4.0 · licence
-
Stochastic programming
(opens en.wikipedia.org in a new tab)
Wikipedia, Stochastic programming, CC BY-SA 4.0 · licence
-
NOUN MTH 309: Optimization Theory
NOUN course book (PDF, about 2.8 MB). Linear programming and constrained optimisation.
(opens nou.edu.ng in a new tab)
Watch
-
Best pick Integer Linear Programming - Graphical Method - Optimal Solution, Mixed, Rounding, Relaxation
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
-
Branch and Bound Method | Integer Programming Problem
25 min · ≈ 113 MB · about ₦63
(opens youtube.com in a new tab)
-
Ch06-03 Branch and Bound Method B&B for Integer Linear Programming ILP
16 min · ≈ 72 MB · about ₦40
(opens youtube.com in a new tab)
-
Lec-15 Branch And Bond Algorithm For Integer Programming
48 min · ≈ 216 MB · about ₦121
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.