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

Union/Concatenation of Constraint Streams

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • Constraint Streams
    • None
    • NEW
    • NEW

      Given a stream s1 of constraints [A, B, C] and a stream s2 of constraints  [D, E]:

      • a join() of both s1.join(s2) would give a stream of [ {A,D}, {A,E}, {B,D}, {B,E}, {C,D}, {C,E} ] which is not what you need.
      • a concat(), union() or whatever we call it, doing s1.union(s2) would need to return [A, B, C, D, E]. This operation doesn't exist yet in the current ConstraintStreams API.

            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            jdpoole@gmail.com John Poole (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: