
Test for unary constraint with optional tasks More...
Public Member Functions | |
| OptFlexUnary (int n, int minP, int maxP, int o) | |
| Create and register test. | |
| virtual Assignment * | assignment (void) const |
| Create and register initial assignment. | |
| virtual bool | solution (const Assignment &x) const |
| Test whether x is solution | |
| virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
| Post constraint on x. | |
Static Protected Member Functions | |
| static int | st (const Gecode::IntArgs &p) |
| Get a reasonable maximal start time. | |
Protected Attributes | |
| int | _minP |
| Minimum processing time. | |
| int | _maxP |
| Maximum processing time. | |
| int | off |
| Offset for start times. | |
| int | l |
| Thereshold for taking a task as optional. | |
| Test::Int::Unary::OptFlexUnary::OptFlexUnary | ( | int | n, |
| int | minP, | ||
| int | maxP, | ||
| int | o | ||
| ) | [inline] |
| static int Test::Int::Unary::OptFlexUnary::st | ( | const Gecode::IntArgs & | p | ) | [inline, static, protected] |
| virtual Assignment* Test::Int::Unary::OptFlexUnary::assignment | ( | void | ) | const [inline, virtual] |
Create and register initial assignment.
Reimplemented from Test::Int::Test.
| virtual bool Test::Int::Unary::OptFlexUnary::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
| virtual void Test::Int::Unary::OptFlexUnary::post | ( | Gecode::Space & | home, |
| Gecode::IntVarArray & | x | ||
| ) | [inline, virtual] |
int Test::Int::Unary::OptFlexUnary::_minP [protected] |
int Test::Int::Unary::OptFlexUnary::_maxP [protected] |
int Test::Int::Unary::OptFlexUnary::off [protected] |
int Test::Int::Unary::OptFlexUnary::l [protected] |