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

#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 ()
 

Detailed Description

Definition at line 3530 of file constraint_solver.h.

Constructor & Destructor Documentation

◆ ProfiledDecisionBuilder()

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

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

Definition at line 3263 of file constraint_solver.cc.

◆ ~ProfiledDecisionBuilder()

operations_research::ProfiledDecisionBuilder::~ProfiledDecisionBuilder ( )
inlineoverride

Definition at line 3533 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 3294 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 3289 of file constraint_solver.cc.

◆ DebugString()

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

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

Reimplemented from operations_research::DecisionBuilder.

Definition at line 3285 of file constraint_solver.cc.

◆ name()

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

Definition at line 3534 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 3266 of file constraint_solver.cc.

◆ seconds()

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

Definition at line 3535 of file constraint_solver.h.


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