VRPRoute Class Reference

#include <VRPRoute.h>

List of all members.

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


Detailed Description

Definition at line 24 of file VRPRoute.h.


Constructor & Destructor Documentation

VRPRoute::VRPRoute (  ) 

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.

VRPRoute::~VRPRoute (  ) 

Destructor for the VRPRoute.

Definition at line 45 of file VRPRoute.cpp.


Member Function Documentation

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.


Member Data Documentation

Definition at line 38 of file VRPRoute.h.

Definition at line 44 of file VRPRoute.h.

Definition at line 45 of file VRPRoute.h.

Definition at line 39 of file VRPRoute.h.

Definition at line 40 of file VRPRoute.h.

Definition at line 58 of file VRPRoute.h.

Definition at line 57 of file VRPRoute.h.

Definition at line 52 of file VRPRoute.h.

int VRPRoute::neighboring_routes[MAX_NEIGHBORING_ROUTES]

Definition at line 60 of file VRPRoute.h.

Definition at line 41 of file VRPRoute.h.

Definition at line 42 of file VRPRoute.h.

Definition at line 62 of file VRPRoute.h.

Definition at line 37 of file VRPRoute.h.

Definition at line 48 of file VRPRoute.h.

Definition at line 47 of file VRPRoute.h.

double* VRPRoute::x

Definition at line 49 of file VRPRoute.h.

Definition at line 54 of file VRPRoute.h.

double* VRPRoute::y

Definition at line 50 of file VRPRoute.h.

Definition at line 55 of file VRPRoute.h.


The documentation for this class was generated from the following files:

Generated on Thu Mar 10 11:08:49 2011 for VRPH by  doxygen 1.5.9