Test for unary constraint with optional tasks
More...
List of all members.
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.
|
Detailed Description
Test for unary constraint with optional tasks
Definition at line 193 of file unary.cpp.
Constructor & Destructor Documentation
Test::Int::Unary::OptFlexUnary::OptFlexUnary |
( |
int |
n, |
|
|
int |
minP, |
|
|
int |
maxP, |
|
|
int |
o | |
|
) |
| | [inline] |
Create and register test.
Definition at line 212 of file unary.cpp.
Member Function Documentation
static int Test::Int::Unary::OptFlexUnary::st |
( |
const Gecode::IntArgs & |
p |
) |
[inline, static, protected] |
Get a reasonable maximal start time.
Definition at line 204 of file unary.cpp.
virtual Assignment* Test::Int::Unary::OptFlexUnary::assignment |
( |
void |
|
) |
const [inline, virtual] |
virtual bool Test::Int::Unary::OptFlexUnary::solution |
( |
const Assignment & |
x |
) |
const [inline, virtual] |
Member Data Documentation
Minimum processing time.
Definition at line 196 of file unary.cpp.
Maximum processing time.
Definition at line 198 of file unary.cpp.
Offset for start times.
Definition at line 200 of file unary.cpp.
Thereshold for taking a task as optional.
Definition at line 202 of file unary.cpp.
The documentation for this class was generated from the following file: