predecessor_to
(function from pyomo.contrib.cp.scheduling_expr.sequence_expressions)
- pyomo.contrib.cp.scheduling_expr.sequence_expressions.predecessor_to(before_var, after_var, sequence_var)[source]
Creates a new PredecessorToExpression
Requires that ‘before_var’ be a direct predecessor to ‘after_var’ in the sequence specified by ‘sequence_var’, if both are scheduled
- Parameters:
before_var (IntervalVar) – The activity that should be scheduled as the predecessor
after_var (IntervalVar) – The activity that should be scheduled as the successor
sequence_var (SequenceVar) – The sequence of activities