Generated on for Gecode by doxygen 1.17.0

Cutoff generator for the random sequence. More...

#include <gecode/search.hh>

Public Member Functions

 CutoffRandom (unsigned int seed, unsigned long long int min, unsigned long long int max, unsigned long long int n)
 Constructor.
virtual unsigned long long int operator() (void) const
 Return the current cutoff value.
virtual unsigned long long int operator++ (void)
 Increment and return the next cutoff value.
 Cutoff (void)
 Default constructor.
virtual ~Cutoff (void)
 Destructor.

Protected Attributes

Support::RandomGenerator rnd
 Random number generator.
unsigned long long int min
 Minimum cutoff value.
unsigned long long int n
 Random values.
unsigned long long int step
 Step size.
unsigned long long int cur
 Current value.

Additional Inherited Members

static Cutoffconstant (unsigned long long int scale=Config::slice)
 Create generator for constant sequence with constant s.
static Cutofflinear (unsigned long long int scale=Config::slice)
 Create generator for linear sequence scaled by scale.
static Cutoffgeometric (unsigned long long int scale=Config::slice, double base=Config::base)
static Cutoffluby (unsigned long long int scale=Config::slice)
 Create generator for luby sequence with scale-factor scale.
static Cutoffrnd (unsigned int seed, unsigned long long int min, unsigned long long int max, unsigned long long int n)
static Cutoffappend (Cutoff *c1, unsigned long long int n, Cutoff *c2)
 Append cutoff values from c2 after n values from c1.
static Cutoffmerge (Cutoff *c1, Cutoff *c2)
 Merge cutoff values from c1 with values from c2.
static Cutoffrepeat (Cutoff *c, unsigned long long int n)
 Create generator that repeats n times each cutoff value from c.
Static Public Member Functions inherited from Gecode::HeapAllocated
static void * operator new (size_t s)
 Memory management.
static void operator delete (void *p)
 Free memory allocated from heap.

Detailed Description

Cutoff generator for the random sequence.

Definition at line 614 of file search.hh.

Constructor & Destructor Documentation

◆ CutoffRandom()

Gecode::Search::CutoffRandom::CutoffRandom ( unsigned int seed,
unsigned long long int min,
unsigned long long int max,
unsigned long long int n )
inline

Constructor.

Definition at line 88 of file cutoff.hpp.

Member Function Documentation

◆ operator()()

virtual unsigned long long int Gecode::Search::CutoffRandom::operator() ( void ) const
virtual

Return the current cutoff value.

Implements Gecode::Search::Cutoff.

◆ operator++()

virtual unsigned long long int Gecode::Search::CutoffRandom::operator++ ( void )
virtual

Increment and return the next cutoff value.

Implements Gecode::Search::Cutoff.

Member Data Documentation

◆ rnd

Support::RandomGenerator Gecode::Search::CutoffRandom::rnd
protected

Random number generator.

Definition at line 617 of file search.hh.

◆ min

unsigned long long int Gecode::Search::CutoffRandom::min
protected

Minimum cutoff value.

Definition at line 619 of file search.hh.

◆ n

unsigned long long int Gecode::Search::CutoffRandom::n
protected

Random values.

Definition at line 621 of file search.hh.

◆ step

unsigned long long int Gecode::Search::CutoffRandom::step
protected

Step size.

Definition at line 623 of file search.hh.

◆ cur

unsigned long long int Gecode::Search::CutoffRandom::cur
protected

Current value.

Definition at line 625 of file search.hh.


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