E-Code

Simplex method with every tableau shown — a TI-84 Plus CE program

By E-Code · updated

SIMPLEX is a TI-BASIC program for the TI-84 Plus CE. Maximize Z=c·x with up to 4 variables and 4 ≤ constraints. It shows the work: the starting tableau, and at each pivot the entering variable (most negative Z-row entry), the ratio test for every row, the leaving variable and the new tableau, then the optimum.

Says so when the problem is unbounded.

What it asks for and what it shows

It asks for 6 values at its prompts. In the example below it shows Z, X1, X2, START TABLEAU, PIVOT 1, ENTER X2 (MOST, R1 NO RATIO, R2 B/A, R3 B/A, LEAVE S2 ROW 2, PIVOT 2, ENTER X1 (MOST, R1 B/A, R2 NO RATIO, R3 B/A, LEAVE S3 ROW 3, OPTIMUM (IN L.

Example run

One of its oracle test cases. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 12
Input 23
Input 3{3,5}
Input 4{1,0,4}
Input 5{0,2,12}
Input 6{3,2,18}
The screen shows
Z=36
X1=2
X2=6
TextSTART TABLEAU
TextPIVOT 1
TextENTER X2 (MOST
TextR1 NO RATIO
R2 B/A=6
R3 B/A=9
TextLEAVE S2 ROW 2
TextPIVOT 2
TextENTER X1 (MOST
R1 B/A=4
TextR2 NO RATIO
R3 B/A=2
TextLEAVE S3 ROW 3
TextOPTIMUM (IN L

How it's checked

5 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 80 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-84 Plus CE math programs · All TI-84 Plus CE programs