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