Template Function ADS::tourCost

Function Documentation

template<class T>
T ADS::tourCost(const std::vector<std::vector<T>> &D, const Nodes &S)

the cost of the circuit S of the distances D

Pre:

D is square and S has distinct cities