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

ConstraintProviderAssertion fails when given facts instead of solution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.36.0.Final
    • None
    • optaplanner-core
    • None
    • 2020 Week 13-15 (from Mar 23)
    • 3
    • NEW
    • NEW

      See https://github.com/kiegroup/optaplanner/pull/731.

      Expected result:

      • The test should pass. The quick fix in the PR proves it's technically possible to verify the score without a solution instance (if the penalty/reward is not configurable).
      • Not sure about the case when they are configurable. I imagine that when the solution is not provided it should fallback to the VRP case and simply ignore constraint weights. If not, it should fail fast.
      • If for some reason the expected fix is not possible than the API shouldn't allow given(facts) when verifying the whole provider.

            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            jlocker Jiří Locker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: