Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class IntVarLocalSearchHandler
Note: This documentation is automatically generated.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[],["The `IntVarLocalSearchHandler` class in C++ manages local search operations for integer variables. Key methods include: `AddToAssignment`, which adds variable assignments; `OnAddVars`, for handling newly added variables; and `OnRevertChanges`, to revert changes to a specific index and value. Additionally, `ValueFromAssignment` retrieves values for variables from an assignment. The class also features constructors for initialization and copying, along with a constructor that takes a `IntVarLocalSearchOperator` pointer.\n"],null,[]]