Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <set_cover_heuristics.h>
Public Member Functions | |
TabuList (T size) | |
int | size () const |
Returns the size of the array. | |
void | Init (int size) |
Initializes the array of the Tabu list. | |
void | Add (T t) |
Adds t to the array. When the end of the array is reached, re-start at 0. | |
bool | Contains (T t) const |
Returns true if t is in the array. This is O(size), but small. | |
A Tabu list is a fixed-sized set with FIFO replacement. It is expected to be of small size, usually a few dozens of elements.
Definition at line 254 of file set_cover_heuristics.h.
|
inlineexplicit |
Definition at line 256 of file set_cover_heuristics.h.
|
inline |
Adds t to the array. When the end of the array is reached, re-start at 0.
Definition at line 271 of file set_cover_heuristics.h.
|
inline |
Returns true if t is in the array. This is O(size), but small.
Definition at line 284 of file set_cover_heuristics.h.
|
inline |
Initializes the array of the Tabu list.
Definition at line 264 of file set_cover_heuristics.h.
|
inline |
Returns the size of the array.
Definition at line 261 of file set_cover_heuristics.h.