Class MultipleCircuitConstraint

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

public class MultipleCircuitConstraint extends Constraint
Specialized multiple circuit constraint.

This constraint allows adding arcs to the multiple circuit constraint incrementally.

  • Constructor Details

  • Method Details

    • addArc

      public MultipleCircuitConstraint addArc(int tail, int head, Literal literal)
      Add an arc to the graph of the multiple circuit constraint.
      Parameters:
      tail - the index of the tail node.
      head - the index of the head node.
      literal - it will be set to true if the arc is selected.