[[["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\u003eThe \u003ccode\u003eIntegerSearchHelper\u003c/code\u003e class in C++ is designed to facilitate code sharing across different types of search algorithms.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for executing code before decisions (\u003ccode\u003eBeforeTakingDecision\u003c/code\u003e), selecting decisions (\u003ccode\u003eGetDecision\u003c/code\u003e), and implementing decisions (\u003ccode\u003eTakeDecision\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetDecision\u003c/code\u003e method utilizes decision heuristics to identify a non-fixed literal, while \u003ccode\u003eTakeDecision\u003c/code\u003e attempts to apply the decision and may trigger backjumps if necessary.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003eBeforeTakingDecision\u003c/code\u003e and \u003ccode\u003eTakeDecision\u003c/code\u003e return \u003ccode\u003efalse\u003c/code\u003e if the model becomes unsatisfiable during their execution.\u003c/p\u003e\n"]]],["The `IntegerSearchHelper` class facilitates code sharing for different search types. Key actions include: `BeforeTakingDecision`, which executes code before a decision and checks model satisfaction; `GetDecision`, which calls decision heuristics to extract a non-fixed literal; `TakeDecision`, which attempts to apply a given decision and may trigger a backjump if needed; and the class constructor `IntegerSearchHelper`, that take the model as an argument. All are used in the searching process.\n"],null,["# IntegerSearchHelper\n\nC++ Reference: class IntegerSearchHelper\n========================================\n\n\nNote: This documentation is automatically generated.\nAn helper class to share the code used by the different kind of search.\n\n| Method ||\n|----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`BeforeTakingDecision`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/integer_search.h#L260) | Return type: `bool ` Executes some code before a new decision. Returns false if model is UNSAT. |\n| [`GetDecision`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/integer_search.h#L264) | Return type: `LiteralIndex ` Arguments: `const std::function\u003cBooleanOrIntegerLiteral()\u003e& f` Calls the decision heuristics and extract a non-fixed literal. Note that we do not want to copy the function here. |\n| [`IntegerSearchHelper`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/integer_search.h#L256) | Return type: `explicit ` Arguments: `Model* model` \u003cbr /\u003e |\n| [`TakeDecision`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/integer_search.h#L268) | Return type: `bool ` Arguments: `Literal decision` Tries to take the current decision, this might backjump. Returns false if the model is UNSAT. |"]]