Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <routing_search.h>
Classes | |
struct | Insertion |
class | InsertionSequence |
class | InsertionSequenceIterator |
Public Member Functions | |
InsertionSequenceIterator | begin () |
InsertionSequenceContainer is a range over insertion sequences. | |
InsertionSequenceIterator | end () |
size_t | Size () const |
Returns the number of sequences of this container. | |
void | AddInsertionSequence (int vehicle, std::initializer_list< Insertion > insertion_sequence) |
void | AddInsertionSequence (int vehicle, absl::Span< const Insertion > insertion_sequence) |
Adds an insertion sequence to the container. | |
void | RemoveIf (const std::function< bool(const InsertionSequence &)> &p) |
void | Sort () |
void | Clear () |
Removes all sequences. | |
Holds sequences of insertions. A sequence of insertions must be in the same path, each insertion must take place either after the previously inserted node or further down the path, never before.
Definition at line 870 of file routing_search.h.
|
inline |
Adds an insertion sequence to the container.
Definition at line 969 of file routing_search.h.
|
inline |
Adds an insertion sequence to the container. Passing an initializer_list allows deeper optimizations by the compiler for cases where the sequence has a compile-time fixed size.
Definition at line 957 of file routing_search.h.
|
inline |
InsertionSequenceContainer is a range over insertion sequences.
Definition at line 944 of file routing_search.h.
|
inline |
Removes all sequences.
Definition at line 1000 of file routing_search.h.
|
inline |
Definition at line 947 of file routing_search.h.
|
inline |
Similar to std::remove_if(), removes all sequences that match a predicate. This keeps original order, and removes selected sequences.
Definition at line 982 of file routing_search.h.
|
inline |
Returns the number of sequences of this container.
Definition at line 952 of file routing_search.h.
|
inline |
Sorts sequences according to (cost, vehicle).
Definition at line 997 of file routing_search.h.