Package solver.constraints.nary.sum

Examples of solver.constraints.nary.sum.PropBoolSumIncremental


     * @param VARS a vector of boolean variables
     * @param SUM  a variable
     */
    public static Constraint sum(BoolVar[] VARS, IntVar SUM) {
        if (VARS.length > 10) {
            return new Constraint("SumOfBool", new PropBoolSumIncremental(VARS, SUM));
        } else {
            return new Constraint("SumOfBool", new PropBoolSumCoarse(VARS, SUM));
        }
    }
View Full Code Here

TOP

Related Classes of solver.constraints.nary.sum.PropBoolSumIncremental

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.