Skip to content

Commit

Permalink
Fixed a missing this in an assert in SimulatedAnnealing
Browse files Browse the repository at this point in the history
alberto-santini committed Apr 29, 2018
1 parent ac0a1af commit 751c36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AcceptanceCriteria/SimulatedAnnealing.h
Original file line number Diff line number Diff line change
@@ -134,7 +134,7 @@ namespace mlpalns {
void SimulatedAnnealing<Solution>::update_parameters(std::uint32_t iter_number, double, double best_obj) {
bool reheating = false;

assert(params.acceptance_params_base == Parameters::AcceptanceParamsBase::Iterations);
assert(this->params.acceptance_params_base == Parameters::AcceptanceParamsBase::Iterations);

// Check if we have to reheat
if(this->params.sa_params.reheating_is_enabled && (iter_number - this->params.prerun_iters) % reheating_iters == 0) {

0 comments on commit 751c36f

Please sign in to comment.