Ce contenu n'est pas disponible dans la langue sélectionnée.
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.
![inputOutputOverview](https://access.redhat.com/webassets/avalon/d/Red_Hat_Process_Automation_Manager-7.13-Developing_solvers_with_Red_Hat_build_of_OptaPlanner_in_Red_Hat_Process_Automation_Manager-en-US/images/34e3f8e9288f8ce93699dddc52cb9542/inputOutputOverview.png)