Test for cumulative constraint with flexible mandatory tasks. More...
Public Member Functions | |
ManFlexCumulative (int c0, int minP, int maxP, const Gecode::IntArgs &u0, int o0) | |
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 (int c, int maxP, const Gecode::IntArgs &u) |
Get a reasonable maximal start time. | |
Protected Attributes | |
int | c |
Capacity of resource. | |
int | _minP |
Minimum processing time. | |
int | _maxP |
Maximum processing time. | |
Gecode::IntArgs | u |
The resource usage. | |
int | o |
Offset. |
Test for cumulative constraint with flexible mandatory tasks.
Definition at line 226 of file cumulative.cpp.
Test::Int::Cumulative::ManFlexCumulative::ManFlexCumulative | ( | int | c0, |
int | minP, | ||
int | maxP, | ||
const Gecode::IntArgs & | u0, | ||
int | o0 | ||
) | [inline] |
Create and register test.
Definition at line 247 of file cumulative.cpp.
static int Test::Int::Cumulative::ManFlexCumulative::st | ( | int | c, |
int | maxP, | ||
const Gecode::IntArgs & | u | ||
) | [inline, static, protected] |
Get a reasonable maximal start time.
Definition at line 237 of file cumulative.cpp.
virtual Assignment* Test::Int::Cumulative::ManFlexCumulative::assignment | ( | void | ) | const [inline, virtual] |
Create and register initial assignment.
Reimplemented from Test::Int::Test.
Definition at line 259 of file cumulative.cpp.
virtual bool Test::Int::Cumulative::ManFlexCumulative::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
Test whether x is solution.
Implements Test::Int::Test.
Definition at line 264 of file cumulative.cpp.
virtual void Test::Int::Cumulative::ManFlexCumulative::post | ( | Gecode::Space & | home, |
Gecode::IntVarArray & | x | ||
) | [inline, virtual] |
int Test::Int::Cumulative::ManFlexCumulative::c [protected] |
Capacity of resource.
Definition at line 229 of file cumulative.cpp.
int Test::Int::Cumulative::ManFlexCumulative::_minP [protected] |
Minimum processing time.
Definition at line 231 of file cumulative.cpp.
int Test::Int::Cumulative::ManFlexCumulative::_maxP [protected] |
Maximum processing time.
Definition at line 233 of file cumulative.cpp.
The resource usage.
Definition at line 235 of file cumulative.cpp.
int Test::Int::Cumulative::ManFlexCumulative::o [protected] |
Offset.
Definition at line 244 of file cumulative.cpp.