AL1–AL5 - Formulating linear programs
Translate a practical decision into numerical variables, a linear objective and constraints. Recognise standard and augmented forms, interpret slack variables and state when fractions of a decision are not allowed.
Decisions, objectives and constraints
A planning program recommends making tables. Has it made an arithmetic mistake, or have we asked the wrong mathematical question?
The arithmetic might be perfectly correct. A continuous linear program permits fractional quantities; a furniture plan must say that whole tables are required.
You already know
A linear expression adds constant multiples of variables. Inequalities such as describe restrictions. Multiplying two decision variables together would produce a nonlinear expression.
A good formulation starts with what can be chosen, then separates the aim from the restrictions.
Linear programming
A linear program, or LP, optimises a linear objective function subject to linear constraints. Maximisation seeks the largest objective value; minimisation seeks the smallest. Constraints restrict the decisions, rather than describing what you are trying to optimise.
A feasible plan satisfies every constraint and variable restriction. An optimal plan gives the best objective value among feasible plans.
For example, profit is linear. Profit , or a constraint , would not define an LP of this kind. A fixed cost per unit is compatible with linearity; a unit cost that itself depends on the chosen quantity may not be.
Decision variables
Decision variables represent numerical quantities chosen in the model. Define each variable with its meaning and units: “ is the number of kilograms of blend ”, rather than “ is blend ”.
The word “programming” here means planning the decisions. A mathematical formulation can be solved on paper or supplied to software.
Key idea
State the decisions, the objective to maximise or minimise, and every restriction, including the variable domains.
Distinguish an objective from a resource restriction.
Building a model from a context
Write one expression for each limited resource. Every coefficient must describe the resource used by one unit of the corresponding decision.
A small blending business produces two saleable mixtures. Quantities can be measured continuously in kilograms.
| Per kilogram produced | Blend | Blend | Available |
|---|---|---|---|
| Machine , minutes | |||
| Machine , minutes | |||
| Profit, pounds | — |
Each blend needs time on both machines. The two time limits are separate restrictions, even though their available amounts happen to be equal.
Worked example 1: two resource limits
Question. Formulate an LP for the table, aiming to maximise total profit.
Plan. Define kilograms of each blend, add profit contributions and impose one availability inequality per machine.
Let and be the kilograms of and produced.
Both variables are continuous.
Why this step? The availability is an upper bound. It is permissible to leave some machine time unused, so equality is not required.
Answer. The displayed objective, constraints and continuous non-negative domains give the LP.
Check. Producing , uses minutes on and minutes on , both within the available minutes.
Now change only the business requirement by adding a minimum order.
Worked example 2: a lower-bound requirement
Question. The same business must produce at least of blend . Formulate the modified LP.
Plan. Retain the resource model and add the contract as a lower bound.
Why this step? “At least” means a lower bound, whereas the available machine times still give upper bounds.
Answer. Add ; the other resource inequalities and objective are unchanged.
Check. meets the order exactly. meets both resource limits but fails the contract, so the new constraint is doing useful work.
Read “at most”, “at least” and “exactly” carefully. They mean an upper bound, a lower bound and an equality respectively.
Watch out
Wrong: put all resource inequalities in the same direction without reading their meaning, or omit . Right: test a concrete allowed and forbidden plan against each expression.
Modify one availability while retaining the minimum order.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account