Running the ProjectJobScheduling example

49 views
Skip to first unread message

Daniel K

unread,
May 9, 2023, 7:35:36 AM5/9/23
to OptaPlanner development
Hey Guys,

I am currently writing my bachelor's thesis in mechanical engineering. As you may have guessed, as an ME student, I have almost zero experience when it comes to coding.

My professor wants me to use OptaPlanner to plan the order of manufacturing operations and calculate the optimal batch size.

The ProjectJobScheduling example is the closest to my thesis, and I would like to use its source code as a reference. However, the example is not shown in the use-cases. I have tried building a "proper" folder (with pom.xml, correct directory, etc.) and copying the domain, solver, and other necessary files from the example. Unfortunately, it still shows some errors, and I can't get it to run on Quarkus.

Do you have any tips or other ideas for how I could get started? I'm sorry for not using proper coding terminology - I'm a total newbie here!

Thank you in advance!

Best regards

Daniel Kogan

Christopher Chianelli

unread,
May 9, 2023, 9:58:19 AM5/9/23
to OptaPlanner development
The ProjectJobScheduling example is located in `optaplanner-examples` and uses a Swing UI instead of a Quarkus/Web UI.
To build and run it:

  1. Install git (https://git-scm.com/downloads), Maven (https://maven.apache.org/download.cgi) and a JDK (https://adoptium.net/) if you haven't already.
  2. `git clone https://github.com/kiegroup/optaplanner`
  3. `cd optaplanner`
  4. `mvn clean install -Dquickly`
  5. `cd optaplanner-examples`
  6. `mvn exec:java`

Daniel K

unread,
May 9, 2023, 10:59:49 AM5/9/23
to OptaPlanner development
Hey Christopher,

thank you for the quick answer! 
I've done this already but couldn't figure out how to play with the code to make changes.
I think I have to get more into coding and reread the documentation extensively.

Greetings

Daniel
Reply all
Reply to author
Forward
0 new messages