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.
Method | |
---|---|
ActiveVariables | Return type: Returns the list of "active" variables. |
ActiveVariablesWhileHoldingLock | Return type: Arguments: Returns the vector of active variables. The graph_mutex_ must be locked before calling this method. |
AddSolutionHinting | Return type: Arguments: Adds solution hinting to the neighborhood from the value of the initial solution. |
DifficultyMeansFullNeighborhood | Return type: Arguments: |
FixAllVariables | Return type: Arguments: Returns a trivial model by fixing all active variables to the initial solution values. |
FixGivenVariables | Return type: Arguments: Returns the LNS fragment where the given variables are fixed to the value they take in the given solution. |
FullNeighborhood | Return type: Returns a neighborhood that correspond to the full problem. |
GenerateTask | Return type: Arguments: |
GetActiveIntervals | Return type: Arguments: 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. |
IsActive | Return type: Arguments: 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. |
ModelProto | Return type: The initial problem. Note that the domain of the variables are not updated here. |
NeighborhoodGeneratorHelper | Arguments: |
NoNeighborhood | Return type: Returns a neighborhood that will just be skipped. It usually indicate that the generator failed to generated a neighborhood. |
NumActiveVariables | Return type: |
Parameters | Return type: |
RelaxGivenVariables | Return type: Arguments: Returns the LNS fragment which will relax all inactive variables and all variables in relaxed_variables. |
RemoveMarkedConstraints | Return type: Arguments: Returns the neighborhood where the given constraints are removed. |
shared_response | Return type: |
Synchronize | Return type: |
TaskIsAvailable | Return type: SubSolver interface. |
TypeToConstraints | Return type: Arguments: Returns all the constraints indices of a given type. |