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

Detailed Description

Definition at line 3607 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 () override
const std::string & name () const
double seconds () const
DecisionNext (Solver *solver) override
std::string DebugString () const override
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
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
BaseObjectoperator= (const BaseObject &)=delete
virtual ~BaseObject ()=default

Constructor & Destructor Documentation

◆ ProfiledDecisionBuilder()

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

Definition at line 3268 of file constraint_solver.cc.

◆ ~ProfiledDecisionBuilder()

operations_research::ProfiledDecisionBuilder::~ProfiledDecisionBuilder ( )
inlineoverride

Definition at line 3610 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 3300 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 3295 of file constraint_solver.cc.

◆ DebugString()

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

Reimplemented from operations_research::DecisionBuilder.

Definition at line 3291 of file constraint_solver.cc.

◆ name()

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

Definition at line 3611 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.

Implements operations_research::DecisionBuilder.

Definition at line 3271 of file constraint_solver.cc.

◆ seconds()

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

Definition at line 3612 of file constraint_solver.h.


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