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

ValueRangeBuilder for more complex declarative value ranges. For example every int in the range [10-100, 200-300].

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Minor
    • Future
    • None
    • optaplanner-core

    Description

      Currently, PLANNER-160, already supports

      • IntValueRange: from, to, [incrementUnit]
      • BigDecimalValueRange: from, to, [incrementUnit]
      • DoubleValueRange: from, to

      But we want to support more complex ranges, for example
      A) every int between 0 and 100 or between 200 and 300. So the range [10-100, 200-300].
      B) every int between 0 and 10000 that is not dividable by 7. NOTE: Does anyone really need this?
      C) very int that is a prime number. NOTE: that's a big pita to do
      D) ...

      To support some of these out-of-the-box, we're going to build a ValueRangeBuilder (or ValueRangeFactory), so people don't have to mess around with writing their own ValueRange implementations.

      If you have a use case that requires any of those (or another) complex value ranges, please add a comment on this issue and specify which one you need.

      Attachments

        Issue Links

          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: