![]() |
Google OR-Tools v9.12
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 246 of file set_cover_heuristics.h.
|
inlineexplicit |
Definition at line 248 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 263 of file set_cover_heuristics.h.
|
inline |
Returns true if t is in the array. This is O(size), but small.
Definition at line 276 of file set_cover_heuristics.h.
|
inline |
Initializes the array of the Tabu list.
Definition at line 256 of file set_cover_heuristics.h.
|
inline |
Returns the size of the array.
Definition at line 253 of file set_cover_heuristics.h.