Gecode::Set::Branch::MeritActionSize Class Reference
[Merit-based set view selection for branchers]
Merit class for action over size. More...
#include <branch.hh>
List of all members.
Public Member Functions | |
| MeritActionSize (Space &home, const VarBranch< Var > &vb) | |
| Constructor for initialization. | |
| MeritActionSize (Space &home, MeritActionSize &m) | |
| Constructor for cloning. | |
| double | operator() (const Space &home, SetView x, int i) |
| Return action over size as merit for view x at position i. | |
| bool | notice (void) const |
| Whether dispose must always be called (that is, notice is needed). | |
| void | dispose (Space &home) |
| Dispose view selection. | |
Protected Attributes | |
| Action | action |
| Action information. | |
Detailed Description
Merit class for action over size.
Requires
#include <gecode/set/branch.hh>
Definition at line 157 of file branch.hh.
Constructor & Destructor Documentation
| Gecode::Set::Branch::MeritActionSize::MeritActionSize | ( | Space & | home, | |
| const VarBranch< Var > & | vb | |||
| ) | [inline] |
Constructor for initialization.
Definition at line 118 of file merit.hpp.
| Gecode::Set::Branch::MeritActionSize::MeritActionSize | ( | Space & | home, | |
| MeritActionSize & | m | |||
| ) | [inline] |
Constructor for cloning.
Definition at line 121 of file merit.hpp.
Member Function Documentation
| double Gecode::Set::Branch::MeritActionSize::operator() | ( | const Space & | home, | |
| SetView | x, | |||
| int | i | |||
| ) | [inline] |
Return action over size as merit for view x at position i.
Definition at line 124 of file merit.hpp.
| bool Gecode::Set::Branch::MeritActionSize::notice | ( | void | ) | const [inline] |
Whether dispose must always be called (that is, notice is needed).
Reimplemented from Gecode::MeritBase< SetView, double >.
Definition at line 128 of file merit.hpp.
| void Gecode::Set::Branch::MeritActionSize::dispose | ( | Space & | home | ) | [inline] |
Dispose view selection.
Reimplemented from Gecode::MeritBase< SetView, double >.
Definition at line 132 of file merit.hpp.
Member Data Documentation
Action Gecode::Set::Branch::MeritActionSize::action [protected] |
The documentation for this class was generated from the following files:
- gecode/set/branch.hh
- gecode/set/branch/merit.hpp
