Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-1538

Construction heursitic should not updateBestSolution or fire new best solution event if it did nothing

XMLWordPrintable

      For example if it did nothing during a warm start.

      in DefaultConstructionHeuristicPhase.java
      before

              if (skipBestSolutionCloningInSteps) {
                  bestSolutionRecaller.updateBestSolution(phaseScope.getSolverScope());
              }
      

      after

              if (skipBestSolutionCloningInSteps && phaseScope.getNextStepIndex() == 0) {
                  bestSolutionRecaller.updateBestSolution(phaseScope.getSolverScope());
              }
      

              rsynek@redhat.com Radovan Synek (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: