Part III. The Red Hat build of OptaPlanner solver
Solving a planning problem with OptaPlanner consists of the following steps:
-
Model your planning problem as a class annotated with the
@PlanningSolution
annotation (for example, theNQueens
class). -
Configure a Solver (for example a First Fit and Tabu Search solver for any
NQueens
instance). - Load a problem data set from your data layer (for example a Four Queens instance). That is the planning problem.
-
Solve it with
Solver.solve(problem)
, which returns the best solution found.
