simplex
simplex copied to clipboard
Parse
This PR is based on Modernize and Array. This adds a parse module that allows:
Simplex.maximize('x + y',
'2x + y <= 4',
'x + 2y <= 3')
# => [1.6666666666666667, 0.6666666666666666]
FYI, I folded all of my changes into my own project: https://github.com/rickhull/compsci/blob/master/lib/compsci/simplex.rb