| @@ 68-70 (lines=3) @@ | ||
| 65 | $newVec[]=($vec[$i]); |
|
| 66 | } |
|
| 67 | $newVec[$idx]+=$dir; |
|
| 68 | if ($newVec[$idx] < $this->domain[$idx][0]) { |
|
| 69 | $newVec[$idx] = $this->domain[$idx][0]; |
|
| 70 | } |
|
| 71 | if ($newVec[$idx] > $this->domain[$idx][1]) { |
|
| 72 | $newVec[$idx] = $this->domain[$idx][1]; |
|
| 73 | } |
|
| @@ 71-73 (lines=3) @@ | ||
| 68 | if ($newVec[$idx] < $this->domain[$idx][0]) { |
|
| 69 | $newVec[$idx] = $this->domain[$idx][0]; |
|
| 70 | } |
|
| 71 | if ($newVec[$idx] > $this->domain[$idx][1]) { |
|
| 72 | $newVec[$idx] = $this->domain[$idx][1]; |
|
| 73 | } |
|
| 74 | ||
| 75 | $ea = $this->cost->calc($vec); |
|
| 76 | $eb = $this->cost->calc($newVec); |
|