Generated on Sat Aug 16 2014 17:20:01 for Gecode by doxygen 1.8.7
Gecode::Search::Cutoff Class Referenceabstract

Base class for cutoff generators for restart-based meta engine. More...

#include <search.hh>

Public Member Functions

 Cutoff (void)
 Default constructor. More...
 
virtual unsigned long int operator() (void)=0
 Return next cutoff value. More...
 
virtual ~Cutoff (void)
 Destructor. More...
 

Static Public Member Functions

static Cutoffconstant (unsigned long int scale=1U)
 Create generator for constant sequence with constant s. More...
 
static Cutofflinear (unsigned long int scale=1U)
 Create generator for linear sequence scaled by scale. More...
 
static Cutoffgeometric (unsigned long int scale=1U, double base=1.5)
 
static Cutoffluby (unsigned long int scale=1U)
 Create generator for luby sequence with scale-factor scale. More...
 
static Cutoffrnd (unsigned int seed, unsigned long int min, unsigned long int max, unsigned long int n)
 
static Cutoffappend (Cutoff *c1, unsigned long int n, Cutoff *c2)
 Append cutoff values from c2 after n values from c1. More...
 
static Cutoffrepeat (Cutoff *c, unsigned long int n)
 Create generator that repeats n times each cutoff value from c. More...
 
static void * operator new (size_t s)
 Allocate memory from heap. More...
 
static void operator delete (void *p)
 Free memory allocated from heap. More...
 

Detailed Description

Base class for cutoff generators for restart-based meta engine.

Definition at line 389 of file search.hh.

Constructor & Destructor Documentation

Gecode::Search::Cutoff::Cutoff ( void  )
inline

Default constructor.

Definition at line 172 of file cutoff.hpp.

Gecode::Search::Cutoff::~Cutoff ( void  )
inlinevirtual

Destructor.

Definition at line 174 of file cutoff.hpp.

Member Function Documentation

virtual unsigned long int Gecode::Search::Cutoff::operator() ( void  )
pure virtual
Cutoff * Gecode::Search::Cutoff::constant ( unsigned long int  scale = 1U)
static

Create generator for constant sequence with constant s.

Definition at line 165 of file cutoff.cpp.

Cutoff * Gecode::Search::Cutoff::linear ( unsigned long int  scale = 1U)
static

Create generator for linear sequence scaled by scale.

Definition at line 169 of file cutoff.cpp.

Cutoff * Gecode::Search::Cutoff::geometric ( unsigned long int  scale = 1U,
double  base = 1.5 
)
static

Create generator for geometric sequence scaled by scale using base base

Definition at line 177 of file cutoff.cpp.

Cutoff * Gecode::Search::Cutoff::luby ( unsigned long int  scale = 1U)
static

Create generator for luby sequence with scale-factor scale.

Definition at line 173 of file cutoff.cpp.

Cutoff * Gecode::Search::Cutoff::rnd ( unsigned int  seed,
unsigned long int  min,
unsigned long int  max,
unsigned long int  n 
)
static

Create generator for random sequence with seed seed that generates values between min and max with n steps between the extreme values (use 0 for n to get step size 1).

Definition at line 181 of file cutoff.cpp.

Cutoff * Gecode::Search::Cutoff::append ( Cutoff c1,
unsigned long int  n,
Cutoff c2 
)
static

Append cutoff values from c2 after n values from c1.

Definition at line 188 of file cutoff.cpp.

Cutoff * Gecode::Search::Cutoff::repeat ( Cutoff c,
unsigned long int  n 
)
static

Create generator that repeats n times each cutoff value from c.

Definition at line 192 of file cutoff.cpp.

void * Gecode::Search::Cutoff::operator new ( size_t  s)
inlinestatic

Allocate memory from heap.

Definition at line 176 of file cutoff.hpp.

void Gecode::Search::Cutoff::operator delete ( void *  p)
inlinestatic

Free memory allocated from heap.

Definition at line 180 of file cutoff.hpp.


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