C++ Reference: class ConstraintGraphNeighborhoodGenerator

Note: This documentation is automatically generated.

Pick a random subset of constraint and relax all of their variables. We are a bit smarter than this because after the first constraint is selected, we only select constraints that share at least one variable with the already selected constraints. The variable from the "last" constraint are selected randomly.
Method
ConstraintGraphNeighborhoodGenerator

Return type: explicit

Arguments: NeighborhoodGeneratorHelper const* helper, const std::string& name

Generate

Return type: Neighborhood

Arguments: const CpSolverResponse& initial_solution, double difficulty, absl::BitGenRef random