Test::Int::Cumulative::ManFlexCumulative Class Reference
[Cumulative scheduling constraints]
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. |
Detailed Description
Test for cumulative constraint with flexible mandatory tasks.
Definition at line 259 of file cumulative.cpp.
Constructor & Destructor Documentation
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 280 of file cumulative.cpp.
Member Function Documentation
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 270 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 293 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 299 of file cumulative.cpp.
virtual void Test::Int::Cumulative::ManFlexCumulative::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
Member Data Documentation
int Test::Int::Cumulative::ManFlexCumulative::c [protected] |
Capacity of resource.
Definition at line 262 of file cumulative.cpp.
int Test::Int::Cumulative::ManFlexCumulative::_minP [protected] |
Minimum processing time.
Definition at line 264 of file cumulative.cpp.
int Test::Int::Cumulative::ManFlexCumulative::_maxP [protected] |
Maximum processing time.
Definition at line 266 of file cumulative.cpp.
The resource usage.
Definition at line 268 of file cumulative.cpp.
int Test::Int::Cumulative::ManFlexCumulative::o [protected] |
Offset.
Definition at line 277 of file cumulative.cpp.
The documentation for this class was generated from the following file:
- test/int/cumulative.cpp (Revision: 12180)