C++ Reference: class SearchLog
Note: This documentation is automatically generated.
The base class of all search logs that periodically outputs information when
the search is running.
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."],[[["`SearchLog` is the base class for all search logs in OR-Tools, providing a foundation for tracking and outputting information during the search process."],["It periodically outputs information about the search progress, including details about solutions and decisions made."],["The class includes methods for handling search events, such as `EnterSearch`, `ExitSearch`, `AtSolution`, and `NoMoreSolutions`, which are triggered at various stages of the search."],["Users can customize the output by providing a `display_callback` function to format the information displayed."]]],["The `SearchLog` class is a base for search logs that output information during a search. Key methods include: managing search entry/exit (`EnterSearch`, `ExitSearch`), handling solutions (`AtSolution`, `NoMoreSolutions`), processing decisions (`ApplyDecision`, `RefuteDecision`, `OutputDecision`), and managing propagation (`BeginInitialPropagation`, `EndInitialPropagation`). Additional methods handle neighbor acceptance (`AcceptUncheckedNeighbor`), failure (`BeginFail`), and general maintenance (`Maintain`). It can also generate a debug string (`DebugString`). It has a constructor `SearchLog` and destructor `~SearchLog`.\n"]]