Skip to content

Instantly share code, notes, and snippets.

View cheikhtourad's full-sized avatar
🎯
Focusing

cheikhtourad

🎯
Focusing
View GitHub Profile
@mik30s
mik30s / SimplexClass.java
Created April 17, 2016 01:39
Simplex Method in Java
// The Following solves a linear programming problem
// In standardized form using the simplex method
// Please the read below.
/************************************************USAGE*************************************************************
* 1.Create an instance of the simplex class
* 2.Fill in the table with the standardized form of the problem by calling simplex.fillTable()
* 3.Create a while loop and call the simplex.compute() method until it returns ERROR.IS_OPTIMAL or ERROR.UNBOUNDED
* ****************************************************************************************************************/
public class Simplex {