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

A custom phase which initializes the solution but doesn't provide a better solution than the original should not get reverted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.Beta1
    • None
    • optaplanner-core
    • None

      DefaultSolver.runSolverPhases() will go through each phase, and will revert
      the changes if they're not better. Or, more exactly, here are lines 191-193:

      if (it.hasNext())

      { // solverScope.setWorkingSolutionFromBestSolution(); }

      Now, if this involved setting the planning variables for the first time,
      those will be reverted.


      View this message in context: http://drools.46999.n3.nabble.com/Planner-Initialized-solution-local-search-tp4018594p4018642.html

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

                Created:
                Updated:
                Resolved: