Class PropScalar

  • All Implemented Interfaces:
    Comparable<Propagator>, ICause, Identity

    public class PropScalar
    extends PropSum
    A propagator for SUM(x_i*c_i) = b
    Based on "Bounds Consistency Techniques for Long Linear Constraint"
    W. Harvey and J. Schimpf

    Since:
    18/03/11
    Author:
    Charles Prud'homme
    • Constructor Detail

      • PropScalar

        public PropScalar​(IntVar[] variables,
                          int[] coeffs,
                          int pos,
                          Operator o,
                          int b)
        Create a scalar product: SUM(x_i*c_i) o b Variables and coefficients are excepted to be ordered wrt to coefficients: first positive ones then negative ones.
        Parameters:
        variables - list of integer variables
        coeffs - list of coefficients
        pos - position of the last positive coefficient
        o - operator
        b - bound to respect.