Class MultipleCircuitConstraint


  • public class MultipleCircuitConstraint
    extends Constraint
    Specialized multiple circuit constraint.

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

    • Constructor Detail

    • Method Detail

      • 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.