Merit class for size over afc. More...
#include <branch.hh>
Public Member Functions | |
MeritAFCSize (Space &home, const VarBranch &vb) | |
Constructor for initialization. | |
MeritAFCSize (Space &home, bool shared, MeritAFCSize &m) | |
Constructor for cloning. | |
double | operator() (const Space &home, View x, int i) |
Return size over AFC 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 | |
AFC | afc |
AFC information. |
Merit class for size over afc.
Requires
#include <gecode/int/branch.hh>
Gecode::Int::Branch::MeritAFCSize< View >::MeritAFCSize | ( | Space & | home, |
const VarBranch & | vb | ||
) | [inline] |
Gecode::Int::Branch::MeritAFCSize< View >::MeritAFCSize | ( | Space & | home, |
bool | shared, | ||
MeritAFCSize< View > & | m | ||
) | [inline] |
double Gecode::Int::Branch::MeritAFCSize< View >::operator() | ( | const Space & | home, |
View | x, | ||
int | i | ||
) | [inline] |
bool Gecode::Int::Branch::MeritAFCSize< View >::notice | ( | void | ) | const [inline] |
Whether dispose must always be called (that is, notice is needed)
Reimplemented from Gecode::MeritBase< View, double >.
void Gecode::Int::Branch::MeritAFCSize< View >::dispose | ( | Space & | home | ) | [inline] |
Dispose view selection.
Reimplemented from Gecode::MeritBase< View, double >.
AFC Gecode::Int::Branch::MeritAFCSize< View >::afc [protected] |