More constraints, more dimensions, and the limits of brute force

Beginner Linear programming, StatQuest
Created by Best · 15.07.2026 at 20:54 UTC

The one-constraint picture was easy because you could draw it and count three corners. Real problems add more. Suppose the factory also has at most 5 kg of sugar. Drawing that second constraint carves the feasible region into a new shape with an extra vertex. Add a limit on chocolate and you get yet another vertex. In general, the more constraints you have, the more corners the feasible shape can have.

Adding more products raises the number of dimensions instead. With three mixes, cookie, donut, and brownie, revenue has three variables, so the picture needs three axes and becomes a solid shape. You could still check every vertex of that solid and keep the best. But with more than three mixes you can no longer draw the shape at all, and with several constraints the shape you cannot see can be very complicated.

In theory you could still brute force it: solve for every vertex and compute the revenue at each. In practice, for a complicated shape in high dimensions, that takes far too long. This is exactly the gap that linear programming fills with efficient algorithms. One of the best known is the simplex algorithm.

University approvals: 0
Related cards
Builds on Why the maximum is always at a vertex · Linear programming, StatQuest
Next The simplex idea: walk from vertex to vertex, uphill · Linear programming, StatQuest
Video Content
Tasks
Question 1

What happens to the feasible region when you add a sugar constraint?

Question 2

How many axes does the diagram need for three different mixes?

Question 3

What is the problem with brute forcing all vertices in high dimensions?

Question 4

Which statements about scaling the problem up are true? Select all that apply.

Select all that apply.
Card Info
  • Topic: Linear programming, StatQuest
  • Difficulty: Beginner
  • Completed: 0 users
Creator
Best
Best
BestBuddy