Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::ProfiledDecisionBuilder Class Reference

Detailed Description

Definition at line 3600 of file constraint_solver.h.

#include <constraint_solver.h>

Inheritance diagram for operations_research::ProfiledDecisionBuilder:
operations_research::DecisionBuilder operations_research::BaseObject

Public Member Functions

 ProfiledDecisionBuilder (DecisionBuilder *db)
 --------------— ProfiledDecisionBuilder ---------—
 ~ProfiledDecisionBuilder () override
const std::string & name () const
double seconds () const
DecisionNext (Solver *solver) override
std::string DebugString () const override
 -------— Decision Builder -------—
void AppendMonitors (Solver *solver, std::vector< SearchMonitor * > *extras) override
void Accept (ModelVisitor *visitor) const override
Public Member Functions inherited from operations_research::DecisionBuilder
 DecisionBuilder ()
 DecisionBuilder (const DecisionBuilder &)=delete
 This type is neither copyable nor movable.
DecisionBuilderoperator= (const DecisionBuilder &)=delete
 ~DecisionBuilder () override
void set_name (absl::string_view name)
std::string GetName () const
Public Member Functions inherited from operations_research::BaseObject
 BaseObject ()
 BaseObject (const BaseObject &)=delete
 This type is neither copyable nor movable.
BaseObjectoperator= (const BaseObject &)=delete
virtual ~BaseObject ()=default

Constructor & Destructor Documentation

◆ ProfiledDecisionBuilder()

operations_research::ProfiledDecisionBuilder::ProfiledDecisionBuilder ( DecisionBuilder * db)
explicit

--------------— ProfiledDecisionBuilder ---------—

Definition at line 3264 of file constraint_solver.cc.

◆ ~ProfiledDecisionBuilder()

operations_research::ProfiledDecisionBuilder::~ProfiledDecisionBuilder ( )
inlineoverride

Definition at line 3603 of file constraint_solver.h.

Member Function Documentation

◆ Accept()

void operations_research::ProfiledDecisionBuilder::Accept ( ModelVisitor * visitor) const
overridevirtual

Reimplemented from operations_research::DecisionBuilder.

Definition at line 3296 of file constraint_solver.cc.

◆ AppendMonitors()

void operations_research::ProfiledDecisionBuilder::AppendMonitors ( Solver * solver,
std::vector< SearchMonitor * > * extras )
overridevirtual

This method will be called at the start of the search. It asks the decision builder if it wants to append search monitors to the list of active monitors for this search. Please note there are no checks at this point for duplication.

Reimplemented from operations_research::DecisionBuilder.

Definition at line 3291 of file constraint_solver.cc.

◆ DebugString()

std::string operations_research::ProfiledDecisionBuilder::DebugString ( ) const
overridevirtual

-------— Decision Builder -------—

Reimplemented from operations_research::DecisionBuilder.

Definition at line 3287 of file constraint_solver.cc.

◆ name()

const std::string & operations_research::ProfiledDecisionBuilder::name ( ) const
inline

Definition at line 3604 of file constraint_solver.h.

◆ Next()

Decision * operations_research::ProfiledDecisionBuilder::Next ( Solver * s)
overridevirtual

This is the main method of the decision builder class. It must return a decision (an instance of the class Decision). If it returns nullptr, this means that the decision builder has finished its work.

In case db_->Next() fails, gathering the running time on backtrack.

Implements operations_research::DecisionBuilder.

Definition at line 3267 of file constraint_solver.cc.

◆ seconds()

double operations_research::ProfiledDecisionBuilder::seconds ( ) const
inline

Definition at line 3605 of file constraint_solver.h.


The documentation for this class was generated from the following files: