Base-class for n-ary linear propagators. More...
#include <linear.hh>
Public Member Functions | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (defined as low linear) | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. | |
Protected Member Functions | |
Lin (Space &home, bool share, Lin< P, N, pc > &p) | |
Constructor for cloning p. | |
Lin (Home home, ViewArray< P > &x, ViewArray< N > &y, FloatVal c) | |
Constructor for creation. | |
Protected Attributes | |
ViewArray< P > | x |
Array of positive views. | |
ViewArray< N > | y |
Array of negative views. | |
FloatVal | c |
Constant value. | |
Related Functions | |
(Note that these are not member functions.) | |
template<class View > | |
void | bounds_p (ModEventDelta med, ViewArray< View > &x, FloatVal &c, FloatNum &sl, FloatNum &su) |
Compute bounds information for positive views. | |
template<class View > | |
void | bounds_n (ModEventDelta med, ViewArray< View > &y, FloatVal &c, FloatNum &sl, FloatNum &su) |
Compute bounds information for negative views. |
Base-class for n-ary linear propagators.
Positive views are of type P whereas negative views are of type N.
Gecode::Float::Linear::Lin< P, N, pc >::Lin | ( | Space & | home, |
bool | share, | ||
Lin< P, N, pc > & | p | ||
) | [inline, protected] |
PropCost Gecode::Float::Linear::Lin< P, N, pc >::cost | ( | const Space & | home, |
const ModEventDelta & | med | ||
) | const [virtual] |
Cost function (defined as low linear)
Implements Gecode::Propagator.
size_t Gecode::Float::Linear::Lin< P, N, pc >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
void bounds_p | ( | ModEventDelta | med, |
ViewArray< View > & | x, | ||
FloatVal & | c, | ||
FloatNum & | sl, | ||
FloatNum & | su | ||
) | [related] |
Compute bounds information for positive views.
void bounds_n | ( | ModEventDelta | med, |
ViewArray< View > & | y, | ||
FloatVal & | c, | ||
FloatNum & | sl, | ||
FloatNum & | su | ||
) | [related] |
Compute bounds information for negative views.
ViewArray<P> Gecode::Float::Linear::Lin< P, N, pc >::x [protected] |
ViewArray<N> Gecode::Float::Linear::Lin< P, N, pc >::y [protected] |
FloatVal Gecode::Float::Linear::Lin< P, N, pc >::c [protected] |