Class AutomatonConstraint

java.lang.Object
com.google.ortools.sat.Constraint
com.google.ortools.sat.AutomatonConstraint

public class AutomatonConstraint extends Constraint
Specialized automaton constraint.

This constraint allows adding transitions to the automaton constraint incrementally.

  • Constructor Details

  • Method Details

    • addTransition

      public AutomatonConstraint addTransition(int tail, int head, long label)
      Adds a transitions to the automaton.
      Parameters:
      tail - the tail of the transition
      head - the head of the transition
      label - the label of the transition
      Returns:
      this constraint