VRPH
1.0
|
#include <VRPTabuList.h>
Public Member Functions | |
VRPTabuList () | |
VRPTabuList (int t) | |
~VRPTabuList () | |
void | update_list (VRPRoute *r) |
void | show () |
void | empty () |
Public Attributes | |
int | max_entries |
int | num_entries |
int | start_index |
int * | hash_vals1 |
int * | hash_vals2 |
bool | full |
Definition at line 18 of file VRPTabuList.h.
VRPTabuList::VRPTabuList | ( | ) |
Default constructor for the VRPTabuList.
Definition at line 15 of file VRPTabuList.cpp.
VRPTabuList::VRPTabuList | ( | int | t | ) |
Constructor for the VRPTabuList with t tabu routes.
Definition at line 31 of file VRPTabuList.cpp.
VRPTabuList::~VRPTabuList | ( | ) |
Destructor for the VRPTabuList.
Definition at line 54 of file VRPTabuList.cpp.
void VRPTabuList::empty | ( | ) |
Removes all entries from the tabu list.
Definition at line 113 of file VRPTabuList.cpp.
void VRPTabuList::show | ( | ) |
Shows the hash values of the current tabu list, starting with start_index and listing all current entries.
Definition at line 137 of file VRPTabuList.cpp.
void VRPTabuList::update_list | ( | VRPRoute * | r | ) |
Updates the tabu list by adding the route r.
Definition at line 67 of file VRPTabuList.cpp.
bool VRPTabuList::full |
Definition at line 34 of file VRPTabuList.h.
Definition at line 31 of file VRPTabuList.h.
Definition at line 32 of file VRPTabuList.h.
Definition at line 28 of file VRPTabuList.h.
Definition at line 29 of file VRPTabuList.h.
Definition at line 30 of file VRPTabuList.h.