mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
fix tests
This commit is contained in:
parent
8c9e6929d0
commit
3656d6df97
|
|
@ -35,7 +35,7 @@ class Simplex
|
|||
|
||||
private array $c = [];
|
||||
|
||||
private int $v = 0;
|
||||
private float $v = 0.0;
|
||||
|
||||
private array $Basic = [];
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ class Simplex
|
|||
for ($j = 0; $j < $this->n; ++$j) {
|
||||
$ok = false;
|
||||
for ($k = 0; $k < $this->n; ++$k) {
|
||||
if ($j = $this->Nonbasic[$k]) {
|
||||
if ($j === $this->Nonbasic[$k]) {
|
||||
$this->c[$k] += $oldC[$j];
|
||||
$ok = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user