Search in sources :

Example 1 with GUI

use of nars.constraint.gui.GUI in project narchy by automenta.

the class AirPlaneLanding method solve.

@Override
public void solve() {
    IntVar[] ivars = solver.retrieveIntVars();
    // LNSFactory.pglns(solver, ivars, 30, 10, 200, 0, new FailCounter(100));
    solver.plugMonitor(new GUI(solver));
    // because PGLNS is not complete (due to Fast Restarts), we add a time limit
    SMF.limitTime(solver, "55s");
    // SMF.log(solver, true, true);
    solver.findOptimalSolution(ResolutionPolicy.MINIMIZE, objective);
}
Also used : GUI(nars.constraint.gui.GUI) IntVar(org.chocosolver.solver.variables.IntVar)

Aggregations

GUI (nars.constraint.gui.GUI)1 IntVar (org.chocosolver.solver.variables.IntVar)1