[[["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\u003eLocalSearchState\u003c/code\u003e is a class within the OR-Tools constraint solver, likely used in local search optimization.\u003c/p\u003e\n"],["\u003cp\u003eIt manages variables with methods to add them (\u003ccode\u003eAddVariable\u003c/code\u003e), finalize changes (\u003ccode\u003eCommit\u003c/code\u003e), undo changes (\u003ccode\u003eRevert\u003c/code\u003e), and check solution validity (\u003ccode\u003eStateIsValid\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eEach variable is represented by a \u003ccode\u003eLocalSearchVariable\u003c/code\u003e object and is initialized with a minimum and maximum value.\u003c/p\u003e\n"]]],["The `LocalSearchState` class in C++ provides methods for managing the state of a local search. It supports `AddVariable`, which creates and returns a `LocalSearchVariable` with specified initial minimum and maximum values. The `Commit` method finalizes the current state. `Revert` returns to the previous state. Lastly, `StateIsValid` checks the validity of the current state and returns a boolean. These are the core methods associated with this class.\n"],null,["# LocalSearchState\n\nC++ Reference: class LocalSearchState\n=====================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|---------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [`AddVariable`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1659) | Return type: `LocalSearchVariable ` Arguments: `int64_t initial_min, int64_t initial_max` \u003cbr /\u003e |\n| [`Commit`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1660) | Return type: `void ` \u003cbr /\u003e |\n| [`Revert`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1661) | Return type: `void ` \u003cbr /\u003e |\n| [`StateIsValid`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1662) | Return type: `bool ` \u003cbr /\u003e |"]]