Skip to content

jli0108/simplex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simplex

Implementation of Simplex Method in Python

Notes

This implementation can be used for canonical or standard form.

For now, this implementation avoids degeneracy (by using Bland's rule). I might later modify the implementation to choose the entering variable to be the one with the largest coefficient, then resort to Bland's rule after multiple iterations of degeneracy.

The revised simplex method avoids tableaus but is a bit less readable.

Requirements

This implementation uses Python and requires numpy.

Usage

Clone the repository and change into it.

$ git clone https://github.com/jli0108/simplex.git
$ cd simplex

Modify either simplex.py or revised_simplex.py.

Modify maximize depending on whether you want to solve a maximization or minimiation problem.

Modify the arrays c, A_B, and b with your favorite editor, i.e.

$ code simplex.py

Run simplex.py or revised_simplex.py with either python or python3.

About

An Implementation of Simplex Method

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages