Gecode::MetaInfo Class Reference
Information passed by meta search engines.
More...
#include <core.hpp>
List of all members.
Public Types |
enum | Type { RESTART,
PORTFOLIO
} |
| Which type of information is provided.
More...
|
Public Member Functions |
Type | type (void) const |
| Return type of information.
|
Protected Attributes |
const Type | t |
| Type of information.
|
Restart-based information |
|
const unsigned long int | r |
| Number of restarts.
|
const unsigned long int | s |
| Number of solutions since last restart.
|
const unsigned long int | f |
| Number of failures since last restart.
|
const Space * | l |
| Last solution found.
|
const NoGoods & | ng |
| No-goods from restart.
|
unsigned long int | restart (void) const |
| Return number of restarts.
|
unsigned long int | solution (void) const |
| Return number of solutions since last restart.
|
unsigned long int | fail (void) const |
| Return number of failures since last restart.
|
const Space * | last (void) const |
| Return last solution found (possibly NULL).
|
const NoGoods & | nogoods (void) const |
| Return no-goods recorded from restart.
|
Portfolio-based information |
|
const unsigned int | a |
| Number of asset in portfolio.
|
unsigned int | asset (void) const |
| Return number of asset in portfolio.
|
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.
|
| MetaInfo (unsigned int a) |
| Constructor for portfolio-based engine.
|
Detailed Description
Information passed by meta search engines.
Definition at line 1572 of file core.hpp.
Member Enumeration Documentation
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 1575 of file core.hpp.
Constructor & Destructor Documentation
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 3027 of file core.hpp.
Gecode::MetaInfo::MetaInfo |
( |
unsigned int |
a |
) |
[inline] |
Constructor for portfolio-based engine.
Definition at line 3035 of file core.hpp.
Member Function Documentation
Return type of information.
Definition at line 3039 of file core.hpp.
unsigned long int Gecode::MetaInfo::restart |
( |
void |
|
) |
const [inline] |
Return number of restarts.
Definition at line 3043 of file core.hpp.
unsigned long int Gecode::MetaInfo::solution |
( |
void |
|
) |
const [inline] |
Return number of solutions since last restart.
Definition at line 3048 of file core.hpp.
unsigned long int Gecode::MetaInfo::fail |
( |
void |
|
) |
const [inline] |
Return number of failures since last restart.
Definition at line 3053 of file core.hpp.
const Space * Gecode::MetaInfo::last |
( |
void |
|
) |
const [inline] |
Return last solution found (possibly NULL).
Definition at line 3058 of file core.hpp.
const NoGoods & Gecode::MetaInfo::nogoods |
( |
void |
|
) |
const [inline] |
Return no-goods recorded from restart.
Definition at line 3063 of file core.hpp.
unsigned int Gecode::MetaInfo::asset |
( |
void |
|
) |
const [inline] |
Return number of asset in portfolio.
Definition at line 3068 of file core.hpp.
Member Data Documentation
Type of information.
Definition at line 1583 of file core.hpp.
Number of restarts.
Definition at line 1587 of file core.hpp.
Number of solutions since last restart.
Definition at line 1589 of file core.hpp.
Number of failures since last restart.
Definition at line 1591 of file core.hpp.
Last solution found.
Definition at line 1593 of file core.hpp.
No-goods from restart.
Definition at line 1595 of file core.hpp.
Number of asset in portfolio.
Definition at line 1600 of file core.hpp.
The documentation for this class was generated from the following file: