|
VRPH
1.0
|
#include <VRPRoute.h>
Public Member Functions | |
| VRPRoute () | |
| VRPRoute (int n) | |
| ~VRPRoute () | |
| void | create_name () |
| int | hash (int salt) |
Public Attributes | |
| int | start |
| int | end |
| double | length |
| int | load |
| int | num_customers |
| double | obj_val |
| int | hash_val |
| int | hash_val2 |
| double | total_service_time |
| double | time |
| double * | x |
| double * | y |
| char * | name |
| double | x_center |
| double | y_center |
| double | min_theta |
| double | max_theta |
| int | neighboring_routes [MAX_NEIGHBORING_ROUTES] |
| int * | ordering |
Definition at line 24 of file VRPRoute.h.
Stores information about a particular route. The ordering field is not updated during the search and is filled in only when requested.
Default constructor for the VRPRoute.
Definition at line 17 of file VRPRoute.cpp.
| VRPRoute::VRPRoute | ( | int | n | ) |
Allocates memory for the VRPRoute fields large enough for an n node problem.
Definition at line 30 of file VRPRoute.cpp.
Destructor for the VRPRoute.
Definition at line 45 of file VRPRoute.cpp.
| void VRPRoute::create_name | ( | ) |
Creates a name for the route as a string. Format is hashval1_hashval2_ordering (delimited by _)
Definition at line 108 of file VRPRoute.cpp.
| int VRPRoute::hash | ( | int | salt | ) |
Computes a hash of the route, returning an integer in the range [0,HASH_TABLE_SIZE-1].
Definition at line 63 of file VRPRoute.cpp.
| int VRPRoute::end |
Definition at line 38 of file VRPRoute.h.
Definition at line 44 of file VRPRoute.h.
Definition at line 45 of file VRPRoute.h.
| double VRPRoute::length |
Definition at line 39 of file VRPRoute.h.
| int VRPRoute::load |
Definition at line 40 of file VRPRoute.h.
| double VRPRoute::max_theta |
Definition at line 58 of file VRPRoute.h.
| double VRPRoute::min_theta |
Definition at line 57 of file VRPRoute.h.
| char* VRPRoute::name |
Definition at line 52 of file VRPRoute.h.
Definition at line 60 of file VRPRoute.h.
Definition at line 41 of file VRPRoute.h.
| double VRPRoute::obj_val |
Definition at line 42 of file VRPRoute.h.
| int* VRPRoute::ordering |
Definition at line 62 of file VRPRoute.h.
| int VRPRoute::start |
Definition at line 37 of file VRPRoute.h.
| double VRPRoute::time |
Definition at line 48 of file VRPRoute.h.
| double VRPRoute::total_service_time |
Definition at line 47 of file VRPRoute.h.
| double* VRPRoute::x |
Definition at line 49 of file VRPRoute.h.
| double VRPRoute::x_center |
Definition at line 54 of file VRPRoute.h.
| double* VRPRoute::y |
Definition at line 50 of file VRPRoute.h.
| double VRPRoute::y_center |
Definition at line 55 of file VRPRoute.h.
1.7.6.1