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

The score of the bestSolution is set before it is (fully) initialized, but from Solver.getBestSolution() it's not detectable that it's not yet initialized

XMLWordPrintable

      OptaPlanner returned best solution with initialized score, but without planning variables assigned to planning entities.

      It was simulated in Kie server integration tests, test OptaplannerIntegrationTest.testGetBestSolution(). This issue happens just rarely, making it hard to catch.
      This problematic response was returned right after planning problem was sent - there was maybe 25 milliseconds difference between sending planning problem and retrieving best solution.

      OptaPlanner response from test mentioned above is added as attachment.

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

              Created:
              Updated:
              Resolved: