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."],[[["\u003cp\u003eThe \u003ccode\u003eSimpleConstraintNeighborhoodGenerator\u003c/code\u003e randomly selects a subset of constraints and relaxes their variables to explore different solutions.\u003c/p\u003e\n"],["\u003cp\u003eIt aims to satisfy a specified difficulty level, potentially not relaxing all variables in the last constraint.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides two primary methods: \u003ccode\u003eGenerate\u003c/code\u003e for creating a neighborhood and \u003ccode\u003eSimpleConstraintNeighborhoodGenerator\u003c/code\u003e for object construction using a helper and name.\u003c/p\u003e\n"]]],["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"],null,[]]