C++ Reference: class MakePairActiveOperator

This documentation is automatically generated.

Operator which inserts pairs of inactive nodes into a path. Possible neighbors for the path 1 -> 2 -> 3 with pair (A, B) inactive (where 1 and 3 are first and last nodes of the path) are: 1 -> [A] -> [B] -> 2 -> 3 1 -> [B] -> 2 -> [A] -> 3 1 -> [A] -> 2 -> [B] -> 3 1 -> 2 -> [A] -> [B] -> 3 Note that this operator does not expicitely insert the nodes of a pair one after the other which forbids the following solutions: 1 -> [B] -> [A] -> 2 -> 3 1 -> 2 -> [B] -> [A] -> 3 which can only be obtained by inserting A after B.
Method
DebugString

Return type: std::string

MakeNeighbor

Return type: bool

MakeNextNeighbor

Return type: bool

Arguments: Assignment* delta, Assignment* deltadelta

MakePairActiveOperator

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

~MakePairActiveOperator