Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class NeighborhoodGeneratorHelper
Note: This documentation is automatically generated.
Contains pre-computed information about a given CpModelProto that is meant
to be used to generate LNS neighborhood. This class can be shared between
more than one generator in order to reduce memory usage.
Note that its implement the SubSolver interface to be able to Synchronize()
the bounds of the base problem with the external world.
Returns the list of indices of active interval constraints according
to the initial_solution and the parameter lns_focus_on_performed_intervals.
If true, this method returns the list of performed intervals in the
solution. If false, it returns all intervals of the model.
Arguments: int var) const ABSL_SHARED_LOCKS_REQUIRED(graph_mutex_
Indicates if the variable can be frozen. It happens if the variable is non
constant, and if it is a decision variable, or if
focus_on_decision_variables is false.
[[["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 `NeighborhoodGeneratorHelper` class in C++ facilitates the generation of LNS neighborhoods for constraint programming problems using a pre-computed `CpModelProto`."],["It can be shared across multiple generators to optimize memory usage and implements the `SubSolver` interface for bound synchronization."],["This class offers methods to create various types of neighborhoods like fixing or relaxing variables, removing constraints, focusing on specific intervals or generating a full neighborhood."],["It also provides access to active variables and model information, such as the initial `CpModelProto` and `SatParameters`."],["Users can utilize helper functions like `AddSolutionHinting` to incorporate initial solution information and `DifficultyMeansFullNeighborhood` to check neighborhood difficulty."]]],[]]