/home/coin/SVN-release/CoinAll-1.1.0/SYMPHONY/Applications/VRP/include/vrp_const.h

Go to the documentation of this file.
00001 /*===========================================================================*/
00002 /*                                                                           */
00003 /* This file is part of a demonstration application for use with the         */
00004 /* SYMPHONY Branch, Cut, and Price Library. This application is a solver for */
00005 /* the Vehicle Routing Problem and the Traveling Salesman Problem.           */
00006 /*                                                                           */
00007 /* (c) Copyright 2000-2003 Ted Ralphs. All Rights Reserved.                  */
00008 /*                                                                           */
00009 /* This application was developed by Ted Ralphs (tkralphs@lehigh.edu)        */
00010 /*                                                                           */
00011 /* This software is licensed under the Common Public License. Please see     */
00012 /* accompanying file for terms.                                              */
00013 /*                                                                           */
00014 /*===========================================================================*/
00015 
00016 #ifndef _VRP_CONST_H
00017 #define _VRP_CONST_H
00018 
00019 #define LENGTH 255
00020 #define KEY_NUM 43
00021 #define DEAD 2
00022 #define NEAR_INS -1
00023 #define FAR_INS -2
00024 #define DEPOT_PENALTY 20
00025 #define RRR 6378.388
00026 #define MY_PI 3.141592
00027 #define LINE_LEN 80
00028 
00029 /*---------------- distance types -------------------------------------------*/
00030 #define _EXPLICIT 0
00031 #define _EUC_2D   1
00032 #define _EUC_3D   2
00033 #define _MAX_2D   3
00034 #define _MAX_3D   4
00035 #define _MAN_2D   5
00036 #define _MAN_3D   6
00037 #define _CEIL_2D  7
00038 #define _GEO      8
00039 #define _ATT      9
00040 
00041 /*---------------- message types --------------------------------------------*/
00042 #define VRP_LB_DATA                1
00043 #define VRP_LB_DATA2               2
00044 #define VRP_BROADCAST_DATA         3
00045 #define EXCHANGE_HEUR_TOUR         4
00046 #define ROUTE_FINS_START_RULE      5
00047 #define ROUTE_NINS_START_RULE      6
00048 #define ROUTE_FNINS_START_RULE     7
00049 #define FINI_RATIO                 8
00050 #define TSP_FINI_RATIO             9
00051 #define ROUTE_FINS_VRP_DATA        10
00052 #define ROUTE_NINS_VRP_DATA        11
00053 #define ROUTE_FNINS_VRP_DATA       12
00054 #define SWEEP_TRIALS               13
00055 #define TSP_NI_TRIALS              14
00056 #define TSP_FI_TRIALS              15
00057 #define TSP_FINI_TRIALS            16
00058 #define S3_NUMROUTES               17
00059 #define NC_NUMROUTES               18
00060 #define TSP_START_POINT            19
00061 #define SAVINGS_DATA               20
00062 #define SAVINGS2_DATA              21
00063 #define SAVINGS3_DATA              22
00064 #define DISPLAY_DATA               23
00065 #define STOP                       24
00066 
00067 
00068 /*---------------- cut types ------------------------------------------------*/
00069 #define SUBTOUR_ELIM_SIDE    0
00070 #define SUBTOUR_ELIM_ACROSS  1
00071 #define SUBTOUR_ELIM         2
00072 #define CLIQUE               3
00073 
00074 /*---------------- tsp cut routines -----------------------------------------*/
00075 
00076 #define NO_TSP_CUTS    0
00077 #define SUBTOUR        1
00078 #define BLOSSOM        2
00079 #define COMB           4
00080 #define ALL_TSP_CUTS   7
00081 
00082 #define NUM_RANDS 6
00083 
00084 #define ACTIVE_NODE_LIST_BLOCK_SIZE 100
00085 #define DELETE_POWER 3
00086 #define DELETE_AND 0x07
00087 
00088 /*-------------- base variable selection rules ------------------------------*/
00089 #define EVERYTHING_IS_EXTRA 0
00090 #define SOME_ARE_BASE       1
00091 #define EVERYTHING_IS_BASE  2
00092 
00093 /*--------- constants used in creating the edges lists for the root ---------*/
00094 #define CHEAP_EDGES      0
00095 #define REMAINING_EDGES  1
00096 
00097 /*--------- constants for saving the small graph ----------------------------*/
00098 #define SAVE_SMALL_GRAPH 1
00099 #define LOAD_SMALL_GRAPH 2
00100 
00101 /*--------- constants for defining which set of exchange heuristics to do --*/     
00102 #define FIRST_SET        1
00103 #define SECOND_SET       2
00104 
00105 #endif

Generated on Sun Nov 14 14:06:41 2010 for Coin-All by  doxygen 1.4.7