Generated on for Gecode by doxygen 1.18.0

Single forward-bound actor with domain advisors and pair witnesses. More...

#include <gecode/int/min-distance.hh>

Classes

class  XAdvisor
 Domain advisor for a selected position. More...

Public Member Functions

virtual Actor * copy (Space &home)
 Copy propagator during cloning.
virtual PropCost cost (const Space &, const ModEventDelta &) const
 Cost function.
virtual void reschedule (Space &home)
 Reschedule propagation.
virtual ExecStatus advise (Space &, Advisor &a, const Delta &)
 Record a changed selected-site domain.
virtual ExecStatus propagate (Space &home, const ModEventDelta &)
 Perform propagation.
virtual size_t dispose (Space &home)
 Cancel subscriptions and dispose stored data.
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 accumulated 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< IntView > &x, IntView z, const IntDistance &d, const IntSharedArray &r)
 Post propagator.
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

 AdvisorForward (Home home, ViewArray< IntView > &x0, IntView z0, const IntDistance &d0, const IntSharedArray &r0)
 Constructor for posting.
 AdvisorForward (Space &home, AdvisorForward &p)
 Constructor for cloning.
Protected Member Functions inherited from Gecode::Propagator
 Propagator (Home home)
 Constructor for posting.
 Propagator (Space &home, Propagator &p)
 Constructor for cloning p.
Propagator * fwd (void) const
 Return forwarding pointer during copying.
Kernel::GPI::Info & gpi (void)
 Provide access to propagator information.

Protected Attributes

ViewArray< IntView > x
 Selected sites.
IntView z
 Minimum distance.
IntDistance d
 Shared distances.
IntSharedArray r
 Shared pair requirements.
Council< XAdvisor > council
 Domain advisors.
PairCache * cache
 Pair maxima and witnesses.
Support::BitSetBase dirty
 Positions changed since the last fixpoint.
int last_min
 Objective lower bound at the last fixpoint.
bool z_shared
 Whether the objective shares a selected-site variable.

Detailed Description

Single forward-bound actor with domain advisors and pair witnesses.

Requires

Definition at line 131 of file min-distance.hh.

Constructor & Destructor Documentation

◆ AdvisorForward() [1/2]

Gecode::Int::MinDistance::AdvisorForward::AdvisorForward ( Home home,
ViewArray< IntView > & x0,
IntView z0,
const IntDistance & d0,
const IntSharedArray & r0 )
inlineprotected

Constructor for posting.

Definition at line 286 of file prop.hpp.

◆ AdvisorForward() [2/2]

Gecode::Int::MinDistance::AdvisorForward::AdvisorForward ( Space & home,
AdvisorForward & p )
inlineprotected

Constructor for cloning.

Definition at line 305 of file prop.hpp.

Member Function Documentation

◆ post()

ExecStatus Gecode::Int::MinDistance::AdvisorForward::post ( Home home,
ViewArray< IntView > & x,
IntView z,
const IntDistance & d,
const IntSharedArray & r )
inlinestatic

Post propagator.

Definition at line 315 of file prop.hpp.

◆ copy()

Actor * Gecode::Int::MinDistance::AdvisorForward::copy ( Space & home)
inlinevirtual

Copy propagator during cloning.

Implements Gecode::Actor.

Definition at line 322 of file prop.hpp.

◆ cost()

PropCost Gecode::Int::MinDistance::AdvisorForward::cost ( const Space & ,
const ModEventDelta &  ) const
inlinevirtual

Cost function.

Implements Gecode::Propagator.

Definition at line 327 of file prop.hpp.

◆ reschedule()

void Gecode::Int::MinDistance::AdvisorForward::reschedule ( Space & home)
inlinevirtual

Reschedule propagation.

Implements Gecode::Propagator.

Definition at line 333 of file prop.hpp.

◆ advise()

ExecStatus Gecode::Int::MinDistance::AdvisorForward::advise ( Space & ,
Advisor & a,
const Delta &  )
inlinevirtual

Record a changed selected-site domain.

Reimplemented from Gecode::Propagator.

Definition at line 341 of file prop.hpp.

◆ propagate()

ExecStatus Gecode::Int::MinDistance::AdvisorForward::propagate ( Space & home,
const ModEventDelta &  )
inlinevirtual

Perform propagation.

Implements Gecode::Propagator.

Definition at line 347 of file prop.hpp.

◆ dispose()

size_t Gecode::Int::MinDistance::AdvisorForward::dispose ( Space & home)
inlinevirtual

Cancel subscriptions and dispose stored data.

Reimplemented from Gecode::Actor.

Definition at line 407 of file prop.hpp.

Member Data Documentation

◆ x

ViewArray<IntView> Gecode::Int::MinDistance::AdvisorForward::x
protected

Selected sites.

Definition at line 144 of file min-distance.hh.

◆ z

IntView Gecode::Int::MinDistance::AdvisorForward::z
protected

Minimum distance.

Definition at line 146 of file min-distance.hh.

◆ d

IntDistance Gecode::Int::MinDistance::AdvisorForward::d
protected

Shared distances.

Definition at line 148 of file min-distance.hh.

◆ r

IntSharedArray Gecode::Int::MinDistance::AdvisorForward::r
protected

Shared pair requirements.

Definition at line 150 of file min-distance.hh.

◆ council

Council<XAdvisor> Gecode::Int::MinDistance::AdvisorForward::council
protected

Domain advisors.

Definition at line 152 of file min-distance.hh.

◆ cache

PairCache* Gecode::Int::MinDistance::AdvisorForward::cache
protected

Pair maxima and witnesses.

Definition at line 154 of file min-distance.hh.

◆ dirty

Support::BitSetBase Gecode::Int::MinDistance::AdvisorForward::dirty
protected

Positions changed since the last fixpoint.

Definition at line 156 of file min-distance.hh.

◆ last_min

int Gecode::Int::MinDistance::AdvisorForward::last_min
protected

Objective lower bound at the last fixpoint.

Definition at line 158 of file min-distance.hh.

◆ z_shared

bool Gecode::Int::MinDistance::AdvisorForward::z_shared
protected

Whether the objective shares a selected-site variable.

Definition at line 160 of file min-distance.hh.


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