[[["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\u003e\u003ccode\u003eSequenceVarLocalSearchHandler\u003c/code\u003e is a class within the OR-Tools constraint solver, designed for local search operations on sequence variables.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to interact with assignments, such as adding to an assignment (\u003ccode\u003eAddToAssignment\u003c/code\u003e), retrieving values (\u003ccode\u003eValueFromAssignment\u003c/code\u003e), and reacting to changes (\u003ccode\u003eOnAddVars\u003c/code\u003e, \u003ccode\u003eOnRevertChanges\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eUsers can create custom local search handlers by extending this class and implementing the relevant methods.\u003c/p\u003e\n"],["\u003cp\u003eThe handler interacts with a \u003ccode\u003eSequenceVarLocalSearchOperator\u003c/code\u003e to perform the actual local search operations.\u003c/p\u003e\n"]]],["The `SequenceVarLocalSearchHandler` class in C++ manages sequence variables within a local search context. Key methods include `AddToAssignment`, which assigns values to a sequence variable, and `ValueFromAssignment`, which retrieves values. `OnAddVars` and `OnRevertChanges` handle variable addition and change reversion, respectively. The class has multiple constructors, including a copy constructor and one that takes a `SequenceVarLocalSearchOperator`. These methods are essential for manipulating sequence variables during the search process.\n"],null,["# SequenceVarLocalSearchHandler\n\nC++ Reference: class SequenceVarLocalSearchHandler\n==================================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|--------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`AddToAssignment`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1120) | Return type: `void ` Arguments: `SequenceVar* var, const std::vector\u003cint\u003e& value, bool active, std::vector\u003cint\u003e* assignment_indices, int64_t index, Assignment* assignment` \u003cbr /\u003e |\n| [`OnAddVars`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1126) | Return type: `void ` \u003cbr /\u003e |\n| [`OnRevertChanges`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1125) | Return type: `void ` Arguments: `int64_t index, const std::vector\u003cint\u003e& value` \u003cbr /\u003e |\n| [`SequenceVarLocalSearchHandler`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1115) | \u003cbr /\u003e |\n| [`SequenceVarLocalSearchHandler`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1116) | \u003cbr /\u003e Arguments: `const SequenceVarLocalSearchHandler& other` \u003cbr /\u003e |\n| [`SequenceVarLocalSearchHandler`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1118) | Return type: `explicit ` Arguments: `SequenceVarLocalSearchOperator* op` \u003cbr /\u003e |\n| [`ValueFromAssignment`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1123) | Return type: `bool ` Arguments: `const Assignment& assignment, SequenceVar* var, int64_t index, std::vector\u003cint\u003e* value` \u003cbr /\u003e |"]]