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

Planner 5.4.0CR1: Local Search Phase: Log shows move but best/final solution does not

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 5.5.0.Final
    • None
    • optaplanner-core
    • None
    • Hide

      1. Run the Drools Planner Examples batch file from the distribution 5.4.0CR1.
      2. Choose "Hospital Bed Planning".
      3. Load testdata01.xml and Refresh screen during solving.
      4. Click on Solve.
      5. Terminate Solving after 2 minutes.
      6. Check the log output in the command console. Choose any of the last few moves and verify against the solution shown in the GUI.
      7. Log file shows move but final solution in GUI shows patient on previous department.

      Note:
      a) In case the move is successful as compared to GUI, try a few more moves as these appear randomly distributed. I manged to get at least one move with issues within the last 5 moves.
      b) It is important to ensure that the example is started from afresh. I have seen cases when the test data is reloaded and solving rerun, then things seem to be OK.

      Show
      1. Run the Drools Planner Examples batch file from the distribution 5.4.0CR1. 2. Choose "Hospital Bed Planning". 3. Load testdata01.xml and Refresh screen during solving. 4. Click on Solve. 5. Terminate Solving after 2 minutes. 6. Check the log output in the command console. Choose any of the last few moves and verify against the solution shown in the GUI. 7. Log file shows move but final solution in GUI shows patient on previous department. Note: a) In case the move is successful as compared to GUI, try a few more moves as these appear randomly distributed. I manged to get at least one move with issues within the last 5 moves. b) It is important to ensure that the example is started from afresh. I have seen cases when the test data is reloaded and solving rerun, then things seem to be OK.

      While comparing the log file output of the Local Search phase (Tabu) with the final/best solution, there are several instances where log file shows move occurred but the final/best solution obtained after time/user termination shows the planning entity still on previous planning variable.
      I saw this issue using 5.3.0 Final and also in 5.4.0CR1.
      I saw this issue in my code and also in the "Hospital Bed Planning" examples bundled in the distribution.

      Example (Log output from the Hospital Bed Planning testdata01.xml) -
      ...
      2012-04-20 11:53:35,066 [pool-289-thread-1] DEBUG Step index (27), time spend (22873), score (0hard/-9292soft), best score (0hard/-9292soft), accepted move size (500) for picked step ([Patient655(11-11) @ Department4_490_1 => Department1_119_0]).
      ...
      Checking the final solution, I see that Patient655 is still on Department4_490_1

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

              Created:
              Updated:
              Resolved: