[[["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\u003eIntVarLocalSearchFilter\u003c/code\u003e is a C++ class within the OR-Tools constraint solver that manages a set of integer variables (\u003ccode\u003eIntVar\u003c/code\u003e) during local search.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to add variables, check their synchronization status, retrieve their values, and find their index within the filter.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSynchronize\u003c/code\u003e method (which shouldn't be overridden directly) is crucial for updating the filter's internal state based on the current assignment and any changes (delta).\u003c/p\u003e\n"],["\u003cp\u003eUsers should override the \u003ccode\u003eOnSynchronize\u003c/code\u003e method (not listed in the table) to implement custom synchronization logic.\u003c/p\u003e\n"]]],["The `IntVarLocalSearchFilter` class offers methods to manage a collection of integer variables. Key actions include: `AddVars` to add variables, `FindIndex` to locate a variable's index, `Synchronize` to update the filter, `IsVarSynced` to check if a variable is synced, `Size` to retrieve the count of variables, `Value` to obtain a variable's value, and `Var` to get the variable at a given index. It also includes a constructor and destructor.\n"],null,["# IntVarLocalSearchFilter\n\nC++ Reference: class IntVarLocalSearchFilter\n============================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|---------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`AddVars`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1841) | Return type: `void ` Arguments: `const std::vector\u003cIntVar*\u003e& vars` Add variables to \"track\" to the filter. |\n| [`FindIndex`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1831) | Return type: `bool ` Arguments: `IntVar* const var, int64_t* index` \u003cbr /\u003e |\n| [`IntVarLocalSearchFilter`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1824) | Return type: `explicit ` Arguments: `const std::vector\u003cIntVar*\u003e& vars` \u003cbr /\u003e |\n| [`~IntVarLocalSearchFilter`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1825) | \u003cbr /\u003e |\n| [`IsVarSynced`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1848) | Return type: `bool ` Arguments: `int index` \u003cbr /\u003e |\n| [`Size`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1842) | Return type: `int ` \u003cbr /\u003e |\n| [`Synchronize`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1828) | Return type: `void ` Arguments: `const Assignment* assignment, const Assignment* delta` This method should not be overridden. Override OnSynchronize() instead which is called before exiting this method. |\n| [`Value`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1844) | Return type: `int64_t ` Arguments: `int index` \u003cbr /\u003e |\n| [`Var`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L1843) | Return type: `IntVar* ` Arguments: `int index` \u003cbr /\u003e |"]]