此内容没有您所选择的语言版本。

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.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat