Omega-lambda trees for computing ect of task sets. More...
#include <cumulative.hh>
Public Member Functions | |
OmegaLambdaTree (Region &r, int c, const TaskViewArray< TaskView > &t) | |
Initialize tree for tasks t and capcity c with all tasks included in omega. | |
void | shift (int i) |
Shift task with index i from omega to lambda. | |
void | lremove (int i) |
Remove task with index i from lambda. | |
bool | lempty (void) const |
Whether has responsible task. | |
int | responsible (void) const |
Return responsible task. | |
double | env (void) const |
Return energy envelope of all tasks. | |
double | lenv (void) const |
Return energy envelope of all tasks excluding lambda tasks. | |
Protected Attributes | |
int | c |
Capacity. |
Omega-lambda trees for computing ect of task sets.
Gecode::Int::Cumulative::OmegaLambdaTree::OmegaLambdaTree | ( | Region & | r, |
int | c, | ||
const TaskViewArray< TaskView > & | t | ||
) |
void Gecode::Int::Cumulative::OmegaLambdaTree::shift | ( | int | i | ) | [inline] |
void Gecode::Int::Cumulative::OmegaLambdaTree::lremove | ( | int | i | ) | [inline] |
bool Gecode::Int::Cumulative::OmegaLambdaTree::lempty | ( | void | ) | const [inline] |
int Gecode::Int::Cumulative::OmegaLambdaTree::responsible | ( | void | ) | const [inline] |
double Gecode::Int::Cumulative::OmegaLambdaTree::env | ( | void | ) | const [inline] |
double Gecode::Int::Cumulative::OmegaLambdaTree::lenv | ( | void | ) | const [inline] |
int Gecode::Int::Cumulative::OmegaLambdaTree::c [protected] |
Capacity.
Definition at line 645 of file cumulative.hh.