OR-Tools  9.6
ConstraintGraphNeighborhoodGenerator

Detailed Description

Definition at line 508 of file cp_model_lns.h.

Public Member Functions

 ConstraintGraphNeighborhoodGenerator (NeighborhoodGeneratorHelper const *helper, const std::string &name)
 
Neighborhood Generate (const CpSolverResponse &initial_solution, double difficulty, absl::BitGenRef random) final
 
virtual bool ReadyToGenerate () const
 
double GetUCBScore (int64_t total_num_calls) const
 
void AddSolveData (SolveData data)
 
void Synchronize ()
 
std::string name () const
 
int64_t num_calls () const
 
int64_t num_fully_solved_calls () const
 
double difficulty () const
 
double deterministic_limit () const
 
double deterministic_time () const
 

Protected Attributes

const std::string name_
 
const NeighborhoodGeneratorHelperhelper_
 
absl::Mutex generator_mutex_
 

Constructor & Destructor Documentation

◆ ConstraintGraphNeighborhoodGenerator()

ConstraintGraphNeighborhoodGenerator ( NeighborhoodGeneratorHelper const *  helper,
const std::string &  name 
)
inlineexplicit

Definition at line 510 of file cp_model_lns.h.

Member Function Documentation

◆ AddSolveData()

void AddSolveData ( SolveData  data)
inlineinherited

Definition at line 396 of file cp_model_lns.h.

◆ deterministic_limit()

double deterministic_limit ( ) const
inlineinherited

Definition at line 427 of file cp_model_lns.h.

◆ deterministic_time()

double deterministic_time ( ) const
inlineinherited

Definition at line 433 of file cp_model_lns.h.

◆ difficulty()

double difficulty ( ) const
inlineinherited

Definition at line 421 of file cp_model_lns.h.

◆ Generate()

Neighborhood Generate ( const CpSolverResponse &  initial_solution,
double  difficulty,
absl::BitGenRef  random 
)
finalvirtual

Implements NeighborhoodGenerator.

Definition at line 1339 of file cp_model_lns.cc.

◆ GetUCBScore()

double GetUCBScore ( int64_t  total_num_calls) const
inherited

Definition at line 1123 of file cp_model_lns.cc.

◆ name()

std::string name ( ) const
inlineinherited

Definition at line 406 of file cp_model_lns.h.

◆ num_calls()

int64_t num_calls ( ) const
inlineinherited

Definition at line 409 of file cp_model_lns.h.

◆ num_fully_solved_calls()

int64_t num_fully_solved_calls ( ) const
inlineinherited

Definition at line 415 of file cp_model_lns.h.

◆ ReadyToGenerate()

bool ReadyToGenerate ( ) const
virtualinherited

Reimplemented in RelaxationInducedNeighborhoodGenerator.

Definition at line 1119 of file cp_model_lns.cc.

◆ Synchronize()

void Synchronize ( )
inherited

Definition at line 1130 of file cp_model_lns.cc.

Member Data Documentation

◆ generator_mutex_

absl::Mutex generator_mutex_
mutableprotectedinherited

Definition at line 441 of file cp_model_lns.h.

◆ helper_

const NeighborhoodGeneratorHelper& helper_
protectedinherited

Definition at line 440 of file cp_model_lns.h.

◆ name_

const std::string name_
protectedinherited

Definition at line 439 of file cp_model_lns.h.


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