

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Linear Programming
incomplete
2: Profit Function
incomplete
3: Contour Lines
incomplete
4: Simplex Algorithm
incomplete
5: Simplex Algorithm for Solving LP Problems
incomplete
6: Tableau Review
incomplete
7: Simplex Tableau – Slack Variables
incomplete
8: Simplex Tableau – Slack Variables
incomplete
9: Simplex Tableau – Basic Variables and the Solution
incomplete
10: Tableau Solution
incomplete
11: Pivoting the Tableau – When to Stop
incomplete
12: Finding the Pivot Column
incomplete
13: Finding the Pivot Row
incomplete
14: Pivot Row Review
incomplete
15: The Pivot Operation
incomplete
16: Pivot Review
incomplete
17: Solving the Whole Simplex
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Linear programming is a technique where we depict complex relationships through linear functions and then find the optimal inputs to maximize a given output. The real relationships might be much more complex – but we can simplify them to linear relationships.
In LP we're given some variables, and we want to assign real values to them in order to:
A baker has two desserts for sale: chocolate cake and sugar cookies. How much of each should she produce to maximize profits? Let's say she sells num_cakes cakes per day at a profit (in dollars) of 5 each, and num_cookies cookies per day at a profit of 1 each.
num_cakes and num_cookies are the variables whose optimal values the baker wants to find. If she knows how many of each to make in order to maximize profit, her business will flourish.
You may be thinking:
She should make as many as she can! More volume -> more profit!
Not so! We have some constraints to consider.
Given the scenario above, our function is:
profit = (num_cakes * 5) + num_cookies
Remember, cakes are 5x more profitable than cookies.
The constraints can be modeled as follows:
num_cakes <= 250
num_cookies <= 200
num_cakes + num_cookies <= 300
0 <= num_cakes
0 <= num_cookies
We can then graph these constraints on an x/y coordinate plane: