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

Support for declarative value ranges

XMLWordPrintable

      We want to be able to specify a PlanningVariable value range of <X,Y> without enumerating all of the elements, where

      • the values aren't necessarily a continuous series,
      • or even numeric.

      I intend to implement this using a new value range type, referencing an interface of generic type T with following properties:

      • T getMinimum();
      • T getMaximum();
      • T getNext(T);
      • boolean hasNext(T);
      • T getRandom(Random random);
      • int getSize();

      Furthermore, I intend to provide default implementations for all number types in Java 6.

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: