Package solver.constraints.nary.alldifferent.conditions

Examples of solver.constraints.nary.alldifferent.conditions.PropCondAllDiffInst


     * @param AC        specifies is AC filtering should be established
     */
    public static Constraint alldifferent_conditionnal(IntVar[] VARS, Condition CONDITION, boolean AC) {
        if (AC) {
            return new Constraint("AllDifferent" + CONDITION,
                    new PropCondAllDiffInst(VARS, CONDITION),
                    new PropCondAllDiff_AC(VARS, CONDITION)
            );
        }
        return new Constraint("AllDifferent" + CONDITION, new PropCondAllDiffInst(VARS, CONDITION));
    }
View Full Code Here

TOP

Related Classes of solver.constraints.nary.alldifferent.conditions.PropCondAllDiffInst

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.