Skip to content

Instantly share code, notes, and snippets.

View TimotheFCN's full-sized avatar

Timothé Focone TimotheFCN

View GitHub Profile
@TimotheFCN
TimotheFCN / simplexe.py
Last active May 22, 2022 17:52
Simplexe
from math import *
"""
Read-me:
Call functions in this order:
problem = gen_matrix(v,c)
constrain(problem, string)
obj(problem, string)
maxz(problem)
gen_matrix() produces a matrix to be given constraints and an objective function to maximize or minimize.
It takes var (variable number) and cons (constraint number) as parameters.