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
0
votes
1 answer

OptaPlanner's Strongest Fit algorithm

I have a question related to OptaPlanner's Strongest Fit alogirthm. In the documentation one can find Strongest Fit algorithm description, that is: Like First Fit, but uses the strong planning values first, because the strong planning values are…
gadzix90
  • 744
  • 2
  • 13
  • 28
0
votes
1 answer

How do I get the 'current' scoredirector in optaplanner - and does it matter?

Like in this thread I would like to remove entities before solving a Optaplanner problem again(repeated planning). But I am uncertain of how to get the score director that was used when generating the first solution and of the importance of calling…
0
votes
1 answer

OptaPlanner ClassCastException at ComparatorSelectionSorter

I'm trying to implement something like NurseRostering in example, so I did everything the same except of classes in 'solver/drools&moves' (also can someone explain what they do exactly?). So, my problem is, I implemented Comparators:…
animekun
  • 1,789
  • 4
  • 28
  • 45
0
votes
1 answer

Optaplanner: how to handle minimum number consecutive

Let's assume a variation on Nurse Rostering example in which instead of assigning a nurse to a shift on a day, the nurse is assigned to a variable number of timeblocks on that day (which consists of 24 timeblocks). eg: Nurse1 is assigned to…
truem
  • 37
  • 3
0
votes
1 answer

Optaplanner benchmarkAggregator can run with benchmark simultaneously?

I did run the bench marking successfully without aggregator, and I did run the aggregator alone. Can I run the bench marking and obtain the aggregator gui simultaneously?
Amr Qamar
  • 99
  • 6
0
votes
0 answers

Optaplanner; How to use benchmark in Optaplanner?

I want to use the optaplanner benchmark in order to compare between the solvers I used. Is there a video explaining this issue because I'm confused using the docs, and I tried to implement what's written in the docs but it seems I missed…
Amr Qamar
  • 99
  • 6
0
votes
1 answer

Solution Cloning Performance Tips

We are currently trying to improve the performance of a planning problem we've implemented in OptaPlanner. Our model has ~45,000 chained variables and after profiling the application it seems like the main bottleneck is around the cloning.…
Alastair
  • 1,669
  • 3
  • 14
  • 27
0
votes
0 answers

Displaying the labels vertically

Please, I want to display the labels' text vertically. Also I want the column header to be displayed vertically. actually, I tried to use: public static final String LOGO_PATH =…
Amr Qamar
  • 99
  • 6
0
votes
0 answers

optaplanner drools score corruption

I have a simplified drools file with a hard constraint for an over constrained problem; I annotate the planning variable to nullable=true. The best score is 0hard/0medium/0soft at solving start, local search, and solving ended. But when I print…
Tony B.
  • 53
  • 7
0
votes
0 answers

Optaplanner: Limit Max distance Traveled by any Vehicle

I am working on a Project which has a Battery Operated Vehicles. As we know they can only travel a limited distance. We are using those vehicle to Pick the packets from Customers. The Algo is working fine and giving results which vehicle can go and…
Homer
  • 1
0
votes
1 answer

Optaplanner; Stuck at local optima according to input data sorting

Using Optaplanner version 6.2.0 My DROOLS Rules: rule "Transition Time Constraint" when $leftImageStrip:ImageStrip($selected : selected, $satellite : satellite, selected != null, $timeslot : timeslot, leftId :…
Amr Qamar
  • 99
  • 6
0
votes
0 answers

Optaplanner: The selectionList contains 2 times the same selection (lack of null ids)

I know that this question has been asked before and the comment contains that the solution was the lack of null ids, but I have the same problem and I can't understand the comment which is used to solve the problem. what is the meaning of "lack of…
Amr Qamar
  • 99
  • 6
0
votes
1 answer

Optaplanner: Can we use two planning variables with (nullable = true)?

Can we use two planning variables with (nullable = true) for each of them? If so, how can we deal with them in the Drools rule file? I know that when we use one planning variable we define it with (nullable = true) and then in the rule we use…
Amr Qamar
  • 99
  • 6
0
votes
1 answer

Optaplannaer: how to delete the planning entity instance that violate the rule in the drl file?

I'm attempting to obtain "0" hard and "0" soft constraints all the time. If any of the planning entity instances violates any of the rules listed in the .drl file, I want to remove it from the solution schedule. i.e. if I have 20 planning entity…
Amr Qamar
  • 99
  • 6
0
votes
2 answers

OptaPlanner algorithm impact on hard constraints

First of all, question is related to timetabling problem. I have requirement that says that after a scheduling step all scheduled lessons have to meet hard constraints, no matter how long algorithm worked. And a question is, how can I achieve this?…