Skip to content

Commit

Permalink
Just only hill climb
Browse files Browse the repository at this point in the history
  • Loading branch information
chief-nerd committed Jul 25, 2015
1 parent 7d79076 commit 6edfd78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tabbie2.git/algorithms
2 changes: 1 addition & 1 deletion tabbie2.git/common/models/Round.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function generateWorkingDraw()

$this->saveDraw($draw);

Yii::trace("We saved the draw, almost there", __METHOD__);
Yii::trace("We saved the draw.", __METHOD__);

$this->lastrun_temp = $algo->temp;
$this->energy = $algo->best_energy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,14 @@ public function testSwapAdjudicator()
$line_a = clone $line[0];
$line_b = clone $line[1];

Debug::debug("A:" . implode(", ", ArrayHelper::getColumn($line_a->getAdjudicators(), "id")));
Debug::debug("B:" . implode(", ", ArrayHelper::getColumn($line_b->getAdjudicators(), "id")));

$this->algo->swap_adjudicator($line_a, $pos_a, $line_b, $pos_b);

Debug::debug("A:" . implode(", ", ArrayHelper::getColumn($line_a->getAdjudicators(), "id")));
Debug::debug("B:" . implode(", ", ArrayHelper::getColumn($line_b->getAdjudicators(), "id")));

expect("A change:", $line_a->getAdjudicator($pos_a)["id"])->equals($line[1]->getAdjudicator($pos_b)["id"]);
expect("B change:", $line_b->getAdjudicator($pos_b)["id"])->equals($line[0]->getAdjudicator($pos_a)["id"]);

Expand Down

0 comments on commit 6edfd78

Please sign in to comment.