C++ Reference: class PairExchangeRelocateOperator

This documentation is automatically generated.

Operator which exchanges the paths of two pairs (path have to be different). Pairs are inserted in all possible positions in their new path with the constraint that the second node must be placed after the first. Possible neighbors for the path 1 -> A -> B -> 2 -> 3, 4 -> C -> 5 -> D -> 6 1 -> C -> D -> 2 -> 3 4 -> A -> B -> 5 -> 6 1 -> C -> 2 -> D -> 3 4 -> A -> 5 -> B -> 6 1 -> 2 -> C -> D -> 3 4 -> 5 -> A -> B -> 6 1 -> C -> D -> 2 -> 3 4 -> A -> B -> 5 -> 6 1 -> C -> 2 -> D -> 3 4 -> A -> 5 -> B -> 6 1 -> 2 -> C -> D -> 3 4 -> 5 -> A -> B -> 6 1 -> C -> D -> 2 -> 3 4 -> A -> B -> 5 -> 6 1 -> C -> 2 -> D -> 3 4 -> A -> 5 -> B -> 6 1 -> 2 -> C -> D -> 3 4 -> 5 -> A -> B -> 6
Method
DebugString

Return type: std::string

MakeNeighbor

Return type: bool

PairExchangeRelocateOperator

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

~PairExchangeRelocateOperator