(function from pyomo.contrib.cp.scheduling_expr.sequence_expressions)
pyomo.contrib.cp.scheduling_expr.sequence_expressions
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
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