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

Long Score Holders can be filled with float values

XMLWordPrintable

    • 2017 Week 32-33, 2017 Week 34-35
    • Hide
      1. Create PlanningSolution that has scoreHolder of type: HardMediumSoftLongScoreHolder
      2. In the same package create a Guided Rule asset
      3. Click on the Green Plus button in the Then section
      4. Select Modify Hard Score
      5. Type value 1.23 into corresponding input field
      6. Check the source code, there will be:
        • scoreHolder.addHardConstraintMatch(kcontext, 1.23);
      7. Click on button Validate
        • The validation will succeed
        • The validation should fail
      Show
      Create PlanningSolution that has scoreHolder of type: HardMediumSoftLongScoreHolder In the same package create a Guided Rule asset Click on the Green Plus button in the Then section Select Modify Hard Score Type value 1.23 into corresponding input field Check the source code, there will be: scoreHolder.addHardConstraintMatch(kcontext, 1.23); Click on button Validate The validation will succeed The validation should fail
    • NEW
    • NEW

      Any ScoreHolder that uses internally just integer numbers (e.g. HardMediumSoftLongScoreHolder) can be filled with float values with guided rule editor.

            mcimbora_jira Matej Čimbora (Inactive)
            rh-ee-jomarko Jozef Marko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: