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 6.2 - Immovable planning entities for chained entities (VRP)

For a solution of the time windowed VRP I edited the solved XML file and set true for all customers. I added a SelctionFiler class and configured it as proposed. At the end of solved xml data file I added some new unassigned…
len
  • 749
  • 1
  • 8
  • 23
0
votes
1 answer

Can optaplanner solve partly pre-assigned planning entities using Drools rules?

We are using the time dependent vehicle routing problem example of Optaplanner 6.2. In our case the domain model consists of activities (corresponding to customers) and technicians (corresponding to vehicles). Is it possible to initialize an…
len
  • 749
  • 1
  • 8
  • 23
0
votes
1 answer

Explanation of Time Windowed variables, especially arrival time

I was trying to understand the variant Time Windowed of Optaplanner Vehicle Routing Example. There are some points that I don't really understand and need to be confirmed. What is the unit measurement that was used for readyTime, dueTime,…
the.wizard
  • 1,079
  • 1
  • 9
  • 25
0
votes
1 answer

Want to run optaplanner examples on my laptop but it throws an exception

When i run command ./runExamples.sh on terminal it throws an exception. I have checked that Java is installed and class path is already set. How to resolve this? Starting examples app with java from environment variable PATH... Exception in thread…
Nitika
  • 31
  • 2
0
votes
2 answers

How to use min-conflict algorithm with optaplanner

Is there a min-conflict algorithm in optaplanner? or how to do it? What about using it as part of the neighborhood selection like: Define custom swap factory that construct neighborhood as follow Get all violations per variable to optimize, thus…
Shadi Moadad
  • 78
  • 1
  • 7
0
votes
1 answer

OptaPlanner's score calculator callbacks for entities

My model supports real-time change by Solver#addProblemFactChange and ProblemFactChange interface. Implementing doChange method of this interface, I actively use notifications of scoreDirector by methods like beforeEntityRemoved,…
injecto
  • 829
  • 1
  • 10
  • 23
0
votes
1 answer

Xstream - OSGI - OptaPlanner

i'm trying to use optaplanner OSGI-core. In a Java standard environment i have custimze the Vehiclerouting example in order to run it without UI and all works fine. After that i made an OSGI bundle of this project, but when it start i get this…
sproing
  • 153
  • 1
  • 2
  • 8
0
votes
0 answers

Issue running 6.3.latest web examples in Wildfly/Tomcat

I'm having some issues with the 6.3.latest web examples war. When deployed to either EE6 or EE7 via Wildfly or Tomcat, the VRP solution can load the solver config/data and the solver can be started. However once it starts, the solver doesn't solve…
Learner
  • 2,459
  • 4
  • 23
  • 39
0
votes
0 answers

check for "not null" doesn't work in Drools/OptaPlanner

I'm building a very basic Drools-solver in OptaPlanner: package org.bpmngenerator.solver; dialect "java" import org.optaplanner.core.api.score.buildin.simple.SimpleScoreHolder; import org.bpmngenerator.domain.Cell; global SimpleScoreHolder…
rob_87
  • 45
  • 1
  • 1
  • 8
0
votes
1 answer

How to declare non static Global Variable in OptaPlanner

During OptaPlanner solving phrase, I wish to update a global variable. The changes of global variable will modify my next rules validation. Result.java package com.domain; public static boolean status; ... ... Sample.drl import…
0
votes
0 answers

OptaPlanner construction phase - implement move filter with API

I need to implement the construction heuristic with a filter, with a similar need as this thread: OptaPlanner construction phase - Is there a way to define filters? However I need to implement it with the Java API for some reason. So I started with…
oy321
  • 367
  • 2
  • 8
0
votes
1 answer

Optaplanner Nurse Rostering : Why Need To Use SkillProficiency Class Rather Than Embedded The skill variable Inside The Employee Class?

In OptaPlanner Nurse Rostering example, there are SkillProficiency class: public class SkillProficiency extends AbstractPersistable { private Employee employee; private Skill skill; public Employee getEmployee() { return…
the.wizard
  • 1,079
  • 1
  • 9
  • 25
0
votes
1 answer

Cloning PlanningSolution in OptaPlanner

I am trying to solve timetabling problem with OptaPlanner but I am facing with problem which may be connected to cloning issue. Why when my planning entity collection method looks like that @PlanningEntityCollectionProperty public List
0
votes
1 answer

OptaPlanner - Cloud Balance additonal hard-constraint

I am new for OptaPlanner. My allocation problem is very similar to "Cloud Balance" problem given in the examples of OptaPlanner. But with one additonal hard-constraint. The Processes can be grouped and the processes in the same group should NOT be…
Ahamed Mustafa M
  • 3,069
  • 1
  • 24
  • 34
0
votes
1 answer

Remove a vehicle from VRP

What is the correct way to remove (=delete) a vehicle from planning entity collection (similar to VehicleRoutingSolution.VehicleList in OptaPlanner VRP samples) via ProblemFactChange? So far I've tried to reset nextCustomer before deleting the…
grudolf
  • 1,764
  • 3
  • 22
  • 28