We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Tableau Review

As we've seen, a linear program can be represented in a tableau, which is just a fancy word for a matrix.

The tableau is useful because it allows us to keep track of the state of the program (moving around the vertices of the graph) without storing all the vertices explicitly.

To answer the questions, use this data from our bakery example, where cakes = x and cookies = y.

Objective Function

profit = (x * 5) + y

or

profit - 5x - y = 0

Constraints

x <= 250
y <= 200
x + y <= 300
0 <= x
0 <= y
self.constraints = [250, 200, 300]

# Tableau
self.rows = [
    [1.0, 0.0],
    [0.0, 1.0],
    [1.0, 1.0],
]
self.objective = [-5.0, -1.0]