Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class RelaxRandomVariablesGenerator
Note: This documentation is automatically generated.
Pick a random subset of variables.
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 |
RelaxRandomVariablesGenerator | Return type: explicit Arguments:
NeighborhoodGeneratorHelper const* helper, const std::string& name |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[],["The `RelaxRandomVariablesGenerator` class in C++ randomly selects a subset of variables. Its core functionality is provided by two methods: `RelaxRandomVariablesGenerator`, the constructor, which takes a `NeighborhoodGeneratorHelper` and a name; and `Generate`, which takes an initial solution, a difficulty level, and a random number generator, then it returns a `Neighborhood`. The documentation also mentions a TODO item about handling connected components.\n"]]