#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/euclideanDmatrix.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) |
|
◆ pred()
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;
◆ rand()
static size_t rand |
( |
size_t |
n | ) |
|
|
static |
◆ succ()
static size_t succ |
( |
size_t |
i, |
|
|
size_t |
n |
|
) |
| |
|
static |
Definition at line 61 of file pgr_tsp.hpp.
63 return static_cast<size_t>((i + 1) % n);
References pgassert.