Este contenido no está disponible en el idioma seleccionado.

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

useCaseOverview

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

    Windows:

    $ cd examples
    $ runExamples.bat

Figure 1.2. Download Business Resource Planner

distributionZipProductized

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

plannerExamplesAppScreenshot
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>

    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

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2026 Red Hat
Volver arriba