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

Modeling: Efficiently model subset selection

The problem I want to model and solve using Optaplanner is that of creating a roster for a sports team (here: soccer). That is: From all available players, select 11 according to several criteria. I am using a hard/medium/soft score in order to…
geld0r
  • 800
  • 10
  • 22
0
votes
1 answer

Use score penalties to influence the next Move

I am generally new to optaplanner with a few months experience on the tool. The version we are using is 5.5.0 final. Previously with the following line: insertLogical(new IntConstraintOccurrence("rule1", ConstraintType.NEGATIVE_HARD, 50,…
Kymerlion
  • 1
  • 2
0
votes
1 answer

Resolve an UnsupportedOperationException for an Immovable Entity in Optaplanner

I'm getting an UnsupportedOperationException when implementing an immovable entity as per the Optaplanner documentation. I'm using version 6.4.0. My entity: @PlanningEntity(difficultyComparatorClass=AssignmentCreditHoursComparator.class,…
0
votes
1 answer

CVRPTW variant on optaplanner with load time in each customer

I'd like to add following restrictions to the CVRPTW problem, and know if it can be modeled on optaplanner: 1) Vehicles start in a garage, loaded in the customers and unloaded in a depot. After last unload, return to the garage 2) In each customer, …
0
votes
0 answers

Unable to see any results when benchmarking optaplanner

I am trying to benchmark in Optaplanner, and I am not seeing any results. My directories are all created, however, there are no files and there is no html file for me to view any graphs. Below is an outline of my implementation, can you assist in…
portfoliobuilder
  • 7,556
  • 14
  • 76
  • 136
0
votes
1 answer

How to work run/implement Benchmark for optaplanner?

I need assistance with benchmarking using OptaPlanner. There are two issues I am running into. The first is seeing the results from benchmarking the provided examples. I see that the vehiclerouting example has two apps. One of them is…
portfoliobuilder
  • 7,556
  • 14
  • 76
  • 136
0
votes
1 answer

Score calculation performance using shadow variables

From a score calculation perspective, is it correct to assume that shadow variable helps to arrive at the solution faster than without using shadow variable. Making use of shadow variable allows VariableListner to reset the values of dependent…
Manish
  • 47
  • 5
0
votes
1 answer

Optaplanner VRP with Pickups Before DropOffs

I am working on using Optaplanner to solve the following a complex vrp problem with many requirements. I was able to handle most of them except for the following 2 aspects. Pickups before DropOffs only Enforce a specific path on the way to pickup…
0
votes
1 answer

CloudBalancingHelloWorld does not find optimal solution

In OptaPlanner User Guide, there's an example of assigning 4 processes to 2 computers with 2 contrains (CPU & RAM). I created a CloudBalance solution to test the this example. It's surprising that the best score is always -1hard, while the optimal…
Tu Dao
  • 1
0
votes
1 answer

Optaplanner: planning variable that is also a shadow variable?

i want a change on one planning variable on one planning entity to affect the same variable on certain other instances of the same planning enitity. in my case, I have a planning entity called taskResourceAllocation that has a planning variable…
ido flax
  • 528
  • 1
  • 10
  • 19
0
votes
3 answers

accumulate from elements of a set - drools

I want to sum the weight of unique panelist having (at least) one active viewing. A viewing has a panelist, a panelist has a weight (int). I obtain the set of Panelists having an active Viewing like this: accumulate( Viewing(active==true, …
asachet
  • 6,620
  • 2
  • 30
  • 74
0
votes
1 answer

Solving vehicle routing for cost optimization

I have to solve a vehicle routing problem for production level application . Problem Statement :- Vehicle has :- Type Capacity Fleet Time cost = fixed cost + variable cost Variable cost is added if we are using vehicle after Fleet Time. Pickup…
T.J.
  • 1,466
  • 3
  • 19
  • 35
0
votes
1 answer

Optaplanner workbench - Chained planning entity

Is it possible at this stage of the Optaplanner workbench, to illustrate Chained planing entities ? I am dealing with a routing problem that has to decide physical paths of links for assigning overlay links. Thanks in advance!
0
votes
1 answer

changeMove on binary/boolean planning variable - optaplanner

My planning variable is Boolean. I want to use changeMoves only, and I want to use a cartesian product of changeMove to have a coarser move. This is in my planner config:
asachet
  • 6,620
  • 2
  • 30
  • 74
0
votes
1 answer

Vehicle Routing Optimization with unspecified capacity of different items

I have a little different variant of vehicle route optimization problem. There are different items which are to be dropped at different stores. Each store require N items of amounts [a1, a2, ...., aN]. As we don't know how many stores will be there…