Formulating an LP problem
Variables → objective → constraints → non-negativity.
Steps to formulate.
- Identify decision variables. Name them and define them in words (e.g. = number of bicycles manufactured per week).
- Write the objective function. Always linear in the decision variables: . State 'maximise' or 'minimise'.
- Write constraints. For each resource or requirement: turn the English into an inequality.
- 'X hours available' → .
- 'At least units required' → .
- 'At most units allowed' → .
- 'Equal supply and demand' → (equality).
- Non-negativity. Almost always and . ALWAYS include explicitly.
- Integer requirement (if applicable). Add 'and '.
Worked example.
A factory makes chairs and tables. Each chair uses kg wood and hours labour. Each table uses kg wood and hours labour. The factory has kg wood and hours labour weekly. Profit: \10$15$ per table. Formulate.
- Decision variables: chairs/week, tables/week.
- Objective: maximise .
- Wood: .
- Labour: .
- Non-negativity: .
- Integer: .
Translation rules.
| English | Mathematical |
|---|---|
| 'at most ' | |
| 'at least ' | |
| 'no more than ' | |
| 'a minimum of ' | |
| 'twice as many as ' | or |
| 'at least twice as many as ' | |
| 'ratio of to is at most to ' |
- Always define variables in words first.
- Objective is LINEAR; max or min.
- Constraints: for resources, for requirements.
- Non-negativity is mandatory.