Overview | Group | Tree | Graph | Index | Concepts |
Parameters are used to change the default behavior of activities and
resources. By default, an activity is not breakable, does not consider efficiency
function of potential calendars, and no interval is ignored.
With IloActivityBasicParam
, it is
(for example) possible to specify if an activity is breakable, or if an activity
must take into account efficiency functions. IloActivityBasicParam
also allows ignoring sets of interval types, such as breaks and shifts.
This class inherits from the IBM® ILOG® Concert Technology class
IloExtractable
. That class is documented in the IBM ILOG
Concert Technology Reference Manual.
For more information, see Calendars, and Parameter Classes.
See Also:
Constructor Summary | |
---|---|
public | IloActivityBasicParam() |
public | IloActivityBasicParam(IloActivityBasicParamI * impl) |
public | IloActivityBasicParam(const IloEnv env, const char * name=0) |
Method Summary | |
---|---|
public void | addIgnoredBreakType(const IloIntSet types) const |
public void | addIgnoredBreakType(IloInt type) const |
public void | clearIgnoredBreakType() const |
public IloActivityBasicParamI * | getImpl() const |
public IloBool | hasIgnoredBreakType() const |
public IloBool | isBreakable() const |
public IloBool | isIgnoredBreakType(IloInt type) const |
public void | removeIgnoredBreakType(const IloIntSet types) const |
public void | removeIgnoredBreakType(IloInt type) const |
public void | setBreakable(IloBool breakable=IloTrue) const |
public void | setUseEfficiency(IloBool useEfficiency=IloTrue) const |
public IloBool | useEfficiency() const |
Constructor Detail |
---|
This constructor creates an instance of
IloActivityBasicParam
with the default values that an activity
is not breakable, does not use efficiency, and there are no ignored breaks or shifts.
Method Detail |
---|
This member function adds the set of types types
to the set
of ignored break types of the invoking parameter.
This member function adds the type type
to the set of
ignored break types of the invoking parameter.
This member function empties the set of ignored break types of the invoking parameter.
This member function returns IloTrue
if the set of
ignored break types is not empty.
This member function returns IloTrue
if the activities
depending on this parameter are breakable. Otherwise, it returns
IloFalse
.
This member function returns IloTrue
if the type
type
belongs to the set of ignored break types of the
invoking parameter. Otherwise, it returns IloFalse
.
This member function removes the set of types types
from the
set of ignored break types of the invoking parameter.
This member function removes the type type
from the set of
ignored break types of the invoking parameter.
When breakable
is equal to IloTrue
, this member
function states that activities depending on this parameter are breakable.
Otherwise, they are not breakable.
When the argument useEfficiency
is equal to
IloTrue
, the processing time
is computed using the efficiency function of resource calendars.
Note that if no calendar with an efficiency function is attached to resources or to resource constraints required by activities used by the invoking parameter, the processing time remains unbounded.
This member function returns IloTrue
if the processing time
is computed using the efficiency function of resource calendars.
Otherwise, it returns IloFalse
.