Package solver.search.loop.monitors

Examples of solver.search.loop.monitors.IMonitorClose


  int lastValue;

  public BestSolutionsRecorder(final IntVar objective){
    super(objective.getSolver());
    this.objective = objective;
    solver.plugMonitor(new IMonitorClose() {
      @Override
      public void beforeClose() {
        Solution last = getLastSolution();
        if(last!=null){
          try{
View Full Code Here


  public ParetoSolutionsRecorder(final ResolutionPolicy policy, final IntVar[] objectives){
    super(objectives[0].getSolver());
    this.objectives = objectives;
    this.n = objectives.length;
    this.policy = policy;
    solver.plugMonitor(new IMonitorClose() {
      @Override
      public void beforeClose() {
        Solution last = getLastSolution();
        if(last!=null){
          try{
View Full Code Here

      public void onSolution() {
        solution.record(solver);
      }
    });
    if(restoreOnClose){
      solver.plugMonitor(new IMonitorClose() {
        @Override
        public void beforeClose() {
          if(solution.hasBeenFound()){
            try{
              solver.getSearchLoop().restoreRootNode();
View Full Code Here

TOP

Related Classes of solver.search.loop.monitors.IMonitorClose

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.