Generated on Thu Mar 16 2017 03:24:28 for Gecode by doxygen 1.8.13
Gecode::MetaInfo Class Reference

Information passed by meta search engines. More...

#include <core.hpp>

Public Types

enum  Type { RESTART, PORTFOLIO }
 Which type of information is provided. More...
 

Public Member Functions

Type type (void) const
 Return type of information. More...
 

Protected Attributes

const Type t
 Type of information. More...
 

Restart-based information

const unsigned long int r
 Number of restarts. More...
 
const unsigned long int s
 Number of solutions since last restart. More...
 
const unsigned long int f
 Number of failures since last restart. More...
 
const Spacel
 Last solution found. More...
 
const NoGoodsng
 No-goods from restart. More...
 
unsigned long int restart (void) const
 Return number of restarts. More...
 
unsigned long int solution (void) const
 Return number of solutions since last restart. More...
 
unsigned long int fail (void) const
 Return number of failures since last restart. More...
 
const Spacelast (void) const
 Return last solution found (possibly NULL) More...
 
const NoGoodsnogoods (void) const
 Return no-goods recorded from restart. More...
 

Portfolio-based information

const unsigned int a
 Number of asset in portfolio. More...
 
unsigned int asset (void) const
 Return number of asset in portfolio. More...
 

Constructors depending on type of engine

 MetaInfo (unsigned long int r, unsigned long int s, unsigned long int f, const Space *l, NoGoods &ng)
 Constructor for restart-based engine. More...
 
 MetaInfo (unsigned int a)
 Constructor for portfolio-based engine. More...
 

Detailed Description

Information passed by meta search engines.

Definition at line 1542 of file core.hpp.

Member Enumeration Documentation

◆ Type

Which type of information is provided.

Enumerator
RESTART 

Information is provided by a restart-based engine.

PORTFOLIO 

Information is provided by a portfolio-based engine.

Definition at line 1545 of file core.hpp.

Constructor & Destructor Documentation

◆ MetaInfo() [1/2]

Gecode::MetaInfo::MetaInfo ( unsigned long int  r,
unsigned long int  s,
unsigned long int  f,
const Space l,
NoGoods ng 
)
inline

Constructor for restart-based engine.

Definition at line 3087 of file core.hpp.

◆ MetaInfo() [2/2]

Gecode::MetaInfo::MetaInfo ( unsigned int  a)
inline

Constructor for portfolio-based engine.

Definition at line 3095 of file core.hpp.

Member Function Documentation

◆ type()

MetaInfo::Type Gecode::MetaInfo::type ( void  ) const
inline

Return type of information.

Definition at line 3099 of file core.hpp.

◆ restart()

unsigned long int Gecode::MetaInfo::restart ( void  ) const
inline

Return number of restarts.

Definition at line 3103 of file core.hpp.

◆ solution()

unsigned long int Gecode::MetaInfo::solution ( void  ) const
inline

Return number of solutions since last restart.

Definition at line 3108 of file core.hpp.

◆ fail()

unsigned long int Gecode::MetaInfo::fail ( void  ) const
inline

Return number of failures since last restart.

Definition at line 3113 of file core.hpp.

◆ last()

const Space * Gecode::MetaInfo::last ( void  ) const
inline

Return last solution found (possibly NULL)

Definition at line 3118 of file core.hpp.

◆ nogoods()

const NoGoods & Gecode::MetaInfo::nogoods ( void  ) const
inline

Return no-goods recorded from restart.

Definition at line 3123 of file core.hpp.

◆ asset()

unsigned int Gecode::MetaInfo::asset ( void  ) const
inline

Return number of asset in portfolio.

Definition at line 3128 of file core.hpp.

Member Data Documentation

◆ t

const Type Gecode::MetaInfo::t
protected

Type of information.

Definition at line 1553 of file core.hpp.

◆ r

const unsigned long int Gecode::MetaInfo::r
protected

Number of restarts.

Definition at line 1557 of file core.hpp.

◆ s

const unsigned long int Gecode::MetaInfo::s
protected

Number of solutions since last restart.

Definition at line 1559 of file core.hpp.

◆ f

const unsigned long int Gecode::MetaInfo::f
protected

Number of failures since last restart.

Definition at line 1561 of file core.hpp.

◆ l

const Space* Gecode::MetaInfo::l
protected

Last solution found.

Definition at line 1563 of file core.hpp.

◆ ng

const NoGoods& Gecode::MetaInfo::ng
protected

No-goods from restart.

Definition at line 1565 of file core.hpp.

◆ a

const unsigned int Gecode::MetaInfo::a
protected

Number of asset in portfolio.

Definition at line 1570 of file core.hpp.


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