C++ Reference: class RelaxRandomConstraintsGenerator

Note: This documentation is automatically generated.

Pick a random subset of constraints and relax all the variables of these constraints. Note that to satisfy the difficulty, we might not relax all the variable of the "last" constraint.

TODO(user): In the presence of connected components, this should just work on one of them.
Method
Generate

Return type: Neighborhood

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

RelaxRandomConstraintsGenerator

Return type: explicit

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