Called by Start() after synchronizing the operator with the current
assignment. Should be overridden instead of Start() to avoid calling
VarLocalSearchOperator::Start explicitly.
[[["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\u003eVarLocalSearchOperator\u003c/code\u003e is a C++ class in Google's OR-Tools library used for implementing local search operators that work on a set of variables.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to access and modify the values of these variables during the search process, such as \u003ccode\u003eValue\u003c/code\u003e, \u003ccode\u003eSetValue\u003c/code\u003e, \u003ccode\u003eOldValue\u003c/code\u003e, and \u003ccode\u003eVar\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes functionalities for managing the activation state of the operator (\u003ccode\u003eActivate\u003c/code\u003e, \u003ccode\u003eDeactivate\u003c/code\u003e, \u003ccode\u003eActivated\u003c/code\u003e) and applying/reverting changes to the assignment (\u003ccode\u003eApplyChanges\u003c/code\u003e, \u003ccode\u003eRevertChanges\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOnStart\u003c/code\u003e is a virtual method intended for user implementation to define the operator's behavior, while methods like \u003ccode\u003eStart\u003c/code\u003e, \u003ccode\u003eIsIncremental\u003c/code\u003e, \u003ccode\u003eHoldsDelta\u003c/code\u003e, and \u003ccode\u003eSkipUnchanged\u003c/code\u003e contribute to the operator's interaction within the local search framework.\u003c/p\u003e\n"]]],["The `VarLocalSearchOperator` class in C++ provides methods for managing variables in local search algorithms. Key actions include: activating/deactivating variables (`Activate`, `Deactivate`), adding variables (`AddVars`), applying/reverting changes (`ApplyChanges`, `RevertChanges`), and setting/getting values (`SetValue`, `Value`, `OldValue`). It allows checking if changes are tracked (`HoldsDelta`) and if the operator is incremental (`IsIncremental`). Additional actions are implemented for getting the size of variables (`Size`) and skipping unchanged variables (`SkipUnchanged`). It has a `OnStart` method that gets called once the operator has been started.\n"],null,[]]