Formulating a Linear Program
Formulating a linear program means turning a described decision problem into decision variables, a linear objective, and linear constraints. The hard part is not the algebra but the choices: what exactly is being decided, in what units, and which stated conditions are genuine restrictions rather than commentary.
Definition
A linear program consists of decision variables
Formal statement
Assumptions and scope
Linearity is an assumption, not a fact about the situation. A quantity discount, a fixed set-up charge, or a product of two decisions is not linear, and forcing it into a linear program changes the problem being solved.
Divisibility is assumed: a linear program may return a fractional solution. If the decisions are genuinely indivisible, the correct model is an integer program.
Units must be consistent across a constraint. A row mixing hours with units produced is meaningless even though it is syntactically valid.
The objective must be a single linear expression. Two competing goals require either a weighted combination, chosen deliberately, or a different method.
Worked material
Contrast
Decision variables against quantities in the description
The most common formulation error is introducing a variable for something the description merely mentions. It produces a program that looks richer and is in fact broken.
Use the workshop problem again.
Incorrect. "Let
This is not wrong in the sense of having the wrong solutions. The defining equations pin
Correct.
Where it becomes genuinely wrong. The same habit produces real errors when the introduced quantity is given a sign restriction it should not have, or when it is constrained twice. Writing
The test to apply. For each proposed variable, ask: can the decision maker set this directly, without first setting something else? If the answer is no, it is determined by the real decisions, and it belongs in the objective or a constraint expression rather than in the variable list.
Common errors
Common misconception
Every number mentioned in the problem description should become a decision variable.
Related units
Connected
- Converting a Linear Program to Standard Form (best taken before)
- Solving a Two-Variable Linear Program Graphically (suggested next)