src/aco.cpp
/**
 * Implements the schedule for u_gb as defined in the
 * Future Generation Computer Systems article or in Stuetzle's PhD thesis.
 * This schedule is only applied if local search is used.
 */
Implements the schedule for u_gb as defined in the
Future Generation Computer Systems article or in Stuetzle's PhD thesis.
This schedule is only applied if local search is used.
Implements the schedule for u_gb as defined in the Future Generation Computer Systems article or in Stuetzle ' s PhD thesis . This schedule is only applied if local search is used .
void ACO::update_u_gb() noexcept {
    if (use_local_search_) {
        const auto delta = current_iteration_ - restart_best_found_iteration_;
        if (delta < 25)
            u_gb_ = 25;
        else if (delta < 75)
            u_gb_ = 5;
        else if (delta < 125)
            u_gb_ = 3;
        else if (delta < 250)
            u_gb_ = 2;
        else
            u_gb_ = 1;
    } else {
        u_gb_ = 25;
    }
}
void ACO :: update_u_gb ( ) noexcept { if ( use_local_search_ ) { const auto delta = current_iteration_ - restart_best_found_iteration_ ; if ( delta < 25 ) u_gb_ = 25 ; else if ( delta < 75 ) u_gb_ = 5 ; else if ( delta < 125 ) u_gb_ = 3 ; else if ( delta < 250 ) u_gb_ = 2 ; else u_gb_ = 1 ; } else { u_gb_ = 25 ; } }
Implements the schedule for u_gb as defined in the
 Future Generation Computer Systems article or in Stuetzle's PhD thesis.
Implements the schedule for u_gb as defined in the Future Generation Computer Systems article or in Stuetzle ' s PhD thesis .