C++ Reference: class DisjunctiveConstraint

Note: This documentation is automatically generated.

Method
actives

Return type: virtual const std::vector<IntVar*>&

DisjunctiveConstraint

Arguments: Solver* const s, const std::vector<IntervalVar*>& intervals, const std::string& name

~DisjunctiveConstraint

MakeSequenceVar

Return type: virtual SequenceVar*

Creates a sequence variable from the constraint.

nexts

Return type: virtual const std::vector<IntVar*>&

SetTransitionTime

Return type: void

Arguments: Solver::IndexEvaluator2 transition_time

Add a transition time between intervals. It forces the distance between the end of interval a and start of interval b that follows it to be at least transition_time(a, b). This function must always return a positive or null value.

time_cumuls

Return type: virtual const std::vector<IntVar*>&

time_slacks

Return type: virtual const std::vector<IntVar*>&

TransitionTime

Return type: int64_t

Arguments: int before_index, int after_index