Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class SimpleConstraintNeighborhoodGenerator
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["The `SimpleConstraintNeighborhoodGenerator` randomly selects a subset of constraints and relaxes their variables to explore different solutions."],["It aims to satisfy a specified difficulty level, potentially not relaxing all variables in the last constraint."],["This class provides two primary methods: `Generate` for creating a neighborhood and `SimpleConstraintNeighborhoodGenerator` for object construction using a helper and name."]]],["The `SimpleConstraintNeighborhoodGenerator` class in C++ selects a random subset of constraints and relaxes all variables within them. The `Generate` method takes an initial solution, a difficulty parameter, and a random number generator to produce a `Neighborhood`. The class constructor, `SimpleConstraintNeighborhoodGenerator`, takes a `NeighborhoodGeneratorHelper` and a name. The process of relaxing variables might not be done on all the variable of the last constraint.\n"]]