Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0

Nary Boolean less or equal propagator. More...

#include <bool.hh>

Public Member Functions

virtual Actorcopy (Space &home)
 Copy propagator during cloning.
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Give advice to propagator.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as low unary)
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.
virtual size_t dispose (Space &home)
 Delete propagator and return its size.
Public Member Functions inherited from Gecode::NaryPropagator< VX, PC_BOOL_NONE >
virtual void reschedule (Space &home)
 Schedule function.
ModEventDelta modeventdelta (void) const
 Return the modification event delta.
virtual void advise (Space &home, Advisor &a)
 Run advisor a to be run on failure in failed space.
double afc (void) const
 Return the accumlated failure count.
unsigned int id (void) const
 Return propagator id.
PropagatorGroup group (void) const
 Return group propagator belongs to.
void group (PropagatorGroup g)
 Add propagator to group g.
bool disabled (void) const
 Whether propagator is currently disabled.
virtual ~Actor (void)
 To avoid warnings.

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< VX > &x)
 Post propagator $ x_0 \leq x_1 \leq \cdots \leq x_{|x|-1}$.
static void * operator new (size_t s, Space &home)
 Allocate memory from space.
static void operator delete (void *p, Space &home)
 No-op for exceptions.
static void * operator new (size_t s)
 Not used.
static void operator delete (void *p)
 Not used.

Protected Member Functions

 NaryLq (Home home, ViewArray< VX > &x)
 Constructor for posting.
 NaryLq (Space &home, NaryLq< VX > &p)
 Constructor for cloning p.
Protected Member Functions inherited from Gecode::NaryPropagator< VX, PC_BOOL_NONE >
 NaryPropagator (Space &home, NaryPropagator &p)
 Constructor for cloning p.
Protected Member Functions inherited from Gecode::Propagator
 Propagator (Home home)
 Constructor for posting.
 Propagator (Space &home, Propagator &p)
 Constructor for cloning p.
Propagatorfwd (void) const
 Return forwarding pointer during copying.
Kernel::GPI::Infogpi (void)
 Provide access to global propagator information.

Protected Attributes

bool run
 Whether the propagator is currently running.
int n_zero
 The number of views assigned to zero in x.
int n_one
 The number of views assigned to one in x.
Council< Advisorc
 The advisor council.
Protected Attributes inherited from Gecode::NaryPropagator< VX, PC_BOOL_NONE >
ViewArray< VX > x
 Array of views.

Detailed Description

template<class VX>
class Gecode::Int::Bool::NaryLq< VX >

Nary Boolean less or equal propagator.

Requires

Definition at line 183 of file bool.hh.

Constructor & Destructor Documentation

◆ NaryLq() [1/2]

template<class VX>
Gecode::Int::Bool::NaryLq< VX >::NaryLq ( Home home,
ViewArray< VX > & x )
inlineprotected

Constructor for posting.

Definition at line 110 of file lq.hpp.

◆ NaryLq() [2/2]

template<class VX>
Gecode::Int::Bool::NaryLq< VX >::NaryLq ( Space & home,
NaryLq< VX > & p )
inlineprotected

Constructor for cloning p.

Definition at line 118 of file lq.hpp.

Member Function Documentation

◆ copy()

template<class VX>
Actor * Gecode::Int::Bool::NaryLq< VX >::copy ( Space & home)
virtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 126 of file lq.hpp.

◆ advise()

template<class VX>
ExecStatus Gecode::Int::Bool::NaryLq< VX >::advise ( Space & home,
Advisor & a,
const Delta & d )
virtual

Give advice to propagator.

Reimplemented from Gecode::Propagator.

Definition at line 164 of file lq.hpp.

◆ cost()

template<class VX>
PropCost Gecode::Int::Bool::NaryLq< VX >::cost ( const Space & home,
const ModEventDelta & med ) const
virtual

Cost function (defined as low unary)

Reimplemented from Gecode::NaryPropagator< VX, PC_BOOL_NONE >.

Definition at line 158 of file lq.hpp.

◆ propagate()

template<class VX>
ExecStatus Gecode::Int::Bool::NaryLq< VX >::propagate ( Space & home,
const ModEventDelta & med )
virtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 184 of file lq.hpp.

◆ post()

template<class VX>
ExecStatus Gecode::Int::Bool::NaryLq< VX >::post ( Home home,
ViewArray< VX > & x )
inlinestatic

Post propagator $ x_0 \leq x_1 \leq \cdots \leq x_{|x|-1}$.

Definition at line 132 of file lq.hpp.

◆ dispose()

template<class VX>
size_t Gecode::Int::Bool::NaryLq< VX >::dispose ( Space & home)
inlinevirtual

Delete propagator and return its size.

Reimplemented from Gecode::NaryPropagator< VX, PC_BOOL_NONE >.

Definition at line 174 of file lq.hpp.

Member Data Documentation

◆ run

template<class VX>
bool Gecode::Int::Bool::NaryLq< VX >::run
protected

Whether the propagator is currently running.

Definition at line 187 of file bool.hh.

◆ n_zero

template<class VX>
int Gecode::Int::Bool::NaryLq< VX >::n_zero
protected

The number of views assigned to zero in x.

Definition at line 189 of file bool.hh.

◆ n_one

template<class VX>
int Gecode::Int::Bool::NaryLq< VX >::n_one
protected

The number of views assigned to one in x.

Definition at line 191 of file bool.hh.

◆ c

template<class VX>
Council<Advisor> Gecode::Int::Bool::NaryLq< VX >::c
protected

The advisor council.

Definition at line 193 of file bool.hh.


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