src/tpp.cpp
/**
 * Returns cost of a TPP solution given in route and based on the data in
 * instance.
*/
Returns cost of a TPP solution given in route and based on the data in
instance.
Returns cost of a TPP solution given in route and based on the data in instance .
int TPP::calc_solution_cost(const Instance& instance,
                            const vector<uint32_t> &route) {
    if (instance.is_capacitated_) {
        return calc_solution_cost_capacitated(instance, route);
    }
    return calc_solution_cost_uncapacitated(instance, route);
}
int TPP :: calc_solution_cost ( const Instance & instance , const vector < uint32_t > & route ) { if ( instance . is_capacitated_ ) { return calc_solution_cost_capacitated ( instance , route ) ; } return calc_solution_cost_uncapacitated ( instance , route ) ; }
Returns cost of a TPP solution given in route and based on the data in
 instance.
Returns cost of a TPP solution given in route and based on the data in instance .