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

BigDecimalScore should support Exhaustive Search by supporting optimistic/pessimistic bound creation in ScoreDefinition

    XMLWordPrintable

Details

    Description

      See SimpleBigDecimalScoreDefinition etc throwing an UnsupportedOperationException.

      BigDecimal does not support positive/negative infinity.

      Solution proposals:
      A) In BigDecimalScore, implement positive/negative infinity around each BigDecimal field. Performance impact? Perf impact applies on all optimization algo's...
      B) BoundedBigDecimalScore extends BigDecimalScore to do A). Broken by design: the comparison is only correct in 1 direction.
      C) Extend BigDecimal (it's not final!) to add positive/negative infinity. Broken by design: the comparison is only correct in 1 direction.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: