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

Chapter 1. Business Resource Planner Introduction


1.1. What is Business Resource Planner

Business Resource Planner is a lightweight, embeddable planning engine that optimizes planning problems. It helps normal Java™ programmers solve planning problems efficiently, and it combines optimization heuristics and metaheuristics with very efficient score calculations.

Business Resource Planner helps solve various use cases like the following:

  • Employee/Patient Rosters. It helps create timetables for nurses and keeps track of patient bed management.
  • Educational Timetables. It helps schedule lessons, courses, exams, and conference presentations.
  • Shop Schedules: It tracks car assembly lines, machine queue planning, and workforce task planning.
  • Cutting Stock: It minimizes waste by reducing the consumption of resources such as paper and steel.

Every organization faces planning problems; that is, they provide products and services with a limited set of constrained resources (employees, assets, time, and money).

Figure 1.1. Use Case Overview

Business Resource Planner is open source software under the Apache Software License 2.0. It is 100% pure Java™ and runs on any Java virtual machine.

1.2. Download Business Resource Planner

Business Resource Planner is production ready. The API is stable but backward incompatible changes can occur. With the recipe called UpgradeFromPreviousVersionRecipe.txt, you can easily upgrade to a newer version and quickly deal with any backwards incompatible changes. This recipe file is included in every release.

Procedure: Get the release ZIP and run the examples

  1. Navigate to the Red Hat Customer Portal and log in with your user credentials.
  2. Select Downloads Red Hat JBoss Middleware Download Software.
  3. From the Products drop-down menu, select BPM Suite or BRMS Platform.
  4. From the Version drop-down menu, select the product version 6.4.
  5. Select the Standalone or Deployable file and then click download.
  6. Unzip the files.
  7. Open the directory examples and run the following script:

    Linux or Mac:

    $ cd examples
    $ ./runExamples.sh
    Copy to Clipboard Toggle word wrap

    Windows:

    $ cd examples
    $ runExamples.bat
    Copy to Clipboard Toggle word wrap

Figure 1.2. Download Business Resource Planner

The Examples GUI application will open. Just pick an example:

Note

Business Resource Planner itself has no GUI dependencies. It runs just as well on a server or a mobile JVM as it does on the desktop.

1.3. Run the Examples

Procedure: To run the examples in your favorite IDE:

  1. Configure your IDE:

    • In IntelliJ and NetBeans, just open the file examples/sources/pom.xml as a new project, the Maven integration will take care of the rest.
    • In Eclipse, open a new project for the directory examples/sources.
    • Add all the JARs to the classpath from the directory binaries and the directory examples/binaries , except for the file examples/binaries/optaplanner-examples-*.jar.
    • Add the Java source directory src/main/java and the Java resources directory src/main/resources.
  2. Next, create a run configuration:

    • Main class: org.optaplanner.examples.app.OptaPlannerExamplesApp
    • VM parameters (optional): -Xmx512M -server
    • Working directory: examples (this is the directory that contains the directory data)
  3. Run that run configuration.

Procedure: Use Business Resource Planner with Maven, Gradle, Ivy, Buildr or Ant:

  1. Get the Business Resource Planner JARs at the Central Repository (and also at the JBoss Nexus Repository).
  2. If you use Maven, add a dependency to optaplanner-core in your project’s pom.xml :

      <dependency>
          <groupId>org.optaplanner</groupId>
          <artifactId>optaplanner-core</artifactId>
          <version>...</version>
      </dependency>
    Copy to Clipboard Toggle word wrap

    To identify the latest version, check the Central Repository. This is similar for Gradle, Ivy, and Buildr.

  3. If you’re still using Ant (without Ivy), copy all the JARs from the downloaded ZIP’s binaries directory and manually verify that your classpath doesn’t contain duplicate JARs.
Note

The downloaded ZIP’s binaries directory contains far more JARs then optaplanner-core actually uses. It also contains the JARs used by other modules, such as optaplanner-benchmark.

Check the Maven repository pom.xml files to determine the minimal dependency set for a specific version of a specific module.

Note

Examples are not a part of supported distribution. Customers can use them for learning purposes but Red Hat does not provide support for example code.

Note

Business Resource Planner will be known as Planner for the rest of this book.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat