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

Course Curriculam particular day particular hours no class

Is it possible to define a particular day particular hours (example, 5 and 6) are no classes? in opta course curricula planner. Tried the following approach, doesn't work. rule "saturdayHalfDay" when Lecture( period!=null,…
0
votes
1 answer

Optaplanner doesn't terminate when using custom filter class

In some cases, but not always, seemingly randomly, and using the exact same configuration, Optaplanner doesn't terminate after it's secondsSpentLimit course. it just hangs with "INFO --- [ main] .c.i.c.DefaultConstructionHeuristicPhase :…
ido flax
  • 528
  • 1
  • 10
  • 19
0
votes
1 answer

Optaplanner - nearbySelection with multiple variable

I have extended my problem base from curriculumCourse example of optaplanner samples. And since it was necessary to solve on-hand problem, I started to use 2 variables, both from "value range provider from entity". Now I am trying to improve my…
Serkan Kasapbaşı
  • 409
  • 1
  • 4
  • 12
0
votes
1 answer

OptaPlanner: changeMoveSelector

At first I implemented a SolverConfig.xml with a changeMoveSelector like this: Project
P. Krämer
  • 15
  • 5
0
votes
1 answer

How to re-run solver.solve(planningProblem) again based on current exsting planningProblem?

If solver.solve(planningProblem) was done, there is one plan to re-run solver.solve(planningProblem) again based on current exsting planningProblem. for examples, // run solver.solve first time solver.solve(planningProblem); // do some changes,…
Michael
  • 55
  • 7
0
votes
1 answer

How to get multiple depots in the Optaplanner cvrptw example?

Currently there is just a single depot. I want to use my own data as input and I need to generate 2 depot locations with their own vehicles located to them.
0
votes
1 answer

JsonMappingException Infinite recursion When Trying To Convert Vehicle Routing Solution to Json

I was trying to convert vehicle routing solution object that has been processed by optaplanner solver to json string, but whenever I tried it, it keep prompt me this error: Stack Trace: com.fasterxml.jackson.databind.JsonMappingException:…
the.wizard
  • 1,079
  • 1
  • 9
  • 25
0
votes
1 answer

Optaplanner finds unnecessary conflict for Custom dataset for curriculum example

What I was trying to do is , to test if optaplanner is suitable for our requirements etc. Thus, I created our own dataset of courses, ~280 courses etc. I "believe" XML I prepared is valid for sample, since it loads and optaplanner can start solving…
Serkan Kasapbaşı
  • 409
  • 1
  • 4
  • 12
0
votes
1 answer

Optaplanner Logger should also show customer id for each move

I am using trace in logback.xml, and have different classes derived from SelectionFilter. When the moves are traced they are related to the locations IDs of the customers. Is it internally possible to use in addition/instead the customer IDs, to…
len
  • 749
  • 1
  • 8
  • 23
0
votes
1 answer

Optaplanner benchmarking and fine tuning

I am current tweaking and fine tuning my installer booking assignment optimizer, just recently upgraded my library to Optaplanner 6.2.0 Final. I am using the benchmarker to observe which optimization strategy (EntityTabu, SimulatedAnnealing, with or…
Pejal Hebat
  • 116
  • 6
0
votes
1 answer

Consecutives periods with optaplanner

I've adapted the course time scheduling sample for my planning issue...but I don't know how to assure consecutives or adjacents periods. My schedule plan has activities, each of them with a duration that I have translated to periods. For…
Ivan Fontanals
  • 123
  • 1
  • 9
0
votes
2 answers

Unable to run Optaplanner Web Example

When I try to Run the optaplanner 6.3.0-SNAPSHOT web example from eclipse (after building with maven and the run on the Server). I am getting the following exception, I tried to deploy the war (downloaded with source code) file directly to tomcat…
Qureshi
  • 41
  • 4
0
votes
1 answer

How to assign an incrementing values to a variable in optplanner?

I am planning to use optplanner to optimize the server usage and if required add additional hardware on demand. My questions is: How to auto increment one variable if system is not able to find a optimal solution after a certain fixed time?
Harvinder Singh
  • 681
  • 7
  • 20
0
votes
1 answer

Optaplanner - Different start and stop location for vehicle (time windowed vrp)

How can I set different start and stop locations for the vehicles?
len
  • 749
  • 1
  • 8
  • 23
0
votes
1 answer

Vehicle Routing with Traffic Jam

I was building a prototype of vehicle routing application using google maps and optaplanner. I change the distance based scoring to duration based scoring, where the duration value was calculated using distance / avg speed of vehicle. Now I want to…
the.wizard
  • 1,079
  • 1
  • 9
  • 25