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

Add API to allow globals to be specified for the working memory

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • 6.0.0.Final
    • None
    • optaplanner-core
    • None

      Provide an API to allow globals to be specified to be inserted into the working memory.
      This would allow customisation of things like constraint costs. Although this could be done by non-global facts being inserted, performance would be better using a global rather than requiring an instance fact to be matched.

      Discussions with Ge0ffrey on IRC revealed that more than 1 working memory exists, and in fact in future versions supporting multithreading or GAs, they may well be many more than one WM, so we need an API that will inject the global into all instances of the WM, just like the global cost constraint global is.

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            davidglassborow David Glassborow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: