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

Conditional constraint collectors

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Optional Optional
    • 8.11.0.Final
    • None
    • optaplanner-core
    • None

      We may want a countIf(Predicate) constraint collector. Works just as count(), except it only counts if the predicate matches.

      Another possible implementation would be a generic conditional(ConstraintCollector, Predicate) collector, which delegates to the nested collector. (Eg. conditionally(count(), predicate).)

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

                Created:
                Updated:
                Resolved: