C++ Reference: class PairExchangeOperator

Note: This documentation is automatically generated.

Operator which exchanges the position of two pairs; for both pairs the first node of the pair must be before the second node on the same path. Possible neighbors for the paths 1 -> A -> B -> 2 -> 3 and 4 -> C -> D -> 5 (where (1, 3) and (4, 5) are first and last nodes of the paths and can therefore not be moved, and (A, B) and (C,D) are pairs of nodes): 1 -> [C] -> [D] -> 2 -> 3, 4 -> [A] -> [B] -> 5
Method
DebugString

Return type: std::string

MakeNeighbor

Return type: bool

PairExchangeOperator

Arguments: const std::vector<IntVar*>& vars, const std::vector<IntVar*>& secondary_vars, std::function<int(int64_t)> start_empty_path_class, const RoutingIndexPairs& index_pairs

~PairExchangeOperator