ROOT 6.08/07 Reference Guide |
#include <cmath>
#include <vector>
#include <algorithm>
#include "Math/GSLSimAnnealing.h"
#include "Math/GSLRndmEngines.h"
#include "Math/SMatrix.h"
#include "Math/Math.h"
#include "TH1.h"
#include "TGraph.h"
#include "TCanvas.h"
#include "TApplication.h"
Macros | |
#define | N_CITIES (sizeof(cities)/sizeof(Stsp_city)) |
Typedefs | |
typedef struct s_tsp_city | Stsp_city |
Functions | |
double | city_distance (Stsp_city c1, Stsp_city c2) |
void | do_all_perms (MySimAnFunc &f, int offset) |
void | FullSearch () |
int | main (int argc, char **argv) |
void | print_distance_matrix () |
void | simanTSP (bool debug=true) |
Variables | |
double | best_E |
Stsp_city | cities [] |
double | distance_matrix [N_CITIES][N_CITIES] |
unsigned int | nfiter = 0 |
unsigned int | r1 [N_CITIES] |
unsigned int | r2 [N_CITIES] |
unsigned int | r3 [N_CITIES] |
double | second_E |
bool | showGraphics = false |
double | third_E |
Definition at line 53 of file simanTSP.cxx.
typedef struct s_tsp_city Stsp_city |
Definition at line 38 of file simanTSP.cxx.
Definition at line 58 of file simanTSP.cxx.
void do_all_perms | ( | MySimAnFunc & | f, |
int | offset | ||
) |
Definition at line 329 of file simanTSP.cxx.
void FullSearch | ( | ) |
Definition at line 406 of file simanTSP.cxx.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 448 of file simanTSP.cxx.
void print_distance_matrix | ( | ) |
Definition at line 85 of file simanTSP.cxx.
void simanTSP | ( | bool | debug = true | ) |
Definition at line 244 of file simanTSP.cxx.
double best_E |
Definition at line 325 of file simanTSP.cxx.
Stsp_city cities[] |
Definition at line 40 of file simanTSP.cxx.
Definition at line 55 of file simanTSP.cxx.
unsigned int nfiter = 0 |
Definition at line 324 of file simanTSP.cxx.
unsigned int r1[N_CITIES] |
Definition at line 321 of file simanTSP.cxx.
unsigned int r2[N_CITIES] |
Definition at line 322 of file simanTSP.cxx.
unsigned int r3[N_CITIES] |
Definition at line 323 of file simanTSP.cxx.
double second_E |
Definition at line 325 of file simanTSP.cxx.
bool showGraphics = false |
Definition at line 27 of file simanTSP.cxx.
double third_E |
Definition at line 325 of file simanTSP.cxx.