Menu Close

Part III. The Red Hat build of OptaPlanner solver

Solving a planning problem with OptaPlanner consists of the following steps:

  1. Model your planning problem as a class annotated with the @PlanningSolution annotation (for example, the NQueens class).
  2. Configure a Solver (for example a First Fit and Tabu Search solver for any NQueens instance).
  3. Load a problem data set from your data layer (for example a Four Queens instance). That is the planning problem.
  4. Solve it with Solver.solve(problem), which returns the best solution found.