Formulating a Linear Programming Problem (Edexcel A-Level Further Mathematics): Revision Notes
12.1.1 Formulating a Linear Programming Problem
Introduction
Linear Programming (LP) is a mathematical method used to optimise an objective function, such as maximising profit or minimising cost, subject to a set of constraints.
This note explains how to formulate problems as linear programmes and introduces the concepts of slack, surplus, and artificial variables, which are essential for solving LP problems using methods like the Simplex algorithm.
Key Steps in Formulating a Linear Programming Problem
- Define the Variables
- Write the Objective Function
- Write the Constraints
- Non-Negativity Constraints
1. Define the Variables
Identify decision variables that represent quantities to be determined.
2. Write the Objective Function
Formulate the objective function to be maximised or minimised:
where are coefficients that represent the contribution of each variable to the objective.
3. Write the Constraints
Express all constraints as linear inequalities or equalities:
where are coefficients, and is the limiting value.
4. Non-Negativity Constraints
Ensure that all decision variables are non-negative:
Slack, Surplus, and Artificial Variables
Slack Variables
Definition: Added to (less-than-or-equal-to) constraints to convert them into equations.
where is the slack variable representing unused capacity.
Surplus Variables
Definition: Subtracted from (greater-than-or-equal-to) constraints to convert them into equations.
where is the surplus variable representing excess quantity.
Artificial Variables
Definition: Introduced for or constraints to start the Simplex algorithm. These variables are used temporarily and are eliminated during optimisation.
where is the artificial variable.
Worked Examples
Example 1: Formulate a Linear Programming Problem
Problem
A factory produces two products, and .
The objective is to maximise profit:
Subject to the constraints:
- (Material A constraint),
- (Material B constraint),
- (Non-negativity).
Step 1: Add Slack Variables
Convert inequalities into equations by adding slack variables and :
where
Step 2: Final Formulation
Objective function:
Constraints:
Example 2: Introducing Surplus and Artificial Variables
Problem
A company must fulfil a contract requiring at least 50 units of a product. It produces and units, subject to the following constraints:
Step 1: Add Variables
Convert by subtracting a surplus variable and adding an artificial variable :
Convert by adding an artificial variable :
Step 2: Final Formulation
Objective function:
Constraints:
Note Summary
Common Mistakes
- Incorrectly adding variables: Confusing slack, surplus, and artificial variables in the wrong context.
- Skipping non-negativity constraints: Failing to include
- Misinterpreting inequalities: Adding slack variables to constraints instead of subtracting surplus variables.
- Not converting to equations: Leaving inequalities instead of reformulating them as equalities.
- Incorrect objective function: Forgetting to use artificial variables in the minimisation phase for Simplex.
Key Formulas
- Slack variable:
- Surplus variable:
- Artificial variable:
- Non-negativity: