An open API service indexing awesome lists of open source software.

https://github.com/experrior/simplex_two_step

Complete Two Step Simplex Algorithm
https://github.com/experrior/simplex_two_step

python simplex

Last synced: 9 months ago
JSON representation

Complete Two Step Simplex Algorithm

Awesome Lists containing this project

README

          

## Python implementation of two step version of simplex algorithm

This version is an 'expanded' version of the two step simplex algorithm, as it can handle cases with all 'less than', 'more than', 'equals' types of constrains present at the same time. For all possible RHS values including 0 (little approximation behind the scenes).

I provided example inputs in files: `input_max.txt` `input_min.txt`, with the results so that you can check and verify them yourself.

You should plug in the problem to `input.txt` in a following format:

MAX/MIN x1 x2 x3 ...

y1 y2 y3 ... =/> z1

y4 y5 y6 ... =/> z1


...

where
$x \in R$, $y \in R$, $z \in N$