C++ Reference: class ConstraintGraphNeighborhoodGenerator

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 contraint 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, random_engine_t* random