Test for unary constraint with optional tasks More...
Public Member Functions | |
OptFixPUnary (const Gecode::IntArgs &p0, 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 | |
Gecode::IntArgs | p |
The processing times. | |
int | l |
Thereshold for taking a task as optional. |
Test for unary constraint with optional tasks
Test::Int::Unary::OptFixPUnary::OptFixPUnary | ( | const Gecode::IntArgs & | p0, |
int | o | ||
) | [inline] |
static int Test::Int::Unary::OptFixPUnary::st | ( | const Gecode::IntArgs & | p | ) | [inline, static, protected] |
virtual Assignment* Test::Int::Unary::OptFixPUnary::assignment | ( | void | ) | const [inline, virtual] |
Create and register initial assignment.
Reimplemented from Test::Int::Test.
virtual bool Test::Int::Unary::OptFixPUnary::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
virtual void Test::Int::Unary::OptFixPUnary::post | ( | Gecode::Space & | home, |
Gecode::IntVarArray & | x | ||
) | [inline, virtual] |
Gecode::IntArgs Test::Int::Unary::OptFixPUnary::p [protected] |
int Test::Int::Unary::OptFixPUnary::l [protected] |