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 Vehicle Routing with time window

I have two questions for the right use of Vehicle Routing with time window. If I have a due Time of nine o'clock in the morning, how must I write it in the vrp file? If I have a service Duration of 30 minutes, how must I write this in the vrp…
M2207
  • 1
  • 1
0
votes
1 answer

Optaplanner - local phase 0 step in total in 1 minute

I have set up a solver with two local search phases and it works fine. However, there was a time that the 2nd phase didn't make any move in about 1 minute, as the log shows below: ... 2016-05-07 14:14:55,847 [main] DEBUG LS step (10069), time…
oy321
  • 367
  • 2
  • 8
0
votes
1 answer

Optaplanner support MDVRP (Multiple Depot VRP)?

How can I implement vrp when different vehicles are initially in a different place?
DarwinFernandez
  • 344
  • 2
  • 6
0
votes
0 answers

optaplanner vrp file with road time and time window

I am trying to create VRP file which defines a problem with time window and distance in seconds. I currently do not need capacity (can I turn it off?) this is my file : NAME: almirs-test COMMENT: Generated for OptaPlanner Examples TYPE:…
zebra
  • 1,330
  • 1
  • 13
  • 26
0
votes
1 answer

OptaPlanner: how to change an entity with ProblemFactChange

Similar to OptaPlanner: How to add a planning entity with ProblemFactChange I have a long running solver where the contents of an order may change during solving. How do I introduce that change to the solver using a ProblemFactChange? …
Mitch
  • 989
  • 1
  • 9
  • 25
0
votes
1 answer

OptaPlanner: How to add a planning entity with ProblemFactChange

I have a long running solver that I wish to periodically update with new planning entities (incoming orders). Below is the sequence in the ProblemFactChange that I have pieced together. Is this the correct sequence? I could not find an example for…
Mitch
  • 989
  • 1
  • 9
  • 25
0
votes
1 answer

chained variable with a non chained?

is it OK to have a chained variable field + another, non chained one, in the same planning entity ? example : @PlanningVariable(valueRangeProviderRefs = {"amountToTradeRange"}) long amountToTrade; @PlanningVariable(valueRangeProviderRefs =…
yoavm
  • 15
  • 2
0
votes
1 answer

CustomShadowVariables and ScoreDirector

I have a custom shadow variable that is supposed to update a list of assignments for a person as they're assigned to jobs. This is to enable a rule that, e.g. a Person can only have x shifts per week. I figure maintaining this list of shifts per…
Trevor
  • 3
  • 1
0
votes
1 answer

IllegalArgumentException since version 6.4.0.Final

Using a List> (where PersoonFast is a proper class) as @ValueRangeProvider, I get the following exception: Exception in thread "main" java.lang.IllegalArgumentException: The entityClass (class…
Stevie
  • 1
0
votes
2 answers

OptaPlanner - how to specify multiple algorithms

The OptaPlanner user guide (http://docs.jboss.org/optaplanner/release/6.4.0.Final/optaplanner-docs/html_single/index.html#whichOptimizationAlgorithmsShouldIUse) mentions "combining multiple algorithms together". How do you specifiy that in the…
Mitch
  • 989
  • 1
  • 9
  • 25
0
votes
1 answer

Branch And Bound not working in OptaPlanner

I have a Directed Acyclic Graph, arcs are Entities and Weights associated do each Arc are the PlanningVariables. I use: @ValueRangeProvider(id = "bufferRange") public CountableValueRange getDelayRange() { return…
0
votes
1 answer

OptaPlanner benchmark: use in-memory input solution instead of inputSolutionFile

I'm trying to set up an OptaPlanner benchmark run. Loading the problemBenchmarks from a file is proving to be problematic, as a lot of my classes are not serializable. It will take a LOT of work to get that to function. Is there a way to run a…
Mitch
  • 989
  • 1
  • 9
  • 25
0
votes
1 answer

Number of Vehicles in Real-Time

I'm using Optaplanner VRP tool to solve some VRP instances. Is there a way to view the number of vehicles being used in real-time? Also, what algorithm does Optaplanner employ for solving VRP? Thanks, Mayank
0
votes
1 answer

Optaplanner Solving Phase Stuck in Construction Heuristic Phase

I was building a web apps for nurse rostering based on Optaplanner vehicle routing web example. When I tried to run it from my Eclipse inside a JBoss WildFly 8.x, it only running to Construction Heuristic phase, and then stuck there without any more…
the.wizard
  • 1,079
  • 1
  • 9
  • 25
0
votes
1 answer

Optaplanner, How to catch the current time at the beginning of the rule to use it in score?

I have something like that: scoreHolder.addSoftConstraintMatch(kcontext, (System.currentTimeMillis()-$time.getTime())); I want to use the current time at the beginning of firing the rule only, and not to be updated during running the rule. just…
Amr Qamar
  • 99
  • 6