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

Tips on having many Hard Constrins

I am looking for tips on how to handle a planning problem with three business requirements that cannot be broken. I could turn that into three Hard Constraints (HC). In the score calculator, the negative value of each of the three HC can be very…
0
votes
0 answers

Solver EventListener

I am working on a Swing based GUI handling my planning problem. The GUI should like in the examples be updated each time a better solution is found. I use the SwingWorker (SolveWorker) from the examples and starting the solving works fine. I add my…
0
votes
0 answers

Optaplanner SwapMove filter in Cheap Time

I working on a new Planning problem and are using Cheap Time for testing. I want to add a filter to handle a Hard Score constraint. In some cases, a machine cannot be assigned - at all. I added this filter SwapMove filter: public class…
0
votes
1 answer

Stuck too early in local minima with tabu and simulated annealing

Trying to generate the Roster of employees however going doing at the level of hour. Resource hour requirements are like 1h at 8, 2 at 9, 7 at 1pm.. After assigning the first 3 resources, it keeps checking solutions are around them via…
Shadi Moadad
  • 78
  • 1
  • 7
0
votes
1 answer

Day switch in VRP with Time Windows in OptaPlanner (Business Resource Planner)

I basically want to create a rule that helps me solve VRP in a certain way (I'm optimizing for distance): I want it to have Time Windows, these rules work OK: // TIME WINDOW &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& rule…
Alekz
  • 1
  • 2
0
votes
1 answer

Optaplanner - Chained planning entity 'corruption' when using multiple planning variables

I am new to Optaplanner, and I have been looking at extending the VRP into a different problem space. I'm using 6.1.0-Final. It is quite a difficult problem to aticulate, but here goes: Planning Entity - Shipment (extends Standstill), anchored by…
Justin
  • 1
  • 3
0
votes
1 answer

Reflection Issues with Optaplanner

I'm building an optimization program using Optaplanner 6.2.0.CR4, and I'm running into reflection issues with the ReflectionPropertyAcessor class, line 63: return readMethod.invoke(bean) and the other invoke methods in this class. Debugging the…
Patrick
  • 53
  • 1
  • 9
0
votes
1 answer

Best way to test and debug drool rules

Are there an tools to test and debug drool rules? I previously used CLIPS for an expert system and they have a tool where rules, facts can be loaded, watch the agenda, execution (firing of rules, working memory changes) very useful for…
Shadi Moadad
  • 78
  • 1
  • 7
0
votes
1 answer

Optaplanner produces only single chain solution

I am using Optaplanner to solve an installer booking assignment problem, which is a chaining problem, similar to vehicle routing. An installer(vehicle) may have multiple bookings(customer) assigned to it. I need to implement the chain because I need…
Pejal Hebat
  • 116
  • 6
0
votes
1 answer

Modifications in optaplanner example

I need to create something very similar to the Nursing Roster example in optaplanner. The planning requirements are: Nurses have special skills. There are shifts throughout the day, and week, and weekend. New feature: Different tasks require…
Alex
  • 1,986
  • 22
  • 23
0
votes
1 answer

Force optaplanner to break specific rules

how to force optaplanner to break specific rules and pass specific rules out of a given set of rules. I tried to put a high negative score on the rules that have to pass but no luck. Also salience did not work. If 2 specific rules are broken the…
jaya
  • 11
  • 1
0
votes
1 answer

Multiple ValueSelector for one MoveSelector

How can i set multiple value selectors for one move selector in Optaplanner? the documentation says clearly that: "A MoveSelector is often composed out of EntitySelectors, ValueSelectors or even other MoveSelectors, which can be configured…
ido flax
  • 528
  • 1
  • 10
  • 19
0
votes
1 answer

Additional PlanningEntity in CloudBalancing - bounded-space situation

I successfully amended the nice CloudBalancing example to include the fact that I may only have a limited number of computers open at any given time (thanx optaplanner team - easy to do). I believe this is referred to as a bounded-space problem. It…
Philip Harding
  • 392
  • 1
  • 10
0
votes
1 answer

Immovable customer appointment time windows for vehicle routing

I read the following question and the proposed solution: Immovable planning entities for chained entities In our problem we would like to send a set of technicians and customer with their appointment windows to optaplanner with the following…
len
  • 749
  • 1
  • 8
  • 23
0
votes
1 answer

Is there a way to improve rule performance?

I'm attempting to pair tasks (runs) and leverage a limited set of facts without instantiating all the possible combinations. While the following rule is not complete yet, performance is very slow. I'm looking for suggestions. when $rp :…
user2952819
  • 111
  • 8
1 2 3
99
100