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
106
votes
8 answers

Wrong Manifest.mf in IntelliJ IDEA created .jar

I'm trying to package a project using OptaPlanner 6.0.1 libraries into a .jar through IntelliJ IDEA's jar artifact but instead of my manifest.mf containing the standard Manifest-Version: 1.0 Main-Class: a.b.c.app the jar uses the one supplied in…
grudolf
  • 1,764
  • 3
  • 22
  • 28
22
votes
1 answer

Using Optaplanner to solve VRPTWPD

I'm new to optaplanner, and am hoping to use it to solve the VRPTW problem with pickups and deliveries (VRPTWPD). I started by taking the VRPTW code from the examples repo. I am trying to add to it to solve my problem. However, I'm unable to return…
August Flanagan
  • 886
  • 14
  • 27
17
votes
6 answers

SLF4J with logback still prompt failed to load class "org.slf4j.impl.StaticLoggerBinder"

I have a maven project which use slf4j with logback as the logger. I could see that both artifact are in my maven dependencies tree item. But whenever I tried to run my project, I keep prompted: SLF4J: Failed to load class…
the.wizard
  • 1,079
  • 1
  • 9
  • 25
13
votes
5 answers

Convert Calendar to LocalDate

I decided to upgrade from 5.5 to Optaplanner 7.5 Nurseroster but have run into a number of silly issues. Below is one. The routine I previously used is below. Now however the new version requires LocalDate. I have an MySql database back-end and the…
Rod182211
  • 141
  • 1
  • 1
  • 6
13
votes
1 answer

Optaplanner remove customer from working VRP solution

Based on this question i tried the following: public void doFactChange() { Location toBeRemovedLocation = customerToBeRemoved.getLocation(); Location lookUpWorkingObject = (Location) scoreDirector.lookUpWorkingObject(toBeRemovedLocation); …
Eslam Hamdy
  • 7,126
  • 27
  • 105
  • 165
6
votes
2 answers

Alternative to drools-planner/optaplanner in c++/c#?

is there an comparable alternative for optaplanner/drools planner in C++ or C#? I only found a very old C# portation of 2007. Or how do you solve NP-hard optimization problems in C++/C#?
6
votes
1 answer

Does OptaPlanner support optimizations and constraints on continuous variables?

I'm reading contradictory things in the documentation. On one hand, this passage seems to indicate that continuous planning variables are possible: A planning value range is the set of possible planning values for a planning variable. This set…
6
votes
1 answer

How do I use Drools Planner?

I have a scheduling problem where each student expresses his preferences for a lecture and a course timetable is generated for all of the students at the same time (in a batch mode if I may). From what I read around and understand, Drools Planner…
5
votes
1 answer

Optaplanner : Add / remove constraints dynamically

Can we add/remove constraints in optaplanner dynamically using Java ? Is there any example. I want the user to be allowed to add or remove this constraints at runtime using some UI. Below link says something about it using drools. can it be done…
Prashant
  • 51
  • 1
5
votes
1 answer

Nullable chained planning variable in Optaplanner

So I am looking at modelling an overconstrained routing problem, where not all tasks have to be picked up in that specific planning problem. Rather the objective will be to maximise the tasks picked up in that planning problem. I was thinking this…
k88
  • 1,858
  • 2
  • 12
  • 33
5
votes
2 answers

OptaPlanner's mythical score corruption

I use incremental score calculator for my model. After several hours/days of optimization in "full assert" mode Score corruption exception thrown out: java.lang.IllegalStateException: Score corruption: the workingScore (-86591/-2765/-422/-591) is…
injecto
  • 829
  • 1
  • 10
  • 23
4
votes
0 answers

How should the memory fingerprint change during solving

I am working on a problem with Optaplanner and I have been reading about how the memory fingerprint should look like. I have been doing this because an OOM error keeps coming up when scaling up the problem. The documentation shows RAM memory usage…
pineapplw
  • 71
  • 3
4
votes
1 answer

CVRPTW with Precedences amd vehicle failure in OptaPlanner

I have a problem and it is really hard for me to manage it. I want to use OptaPlanner to solve a CVRPTW with Precedences and vehicle failures. What I have done so far is to get the standard example and solve it in the GUI, and then save the results.…
4
votes
0 answers

Vehicle Routing(VRP) with Optaplanner

I'm customizing provided Optaplanner VRP example to my needs. I'm stuck with the Vehicle Capacity problem. Capacity = Maximum hours available to a vehicle in a day(X hours) Overview - Vehicles need to be scheduled for Time Windowed Customers. We…
4
votes
1 answer

OptaPlanner code in IntelliJ: drools rule, wrong 1st argument in PAS: kcontext

I'm using Optaplanner 7.0.0 Beta 7 in Intellij. I have a problem with the drools rules in the example pas of optaplanner library. Intellij says that it can't find the kcontext object as parameter in scoreHolder.addHardConstraintMatch. Intellij need…
Volker Raschek
  • 545
  • 1
  • 6
  • 21
1
2 3
99 100