Home
Name Modified Size InfoDownloads / Week
readme.txt 2012-03-03 688 Bytes
Totals: 1 Item   688 Bytes 0
Simplex Solver For PHP
====================================================

Resolve standard Maximization / Minimization 
problem in LP using Simplex Method.



Usage
===================================================

Scenario: Minimize Z = 2x + 5
Subject to:
	x + 2y >= 4
	3x + 2y >= 3

----------------------------------------

$s = new Simplex(false, array(2,5));

$s->addConstraint(array(1,2), '>=', 4);
$s->addConstraint(array(3,2), '>=', 3);
$result = $s->solve();

$s->printTableau();
print_r($result)


---------------------------------------

Initialize with first parameter = true when you want to maximize Z




Licence
-------
PHP-3.0
Source: readme.txt, updated 2012-03-03