Photo AI

Last Updated Sep 27, 2025

Formulating a Linear Programming Problem Simplified Revision Notes

Revision notes with simplified explanations to understand Formulating a Linear Programming Problem quickly and effectively.

user avatar
user avatar
user avatar
user avatar
user avatar

318+ students studying

12.1.1 Formulating a Linear Programming Problem

Introduction

Linear Programming (LP) is a mathematical method used to optimize an objective function, such as maximizing profit or minimizing cost, subject to a set of constraints.

This note explains how to formulate problems as linear programs 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

  1. Define the Variables
  2. Write the Objective Function
  3. Write the Constraints
  4. Non-Negativity Constraints

1. Define the Variables

Identify decision variables x,y,z,x, y, z, \dots that represent quantities to be determined.


2. Write the Objective Function

Formulate the objective function to be maximised or minimised:

Z=ax+by+cz+Z = ax + by + cz + \dots

where a,b,c,a, b, c, \dots are coefficients that represent the contribution of each variable to the objective.


3. Write the Constraints

Express all constraints as linear inequalities or equalities:

a1x+b1y+c1zd1,a2x+b2y+c2zd2,etc.a_1x + b_1y + c_1z \leq d_1, \quad a_2x + b_2y + c_2z \geq d_2, \quad \text{etc.}

where ai,bi,ci,a_i, b_i, c_i, \dots are coefficients, and did_i is the limiting value.


4. Non-Negativity Constraints

Ensure that all decision variables are non-negative:

x,y,z0x, y, z \geq 0

Slack, Surplus, and Artificial Variables

Slack Variables

Definition: Added to \leq (less-than-or-equal-to) constraints to convert them into equations.

a1x+b1yd1a1x+b1y+s1=d1a_1x + b_1y \leq d_1 \quad \Rightarrow \quad a_1x + b_1y + s_1 = d_1

where s10s_1 \geq 0 is the slack variable representing unused capacity.

Surplus Variables

Definition: Subtracted from \geq (greater-than-or-equal-to) constraints to convert them into equations.

a2x+b2yd2a2x+b2ys2=d2a_2x + b_2y \geq d_2 \quad \Rightarrow \quad a_2x + b_2y - s_2 = d_2

where s20s_2 \geq 0 is the surplus variable representing excess quantity.

Artificial Variables

Definition: Introduced for \geq or == constraints to start the Simplex algorithm. These variables are used temporarily and are eliminated during optimization.

a3x+b3ys3=d3a3x+b3ys3+t1=d3a_3x + b_3y - s_3 = d_3 \quad \Rightarrow \quad a_3x + b_3y - s_3 + t_1 = d_3

where t10t_1 \geq 0 is the artificial variable.

Worked Examples

infoNote

Example 1: Formulate a Linear Programming Problem


Problem

A factory produces two products, xx and yy.

The objective is to maximise profit:

Z=5x+4yZ = 5x + 4y

Subject to the constraints:

  1. x+3y20x + 3y \leq 20 (Material A constraint),
  2. 2x+y152x + y \leq 15 (Material B constraint),
  3. x,y0x, y \geq 0 (Non-negativity).

Step 1: Add Slack Variables

Convert inequalities into equations by adding slack variables s1s_1 and s2s_2:

x+3y+s1=20x + 3y + s_1 = 202x+y+s2=152x + y + s_2 = 15

where s1,s20s_1, s_2 \geq 0


Step 2: Final Formulation

Objective function:

Maximise Z=5x+4y\text{Maximise } Z = 5x + 4y

Constraints:

x+3y+s1=20x + 3y + s_1 = 202x+y+s2=152x + y + s_2 = 15x,y,s1,s20x, y, s_1, s_2 \geq 0
infoNote

Example 2: Introducing Surplus and Artificial Variables


Problem

A company must fulfil a contract requiring at least 50 units of a product. It produces xx and yy units, subject to the following constraints:

  1. 3x+y503x + y \geq 50
  2. x+y=20x + y = 20
  3. x,y0x, y \geq 0

Step 1: Add Variables

Convert 3x+y503x + y \geq 50 by subtracting a surplus variable s1s_1 and adding an artificial variable t1t_1:

3x+ys1+t1=503x + y - s_1 + t_1 = 50

Convert x+y=20x + y = 20 by adding an artificial variable t2t_2:

x+y+t2=20x + y + t_2 = 20

Step 2: Final Formulation

Objective function:

Minimise W=t1+t2(for artificial variables in the initial phase)\text{Minimise } W = t_1 + t_2 \quad (\text{for artificial variables in the initial phase})

Constraints:

3x+ys1+t1=503x + y - s_1 + t_1 = 50x+y+t2=20x + y + t_2 = 20x,y,s1,t1,t20x, y, s_1, t_1, t_2 \geq 0

Note Summary

infoNote

Common Mistakes

  1. Incorrectly adding variables: Confusing slack, surplus, and artificial variables in the wrong context.
  2. Skipping non-negativity constraints: Failing to include x,y,s,t0x, y, s, t \geq 0
  3. Misinterpreting inequalities: Adding slack variables to \geq constraints instead of subtracting surplus variables.
  4. Not converting to equations: Leaving inequalities instead of reformulating them as equalities.
  5. Incorrect objective function: Forgetting to use artificial variables in the minimisation phase for Simplex.
infoNote

Key Formulas

  1. Slack variable:
a1x+b1yd1a1x+b1y+s1=d1,s10a_1x + b_1y \leq d_1 \quad \Rightarrow \quad a_1x + b_1y + s_1 = d_1, \quad s_1 \geq 0
  1. Surplus variable:
a2x+b2yd2a2x+b2ys2=d2,s20a_2x + b_2y \geq d_2 \quad \Rightarrow \quad a_2x + b_2y - s_2 = d_2, \quad s_2 \geq 0
  1. Artificial variable:
a3x+b3ys3=d3a3x+b3ys3+t1=d3,t10a_3x + b_3y - s_3 = d_3 \quad \Rightarrow \quad a_3x + b_3y - s_3 + t_1 = d_3, \quad t_1 \geq 0
  1. Non-negativity:
x,y,s,t0x, y, s, t \geq 0
Books

Only available for registered users.

Sign up now to view the full note, or log in if you already have an account!

500K+ Students Use These Powerful Tools to Master Formulating a Linear Programming Problem

Enhance your understanding with flashcards, quizzes, and exams—designed to help you grasp key concepts, reinforce learning, and master any topic with confidence!

10 flashcards

Flashcards on Formulating a Linear Programming Problem

Revise key concepts with interactive flashcards.

Try Further Maths Decision Maths 1 Flashcards

1 quizzes

Quizzes on Formulating a Linear Programming Problem

Test your knowledge with fun and engaging quizzes.

Try Further Maths Decision Maths 1 Quizzes

29 questions

Exam questions on Formulating a Linear Programming Problem

Boost your confidence with real exam questions.

Try Further Maths Decision Maths 1 Questions

27 exams created

Exam Builder on Formulating a Linear Programming Problem

Create custom exams across topics for better practice!

Try Further Maths Decision Maths 1 exam builder

50 papers

Past Papers on Formulating a Linear Programming Problem

Practice past papers to reinforce exam experience.

Try Further Maths Decision Maths 1 Past Papers

Other Revision Notes related to Formulating a Linear Programming Problem you should explore

Discover More Revision Notes Related to Formulating a Linear Programming Problem to Deepen Your Understanding and Improve Your Mastery

Load more notes

Join 500,000+ A-Level students using SimpleStudy...

Join Thousands of A-Level Students Using SimpleStudy to Learn Smarter, Stay Organized, and Boost Their Grades with Confidence!

97% of Students

Report Improved Results

98% of Students

Recommend to friends

500,000+

Students Supported

50 Million+

Questions answered