Package com.exigen.ie.constrainer

Examples of com.exigen.ie.constrainer.Goal


    //C.displayOnBacktrack(vars);
    C.traceFailures(vars);

    IntValueSelector value_selector = new IntValueSelectorMin();
    IntVarSelector var_selector = new IntVarSelectorMinSize(vars);
    Goal print = new GoalAnd(new GoalPrint(vars),new GoalPrintObject(C,cost));
    Goal solution = new GoalAnd(print,
                                new GoalGenerate(vars,var_selector,value_selector),
                                print);

    //if (!C.execute(new GoalMinimize(solution,cost)))
    if (!C.execute(solution))
View Full Code Here


    //C.displayOnBacktrack(vars);
    C.traceFailures(vars);

    IntValueSelector value_selector = new IntValueSelectorMin();
    IntVarSelector var_selector = new IntVarSelectorMinSize(vars);
    Goal print = new GoalAnd(new GoalPrint(vars),new GoalPrintObject(C,cost));
    Goal solution = new GoalAnd(print,
                                new GoalGenerate(vars,var_selector,value_selector),
                                print);

    //if (!C.execute(new GoalMinimize(solution,cost)))
    if (!C.execute(solution))
View Full Code Here

  }

  public Goal execute() throws Failure
  {

    Goal _goal = null;
    for (int i = 0; i < _rset.length; i++)
    {
      if (_possibleAssignment[i])
        if (_goal == null)
          _goal = new GoalAssign(_requirement, i);
        else
          _goal = new GoalOr(_goal, new GoalAssign(_requirement, i));
    }

    _goal.execute();
    return null;
  }
View Full Code Here

TOP

Related Classes of com.exigen.ie.constrainer.Goal

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.