OR-Tools  8.2
BopRandomFirstSolutionGenerator

Detailed Description

Definition at line 83 of file bop_fs.h.

Public Types

enum  Status {
  OPTIMAL_SOLUTION_FOUND , SOLUTION_FOUND , INFEASIBLE , LIMIT_REACHED ,
  INFORMATION_FOUND , CONTINUE , ABORT
}
 

Public Member Functions

 BopRandomFirstSolutionGenerator (const std::string &name, const BopParameters &parameters, sat::SatSolver *sat_propagator, MTRandom *random)
 
 ~BopRandomFirstSolutionGenerator () override
 
bool ShouldBeRun (const ProblemState &problem_state) const override
 
Status Optimize (const BopParameters &parameters, const ProblemState &problem_state, LearnedInfo *learned_info, TimeLimit *time_limit) override
 
const std::string & name () const
 

Static Public Member Functions

static std::string GetStatusString (Status status)
 

Protected Attributes

const std::string name_
 
StatsGroup stats_
 

Member Enumeration Documentation

◆ Status

enum Status
inherited
Enumerator
OPTIMAL_SOLUTION_FOUND 
SOLUTION_FOUND 
INFEASIBLE 
LIMIT_REACHED 
INFORMATION_FOUND 
CONTINUE 
ABORT 

Definition at line 64 of file bop_base.h.

Constructor & Destructor Documentation

◆ BopRandomFirstSolutionGenerator()

BopRandomFirstSolutionGenerator ( const std::string &  name,
const BopParameters &  parameters,
sat::SatSolver sat_propagator,
MTRandom random 
)

Definition at line 213 of file bop_fs.cc.

◆ ~BopRandomFirstSolutionGenerator()

Definition at line 220 of file bop_fs.cc.

Member Function Documentation

◆ GetStatusString()

std::string GetStatusString ( Status  status)
staticinherited

Definition at line 39 of file bop_base.cc.

◆ name()

const std::string & name ( ) const
inlineinherited

Definition at line 49 of file bop_base.h.

◆ Optimize()

BopOptimizerBase::Status Optimize ( const BopParameters &  parameters,
const ProblemState problem_state,
LearnedInfo learned_info,
TimeLimit time_limit 
)
overridevirtual

Implements BopOptimizerBase.

Definition at line 228 of file bop_fs.cc.

◆ ShouldBeRun()

bool ShouldBeRun ( const ProblemState problem_state) const
overridevirtual

Implements BopOptimizerBase.

Definition at line 223 of file bop_fs.cc.

Member Data Documentation

◆ name_

const std::string name_
protectedinherited

Definition at line 101 of file bop_base.h.

◆ stats_

StatsGroup stats_
mutableprotectedinherited

Definition at line 103 of file bop_base.h.


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