OR-Tools  8.2
GuidedSatFirstSolutionGenerator

Detailed Description

Definition at line 42 of file bop_fs.h.

Public Types

enum class  Policy { kNotGuided , kLpGuided , kObjectiveGuided , kUserGuided }
 
enum  Status {
  OPTIMAL_SOLUTION_FOUND , SOLUTION_FOUND , INFEASIBLE , LIMIT_REACHED ,
  INFORMATION_FOUND , CONTINUE , ABORT
}
 

Public Member Functions

 GuidedSatFirstSolutionGenerator (const std::string &name, Policy policy)
 
 ~GuidedSatFirstSolutionGenerator () 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

◆ Policy

enum Policy
strong
Enumerator
kNotGuided 
kLpGuided 
kObjectiveGuided 
kUserGuided 

Definition at line 45 of file bop_fs.h.

◆ 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

◆ GuidedSatFirstSolutionGenerator()

GuidedSatFirstSolutionGenerator ( const std::string &  name,
Policy  policy 
)

Definition at line 79 of file bop_fs.cc.

◆ ~GuidedSatFirstSolutionGenerator()

Definition at line 87 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 160 of file bop_fs.cc.

◆ ShouldBeRun()

bool ShouldBeRun ( const ProblemState problem_state) const
overridevirtual

Implements BopOptimizerBase.

Definition at line 147 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: