Dip
0.92.4
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
tmp
Dip-0.92.4
SYMPHONY
Applications
VRP
include
heurs
heur_params.h
Go to the documentation of this file.
1
/*===========================================================================*/
2
/* */
3
/* This file is part of a demonstration application for use with the */
4
/* SYMPHONY Branch, Cut, and Price Library. This application is a solver for */
5
/* the Vehicle Routing Problem and the Traveling Salesman Problem. */
6
/* */
7
/* This application was developed by Ted Ralphs (ted@lehigh.edu) */
8
/* This file was modified by Ali Pilatin January, 2005 (alp8@lehigh.edu) */
9
/* */
10
/* (c) Copyright 2000-2005 Ted Ralphs. All Rights Reserved. */
11
/* */
12
/* This software is licensed under the Eclipse Public License. Please see */
13
/* accompanying file for terms. */
14
/* */
15
/*===========================================================================*/
16
17
#ifndef _HEUR_PARAMS_H
18
#define _HEUR_PARAMS_H
19
20
/*--------------------------------------------------------------------*\
21
| This data structure contains parameters used to run the two savings |
22
| routines. savings_trials and savings2_trials contain the number of |
23
| "blocks" of trialss of each of these two heuristics that should be |
24
| spawned. The only difference between these two heuristics is that |
25
| savings2 uses binomial heaps and is slightly faster on most |
26
| problems. Also, they break ties differently. Mu and lamda are the |
27
| two parameters used in determining the savings for each node. As we |
28
| vary these parameters, we get different solutions. The grid size |
29
| specifies what size search grid of parameter settings we should try |
30
| for each "block" of trials. If there is more than one block of |
31
| trials to be executed, then the first one uses far_insert to begin |
32
| each new route and the second one uses random insertion |
33
\*--------------------------------------------------------------------*/
34
35
typedef
struct
SAVINGS_PARAM
{
36
int
savings_trials
;
37
int
savings2_trials
;
38
int
grid_size
;
39
float
mu
;
40
float
lamda
;
41
}
savings_param
;
42
43
/*--------------------------------------------------------------------*\
44
| This structure contains parameters relating to the construction of |
45
| TSP tours by various simple heuristics and to the partitioning of |
46
| them into VRP solutions |
47
\*--------------------------------------------------------------------*/
48
49
typedef
struct
TSP_PAR
{
50
int
ni_trials
;
51
int
fi_trials
;
52
int
fini_trials
;
53
int
num_starts
;
54
}
tsp_par
;
55
56
/*--------------------------------------------------------------------*\
57
| This structure contains the values of the parameters for all the |
58
| heuristics. See the README file for an explanation of the parameters |
59
\*--------------------------------------------------------------------*/
60
61
typedef
struct
HEUR_PARAMS
{
62
int
no_of_machines
;
63
int
sweep_trials
;
64
savings_param
savings_par
;
65
savings_param
savings3_par
;
66
int
near_cluster_trials
;
67
int
route_opt1
;
68
int
route_opt2
;
69
int
route_opt3
;
70
int
exchange
;
71
int
exchange2
;
72
float
fini_ratio
;
73
int
ni_trials
;
74
int
fi_trials
;
75
int
fini_trials
;
76
tsp_par
tsp
;
77
}
heur_params
;
78
79
#endif
TSP_PAR
Definition:
heur_params.h:49
HEUR_PARAMS::route_opt1
int route_opt1
Definition:
heur_params.h:67
HEUR_PARAMS::fi_trials
int fi_trials
Definition:
heur_params.h:74
HEUR_PARAMS::near_cluster_trials
int near_cluster_trials
Definition:
heur_params.h:66
savings_param
struct SAVINGS_PARAM savings_param
TSP_PAR::num_starts
int num_starts
Definition:
heur_params.h:53
tsp_par
struct TSP_PAR tsp_par
HEUR_PARAMS::ni_trials
int ni_trials
Definition:
heur_params.h:73
HEUR_PARAMS
Definition:
heur_params.h:61
HEUR_PARAMS::exchange2
int exchange2
Definition:
heur_params.h:71
SAVINGS_PARAM::grid_size
int grid_size
Definition:
heur_params.h:38
HEUR_PARAMS::sweep_trials
int sweep_trials
Definition:
heur_params.h:63
HEUR_PARAMS::fini_ratio
float fini_ratio
Definition:
heur_params.h:72
SAVINGS_PARAM::lamda
float lamda
Definition:
heur_params.h:40
SAVINGS_PARAM::savings_trials
int savings_trials
Definition:
heur_params.h:36
SAVINGS_PARAM::mu
float mu
Definition:
heur_params.h:39
HEUR_PARAMS::route_opt3
int route_opt3
Definition:
heur_params.h:69
HEUR_PARAMS::no_of_machines
int no_of_machines
Definition:
heur_params.h:62
HEUR_PARAMS::savings_par
savings_param savings_par
Definition:
heur_params.h:64
HEUR_PARAMS::savings3_par
savings_param savings3_par
Definition:
heur_params.h:65
TSP_PAR::fi_trials
int fi_trials
Definition:
heur_params.h:51
TSP_PAR::ni_trials
int ni_trials
Definition:
heur_params.h:50
heur_params
struct HEUR_PARAMS heur_params
SAVINGS_PARAM
Definition:
heur_params.h:35
HEUR_PARAMS::route_opt2
int route_opt2
Definition:
heur_params.h:68
HEUR_PARAMS::fini_trials
int fini_trials
Definition:
heur_params.h:75
HEUR_PARAMS::tsp
tsp_par tsp
Definition:
heur_params.h:76
TSP_PAR::fini_trials
int fini_trials
Definition:
heur_params.h:52
HEUR_PARAMS::exchange
int exchange
Definition:
heur_params.h:70
SAVINGS_PARAM::savings2_trials
int savings2_trials
Definition:
heur_params.h:37
Generated by
1.8.5