FRAMES NO FRAMES

Class IloActivityConstraintsParam

Definition file: ilsched/iloactivityparam.h
Include file: <ilsched/iloscheduler.h>

Parameters are used to change the default behavior of activities and resources. By default, all constraints on activities are taken into account. Instances of IloActivityConstraintsParam are used to change the default behaviour. It is possible to activate or deactivate some kinds of constraints, such as the precedence constraints, the time-bound constraints, the resource constraints, and the calendar constraints. If the activity is breakable, it is also possible to activate or deactivate disjunctive breaks.

For more information, see Calendars, Temporal Relations, and Parameter Classes.

See Also:

Constructor Summary
public IloActivityConstraintsParam()
public IloActivityConstraintsParam(IloActivityConstraintsParamI * impl)
public IloActivityConstraintsParam(const IloEnv env, const char * name=0)
Method Summary
public IloBoolareCoverConstraintsIgnored() const
public IloBoolarePrecedenceConstraintsIgnored() const
public IloBoolareResourceConstraintsIgnored() const
public IloBoolareShiftConstraintsIgnored() const
public IloBoolareTimeBoundConstraintsIgnored() const
public IloActivityConstraintsParamI *getImpl() const
public voidignoreBreakDisjunctivity(IloBool ignored=IloTrue) const
public voidignoreCoverConstraints(IloBool ignored=IloTrue) const
public voidignorePrecedenceConstraints(IloBool ignored=IloTrue) const
public voidignoreResourceConstraints(IloBool ignored=IloTrue) const
public voidignoreShiftConstraints(IloBool ignored=IloTrue) const
public voidignoreTimeBoundConstraints(IloBool ignored=IloTrue) const
public IloBoolisBreakDisjunctivityIgnored() const
Constructor Detail

IloActivityConstraintsParam

public IloActivityConstraintsParam()
This constructor creates an instance that is empty, that is, one whose handle pointer is null. You must assign it a value before you access it. Any attempt to access it before assignment leads to undefined behaviour.

IloActivityConstraintsParam

public IloActivityConstraintsParam(IloActivityConstraintsParamI * impl)
This constructor creates an instance of the handle class from the pointer to an instance of the implementation class.

IloActivityConstraintsParam

public IloActivityConstraintsParam(const IloEnv env, const char * name=0)

This constructor creates a new instance of IloActivityConstraintsParam, with the default value that the following constraints are all activated: precedence constraints, time-bound constraints, resource constraints, and calendar constraints. Disjunctive breaks are also taken into account for breakable activities.


Method Detail

areCoverConstraintsIgnored

public IloBool areCoverConstraintsIgnored() const

This member function returns IloTrue if the cover constraints are not taken into account for the invoking parameter. Otherwise, it returns IloFalse.


arePrecedenceConstraintsIgnored

public IloBool arePrecedenceConstraintsIgnored() const

This member function returns IloTrue if the precedence constraints are not taken into account for the invoking parameter. Otherwise, it returns IloFalse.


areResourceConstraintsIgnored

public IloBool areResourceConstraintsIgnored() const

This member function returns IloTrue if resource constraints are not taken into account for the invoking parameter. Otherwise, it returns IloFalse.


areShiftConstraintsIgnored

public IloBool areShiftConstraintsIgnored() const

This member function returns IloTrue if shifts of calendar constraints are not taken into account for the invoking parameter. Otherwise, it returns IloFalse.


areTimeBoundConstraintsIgnored

public IloBool areTimeBoundConstraintsIgnored() const

This member function returns IloTrue if time-bound constraints are not taken into account for the invoking parameter. Otherwise, it returns IloFalse.


getImpl

public IloActivityConstraintsParamI * getImpl() const
This member function returns a pointer to the implementation object of the invoking handle.

ignoreBreakDisjunctivity

public void ignoreBreakDisjunctivity(IloBool ignored=IloTrue) const

When the argument ignored is equal to IloTrue, this member function causes the invoking parameter to ignore the disjunctive breaks. Otherwise, the disjunctive constraints are taken into account.


ignoreCoverConstraints

public void ignoreCoverConstraints(IloBool ignored=IloTrue) const

When the argument ignored is equal to IloTrue, this member function causes the invoking parameter to ignore the cover constraints. Otherwise, and by default, the cover constraints are taken into account.


ignorePrecedenceConstraints

public void ignorePrecedenceConstraints(IloBool ignored=IloTrue) const

When the argument ignored is equal to IloTrue, this member function causes the invoking parameter to ignore the precedence constraints. Otherwise, the precedence constraints are taken into account.


ignoreResourceConstraints

public void ignoreResourceConstraints(IloBool ignored=IloTrue) const

When the argument ignored is equal to IloTrue, this member function causes the invoking parameter to ignore the resource constraints. Otherwise, the resource constraints are taken into account.


ignoreShiftConstraints

public void ignoreShiftConstraints(IloBool ignored=IloTrue) const

When the argument ignored is equal to IloTrue, this member function causes the invoking parameter to ignore the shift part of the calendar constraints. Otherwise, the shifts are taken into account.


ignoreTimeBoundConstraints

public void ignoreTimeBoundConstraints(IloBool ignored=IloTrue) const

When the argument ignored is equal to IloTrue, this member function causes the invoking parameter to ignore the time-bound constraints. Otherwise, the constraints are taken into account.


isBreakDisjunctivityIgnored

public IloBool isBreakDisjunctivityIgnored() const

This member function returns IloTrue if disjunctive breaks are not taken into account for the invoking parameter. Otherwise, it returns IloFalse.