ℹ️ NOTE
This repository’s source code has moved!
The OptaPlanner codebase has been merged into the apache/incubator-kie-drools repository. Please use it for the latest source code, to file issues, and to submit contributions.
This repository is archived.
A fast, easy-to-use, open source AI constraint solver for software developers
OptaPlanner’s quickstarts are located in the optaplanner-quickstarts repository.
To build and run from source:
$ mvn clean install -Dquickly $ cd optaplanner-examples $ mvn exec:java
To develop with IntelliJ IDEA, Eclipse or VSCode, open the root pom.xml as a new project
and configure a Run/Debug configuration like this:
-
Type: Application
-
Main class:
org.optaplanner.examples.app.OptaPlannerExamplesApp -
VM options:
-Xmx2G -server(memory only needed when using the big datasets in the examples) -
Program arguments: (none)
-
Working directory:
$MODULE_DIR$(must resolve to optaplanner-examples directory) -
Use classpath of module:
optaplanner-examples
|
Note
|
This repository is archived — contributions are no longer accepted here. Please contribute to apache/incubator-kie-drools instead. |
Your code is automatically formatted according to the Import and Code Style conventions during every Maven build. CI checks enforce those conventions too, so be sure to build your project with maven before creating your PR:
mvn clean install
For information about how to set up code style checks, see IDE Setup Instructions.
Use one of the following ways to build your OptaPlanner project:
-
🚀 build-fast:
mvn clean install -Dquicklyskips any checks and code analysis (~1 min) -
🔨 build-normally:
mvn clean installruns tests, checks code style, skips documentation (~17 min) -
🧾 build-doc:
mvn clean installatoptaplanner/optaplanner-docscreates asciidoctor documentationtarget/optaplanner-docs-*/html_single/index.html(~2 min) -
🦾 build-all:
mvn clean install -Dfullruns all checks + creates documentation and distribution files (~20 min)