Este conteúdo não está disponível no idioma selecionado.

Chapter 14. Create a Solver in Decision Central


The Solver editor creates a solver configuration that can be run in the Execution Solver or plain Java code after the KJAR is deployed.

You can edit and create Solver configurations in Decision Central.

Prerequisite

Red Hat Decision Manager has been downloaded and installed. Your project has been designed and deployed with all relevant assets configured.

This example uses the provided Employee Rostering sample project to demonstrate Solver features.

Procedure

  1. In Decision Central, click Menu Projects, and click on your project to open it.
  2. In the Assets perspective, click Create New Asset Solver configuration
  3. In the Create new Solver configuration window, type a name for your Solver and click Ok.

    This opens the Solver configuration editor.

  4. In the Score Director Factory configuration section, define a knowledge base that contains scoring rule definitions.

    1. Select one of the knowledge sessions defined within the knowledge base.

      The sessions can be managed in the Project perspective in Decision Central by clicking Menu Projects.

      Note

      Red Hat Business Optimizer uses a default knowledge session if none is specified.

  5. Click the Validate button to validate the Solver configuration. This will actually build a Solver, which will notify you of most issues in your project without the need to deploy and run it.

By default, the Solver configuration automatically scans for all planning entities and planning solution classes. If none are found (or too many), validation fails.

14.1. Configure Solver termination

By default, the planning engine is given an unlimited time period to solve a problem instance.

This might be enforced by some scenarios (for example, real time planning), it is useful to have a mechanism to control total duration of the solving process.

Refer to OptaPlanner documentation for more information on supported termination types.

Note

The Solver can be terminated manually using the Decision Server REST API.

Prerequisite

You have deployed a project and created a Solver in Decision Central.

Procedure

  1. Open the Solver editor,
  2. In the Termination section, click Add to create new termination element within the selected logical group.
  3. Select a termination type from the drop-down list. This is added as an input field in the termination configuration.

    Termination elements are organized into a tree structure.

The editor supports definition of logical groups (represented by termination type Nested termination), which join multiple termination elements using logical operators (And/Or). The scope of the operator is limited by the logical group in which it is defined.

Click Remove to remove the termination element from the termination tree.

Note

Removing the root element of a logical group removes its child elements.

Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat