Examples of makeInt()


Examples of memory.IEnvironment.makeInt()

        super(new Variable[]{setVar, intVar}, PropagatorPriority.BINARY, true);
    this.set = (SetVar) vars[0];
        this.iv = (IntVar) vars[1];
        this.sdm = set.monitorDelta(this);
        IEnvironment environment = solver.getEnvironment();
        watchLit1 = environment.makeInt(iv.getLB() - 1);
        watchLit2 = environment.makeInt(iv.getLB() - 1);
        elemRem = new IntProcedure() {
            @Override
            public void execute(int i) throws ContradictionException {
                iv.removeValue(i, aCause);
View Full Code Here

Examples of memory.IEnvironment.makeInt()

    //////////////////////////////////////////////////////////////////////////////////////

    public IntervalIntVarImpl(String name, int min, int max, Solver solver) {
        super(name, solver);
        IEnvironment env = solver.getEnvironment();
        this.LB = env.makeInt(min);
        this.UB = env.makeInt(max);
        this.SIZE = env.makeInt(max - min + 1);
    }

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
View Full Code Here

Examples of memory.IEnvironment.makeInt()

    this.set = (SetVar) vars[0];
        this.iv = (IntVar) vars[1];
        this.sdm = set.monitorDelta(this);
        IEnvironment environment = solver.getEnvironment();
        watchLit1 = environment.makeInt(iv.getLB() - 1);
        watchLit2 = environment.makeInt(iv.getLB() - 1);
        elemRem = new IntProcedure() {
            @Override
            public void execute(int i) throws ContradictionException {
                iv.removeValue(i, aCause);
            }
View Full Code Here

Examples of memory.IEnvironment.makeInt()

    public IntervalIntVarImpl(String name, int min, int max, Solver solver) {
        super(name, solver);
        IEnvironment env = solver.getEnvironment();
        this.LB = env.makeInt(min);
        this.UB = env.makeInt(max);
        this.SIZE = env.makeInt(max - min + 1);
    }

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
View Full Code Here

Examples of memory.IEnvironment.makeInt()

    public IntervalIntVarImpl(String name, int min, int max, Solver solver) {
        super(name, solver);
        IEnvironment env = solver.getEnvironment();
        this.LB = env.makeInt(min);
        this.UB = env.makeInt(max);
        this.SIZE = env.makeInt(max - min + 1);
    }

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
View Full Code Here

Examples of memory.IEnvironment.makeInt()

    public PropBoolSumIncremental(BoolVar[] variables, IntVar sum) {
        super(ArrayUtils.append(variables, new IntVar[]{sum}), PropagatorPriority.UNARY, true);
        n = variables.length;
        this.sum = vars[n];
        IEnvironment environment = solver.getEnvironment();
        min = environment.makeInt();
        max = environment.makeInt();
    }

    //***********************************************************************************
    // METHODS
View Full Code Here

Examples of memory.IEnvironment.makeInt()

        super(ArrayUtils.append(variables, new IntVar[]{sum}), PropagatorPriority.UNARY, true);
        n = variables.length;
        this.sum = vars[n];
        IEnvironment environment = solver.getEnvironment();
        min = environment.makeInt();
        max = environment.makeInt();
    }

    //***********************************************************************************
    // METHODS
    //***********************************************************************************
 
View Full Code Here

Examples of memory.IEnvironment.makeInt()

        this.y = Arrays.copyOfRange(vars, X.length, vars.length);

        this.strict = strict;
        this.n = X.length;
        IEnvironment environment = solver.getEnvironment();
        alpha = environment.makeInt(0);
        beta = environment.makeInt(0);
        entailed = false;
    }

    @Override
View Full Code Here

Examples of memory.IEnvironment.makeInt()

        this.strict = strict;
        this.n = X.length;
        IEnvironment environment = solver.getEnvironment();
        alpha = environment.makeInt(0);
        beta = environment.makeInt(0);
        entailed = false;
    }

    @Override
    public void propagate(int evtmask) throws ContradictionException {
View Full Code Here

Examples of memory.IEnvironment.makeInt()

        IEnvironment environment = solver.getEnvironment();
        this.setValues = new TIntHashSet(values);
        this.values = setValues.toArray();
        Arrays.sort(this.values);
    poss = SetFactory.makeStoredSet(SetType.BIPARTITESET,nb_vars,solver);
    nbSure = environment.makeInt(0);
    }

    //***********************************************************************************
    // METHODS
    //***********************************************************************************
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.