first_in_sequence

(function from pyomo.contrib.cp.scheduling_expr.sequence_expressions)

pyomo.contrib.cp.scheduling_expr.sequence_expressions.first_in_sequence(interval_var, sequence_var)[source]

Creates a new FirstInSequenceExpression

Requires that ‘interval_var’ be the first in the sequence specified by ‘sequence_var’ if it is scheduled

Parameters:
  • interval_var (IntervalVar) – The activity that should be scheduled first if it is scheduled at all

  • sequence_var (SequenceVar) – The sequence of activities