Gecode::Float::Linear::Lin< P, N, pc > Class Template Reference
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 void | reschedule (Space &home) |
Schedule function. | |
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. |
Detailed Description
template<class P, class N, PropCond pc>
class Gecode::Float::Linear::Lin< P, N, pc >
Base-class for n-ary linear propagators.
Positive views are of type P whereas negative views are of type N.
Definition at line 61 of file linear.hh.
Constructor & Destructor Documentation
template<class P, class N, PropCond pc>
Gecode::Float::Linear::Lin< P, N, pc >::Lin | ( | Space & | home, | |
bool | share, | |||
Lin< P, N, pc > & | p | |||
) | [inline, protected] |
Member Function Documentation
template<class P , class N , PropCond pc>
PropCost Gecode::Float::Linear::Lin< P, N, pc >::cost | ( | const Space & | home, | |
const ModEventDelta & | med | |||
) | const [inline, virtual] |
Cost function (defined as low linear).
Implements Gecode::Propagator.
template<class P , class N , PropCond pc>
void Gecode::Float::Linear::Lin< P, N, pc >::reschedule | ( | Space & | home | ) | [inline, virtual] |
template<class P , class N , PropCond pc>
size_t Gecode::Float::Linear::Lin< P, N, pc >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete propagator and return its size.
Reimplemented from Gecode::Actor.
Friends And Related Function Documentation
template<class View >
void bounds_p | ( | ModEventDelta | med, | |
ViewArray< View > & | x, | |||
FloatVal & | c, | |||
FloatNum & | sl, | |||
FloatNum & | su | |||
) | [related] |
Compute bounds information for positive views.
template<class View >
void bounds_n | ( | ModEventDelta | med, | |
ViewArray< View > & | y, | |||
FloatVal & | c, | |||
FloatNum & | sl, | |||
FloatNum & | su | |||
) | [related] |
Compute bounds information for negative views.
Member Data Documentation
template<class P, class N, PropCond pc>
ViewArray<P> Gecode::Float::Linear::Lin< P, N, pc >::x [protected] |
template<class P, class N, PropCond pc>
ViewArray<N> Gecode::Float::Linear::Lin< P, N, pc >::y [protected] |
template<class P, class N, PropCond pc>
FloatVal Gecode::Float::Linear::Lin< P, N, pc >::c [protected] |
The documentation for this class was generated from the following files:
- gecode/float/linear.hh (Revision: 15137)
- gecode/float/linear/nary.hpp (Revision: 15627)