src/main.cc
/*
 * Compute ceiling distance between two nodes rounded to next integer for TSPLIB instances.
 */
Compute ceiling distance between two nodes rounded to next integer for TSPLIB instances.
Compute ceiling distance between two nodes rounded to next integer for TSPLIB instances .
static double calc_ceil2d_distance(double x1, double y1, double x2, double y2) {
    double xd = x1 - x2;
    double yd = y1 - y2;
    double r = sqrt(xd * xd + yd * yd);
    return (long int)(ceil(r));
}
static double calc_ceil2d_distance ( double x1 , double y1 , double x2 , double y2 ) { double xd = x1 - x2 ; double yd = y1 - y2 ; double r = sqrt ( xd * xd + yd * yd ) ; return ( long int ) ( ceil ( r ) ) ; }
Compute ceiling distance between two nodes rounded to next integer for TSPLIB instances.
Compute ceiling distance between two nodes rounded to next integer for TSPLIB instances .