#include <time.h>
#include <sstream>
#include <vector>
#include <set>
#include <string>
#include <utility>
#include <limits>
#include <cmath>
#include "cpp_common/pgr_assert.h"
#include "cpp_common/Dmatrix.h"
#include "tsp/eucledianDmatrix.h"
#include "tsp/tour.h"
Go to the source code of this file.
|
static size_t | pred (size_t i, size_t n) |
|
static size_t | rand (size_t n) |
|
static size_t | succ (size_t i, size_t n) |
|
static size_t pred |
( |
size_t |
i, |
|
|
size_t |
n |
|
) |
| |
|
static |
Definition at line 68 of file pgr_tsp.hpp.
69 return i == 0? n - 1: i -1;
static size_t rand |
( |
size_t |
n | ) |
|
|
static |
Definition at line 53 of file pgr_tsp.hpp.
References pgassert.
55 return static_cast< size_t >(
std::rand() % n);
static size_t rand(size_t n)
#define pgassert(expr)
Uses the standard assert syntax.
static size_t succ |
( |
size_t |
i, |
|
|
size_t |
n |
|
) |
| |
|
static |
Definition at line 61 of file pgr_tsp.hpp.
References pgassert.
63 return static_cast<size_t>((i + 1) % n);
#define pgassert(expr)
Uses the standard assert syntax.