Questions tagged [optaplanner]

OptaPlanner is a lightweight, embeddable planning engine written in Java. It helps normal Java programmers solve constraint satisfaction problems efficiently. Under the hood, it combines optimization heuristics and metaheuristics with very efficient score calculation.

OptaPlanner is a Artificial Intelligence planning engine written in Java. It works in Kotlin and Scala too. It integrates with Quarkus and Spring Boot. It helps normal programmers solve constraint solving problems efficiently. Under the hood, it combines optimization heuristics and metaheuristics with incremental score calculation.

Typical use cases include the vehicle routing problem, maintenance scheduling, employee rostering, task assignment and school timetabling.

OptaPlanner is open source software, released under the Apache Software License. It is 100% pure Java, runs on any JVM and is available in the Maven Central Repository too.

1619 questions
3
votes
1 answer

How to specify simulatedAnnealingStartingTemperature using OptaPlanner benchmark blueprints

I'm attempting to use OptaPlanner benchmark blueprints as described at http://docs.jboss.org/optaplanner/release/6.4.0.Final/optaplanner-docs/html_single/index.html#benchmarkBlueprint. When I use a solverBenchmarkBluePrintType of…
Mitch
  • 989
  • 1
  • 9
  • 25
3
votes
2 answers

Is OptaPlanner able to model stochastic programs?

At work, we are trying to optimize the number of goods produced to fulfil an uncertain demand. We know the probability distribution of the demand by analyzing the demand that occured before. In mathematical terms, this problem is a multi-staged…
3
votes
1 answer

Problems with the solver configuration for two planning entity classes

I'm working on a solution of a problem that is close to the Nurse Rostering Example in optaplanner . Employees are assigned to shifts as in the Nurse Roster but the main difference is that there are also skill requirements (assignments) that last…
3
votes
1 answer

Best approach for many to many relationships in an optaplanner domain design

Hi i would like to ask what approach to take when designing the domain for the problem that i am trying to solve, as i see in the examples the design tends to be like the entity relationship model where for instance a many to many relationship is…
3
votes
1 answer

Total solutions evaluated by OptaPlanner

I have a question related to the OptaPlanner's solver. Is it possible to count the total number of solutions evaluated by the solver during the runtime? I mean the solutions themselves, not their score.
gadzix90
  • 744
  • 2
  • 13
  • 28
3
votes
1 answer

How exactly do I import an xml file into Optaplanner to be used in the vehicle routing solution?

I really would like to use Optaplanner for my website to solve the vehicle distribution problem, but I have no idea how to import my database info into the software. I have a database that I'd like to set up to Optaplanner, but if that is not…
jameson1128
  • 135
  • 2
  • 13
3
votes
1 answer

OptaPlanner: Must all possible values fit in memory?

It appears that the two options currently available (6.3.0.Final) are for a value range to be defined as a Collection or as a ValueRange (defined by bounds). My domain has a large number of potential values for each variable that are represented by…
Jon L
  • 41
  • 2
3
votes
2 answers

OptaPlanner - CloudBalancingHelloWorld.java - can not reach to solver.getBestSolution()?

Issue: In the example - CloudBalancing, why this application cannot reach to solver.getBestSolution()? The application is always running at solver.solve(unsolvedCloudBalance);. Any suggestions? Some possible solutions here are to finish at…
Michael
  • 55
  • 7
3
votes
2 answers

Optaplanner Integration with Drools Workbench

I have an application (web-based) based on Optaplanner and it reads in scoring constraints from a static .drl file in the classpath to solve against. However, I am now trying to allow the customer to create/change the rules via the Drools Workbench…
Wojo
  • 111
  • 1
  • 1
  • 5
3
votes
0 answers

Optaplanner - Multiple threads with multiple solvers

I'm running Optaplanner under multiple threads trying to take advantage of multiple CPU cores. The idea is: let the optimizer off for a limited amount of time, pick the best solution across the threads, possibly iterate (as suggested here). I'm…
user3030851
  • 123
  • 11
3
votes
1 answer

Repeated planning without ProblemFactChange

I'm a bit wondering about how to implement repeated planning. The document classifies into 3 situations. 'Backup planning', 'Continuous planning' and 'Real-time…
3
votes
1 answer

Basics about Incremental Score Calculator

I am new to optaplanner. I am using 6.2. I am about to code my first score calculator. I was reading the Java docs about AbstractIncrementalScoreCalculator Is there any other documentation with details on how/why and when the framework calls the…
3
votes
1 answer

how to get started with Optaplanner

I looked at the user guide http://docs.jboss.org/optaplanner/release/6.1.0.Final/optaplanner-docs/html_single/index.html#d0e2669 I looked at the example code from git, but still feel quite lost about how to model my planning problem (for example…
teddy teddy
  • 3,025
  • 6
  • 31
  • 48
3
votes
1 answer

Understanding Domain Class in Project Job Scheduling

I am new to optaplanner, and right now I focus on trying to understand the project job scheduling. I trying to run this examples using the sample data from optaplanner manual like in this picture below: I have some question about the domain…
the.wizard
  • 1,079
  • 1
  • 9
  • 25
3
votes
1 answer

Software for Vehicle Routing with Pickup and Deliverys (VRPPD)

I am searching for an open source software for a "Vehicle Routing Problem with Pickup and Deliverys" (VRPPD). These Software needs to support the following things: I have a fleet of Vehicles I have multiple depots Every Order has to be driven from…
Rabbit
  • 33
  • 5