Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class LocalSearchVariable
Note: This documentation is automatically generated.
A LocalSearchVariable can only be created by a LocalSearchState, then it is
meant to be passed by copy. If at some point the duplication of
LocalSearchState pointers is too expensive, we could switch to index only,
and the user would have to know the relevant state. The present setup allows
to ensure that variable users will not misuse the state.
[[["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."],[[["A `LocalSearchVariable` is created by a `LocalSearchState` and is designed to be passed by copy to ensure users don't misuse the state."],["The current implementation relies on state pointer duplication, which could be optimized to using indices if performance becomes a concern."],["`LocalSearchVariable` provides methods like `Min`, `Max`, `SetMin`, `SetMax`, and `Relax` to manage and manipulate its value within a search space."]]],["`LocalSearchVariable` instances are created by `LocalSearchState` and passed by copy. The class provides methods for managing the variable's range: `Min()` and `Max()` return the current minimum and maximum values. `SetMin()` and `SetMax()` adjust these values, returning a boolean indicating success. `Relax()` allows modifying variable constraints. If copying `LocalSearchState` pointers becomes too expensive, the implementation could switch to using indexes, potentially requiring users to track state.\n"]]