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

SingleEntitySolver API with only CH

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • optaplanner-core
    • NEW
    • NEW

      Design an API to solve uses case that have only 1 entity. This is not the Solver or SolverFactory or SolverManager API. This is probably a separate API.

      The user:

      • Defines a ConstraintProvider (hard and soft constraints)
      • Defines an entity class
      • Passes to a method a optional collection of facts, required collection(s) of value ranges and one entity. It assigns the entity.
        • Does it return the entity instance?
          • It does not clone the entity? There is no need for planning cloning.
        • Does it pareto wise return a list of best assignments?
          • So it does planning clone it?
      • Does NOT have to define a planning solution class? No need for a list of entities
      • Optional solver config.
        • Turning on/off assertions, multithreaded solving, etc are still useful
        • The solver config defaults to CH. it won't run LS.
          • It will return quickly. Only 1 step (1 entity) and incremental score calc for the moves.

      Requirements

      • Set up a meeting to design the API
      • Add an optaplanner-quickstart that uses it to schedule an appointment.
        • Come up with a good use case. Cancer treatment appointments? Dentists appointments?

              Unassigned Unassigned
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: