Skip to main content

Questions tagged [optaplanner]

OptaPlanner (and its continuation fork Timefold.ai) 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.

0 votes
1 answer
28 views

Load balancing of resources in timefold SelectionSorterWeightFactory vs Constraints

I have an objective to evenly distribute tasks among employees using Timefold Solver. I have come across two approaches that seem to address this goal: SelectionSorterWeightFactory int ...
Pramod CA's user avatar
0 votes
1 answer
25 views

Understanding Resource Allocation: Seeking Insights into the 'Why' and 'How'

We are using timefold for resource allocation Is there a way to gain insight into the resource allocation by the timefold application and effectively communicate the rationale behind it? This detail ...
Pramod CA's user avatar
0 votes
1 answer
24 views

TimeFold allowsUnassigned is not assigning resources even with 0 constraints

We are using TimeFold for employee resource scheduling, I have set allowsUnassigned=true , however I observed that resource allocation is not happening even when constraints are not broken. @...
Pramod CA's user avatar
0 votes
0 answers
111 views

Task Assigning problem in Timefold - Optaplanner

I am currently trying to model a problem in Timefold/Optaplanner very similar to the task assignment problem in the documentation or this problem. I am using a PlanningListVariable with a chained ...
Thomas Verneuil's user avatar
-1 votes
0 answers
51 views

solveBuilder is null

We are utilizing timefold for employee allocation , we want to test the logic of "employee allocation" I am attempting to run a spring test case which tests the employee allocation , my ...
Pramod CA's user avatar
0 votes
1 answer
41 views

Add constraints dynamically

I have saved a Java stream constraint as a varchar in database. After fetching the record from the database, I converted it from a String to a Constraint object. How can the schedule take into account ...
John Dks's user avatar
0 votes
0 answers
35 views

TimeFold VariableListener Corruption after Initial Score Calculation

I have a single planning entity (task), and a single genuine planning variable (timeslot). The planning variable is a resource that is being assigned to a task, with a course grained time range. When ...
Pezetter's user avatar
  • 2,834
0 votes
0 answers
25 views

How can I put a mandatory sequence of Jobs in the food packing example?

I'm new to this and I've done an example to plan operations for a shoe manufacturing order, and I'm following the example of food packing, I've already made some changes to be able to put in a ...
Ricardo Miguel's user avatar
0 votes
1 answer
47 views

How to select the constraint type dynamically in TimeFold

I have a RuleSetting class that is a problem fact. It stores the type which can be Soft, Medium, and Hard. Based on it the rule type will be changed. I have implemented the constraint stream as ...
I. Ahmed's user avatar
  • 2,506
0 votes
1 answer
85 views

How to sum up the shift durations for a week

I have a problem with fact collection DaySetting. public class DaySetting { String businessDate; Integer weekNo; Integer monthNo; } I have another class shift: public class Shift { @...
I. Ahmed's user avatar
  • 2,506
0 votes
0 answers
25 views

OptaPlanner/TimeFold - FullAssert mode exception and constraint explanation

I am currently working on a project that requires scheduling tasks to resources while minimizing travel time between tasks assigned to the same resource. There are additional constraints, but this is ...
jova5's user avatar
  • 5
0 votes
1 answer
49 views

Modelling an arbitrary (but fixed) number of independent planning varibales in Timefold?

I'm assigning rooms to lessons in my schedule generator. My current model looks like this: @PlanningEntity class Lesson { ... @PlanningVariable(allowsUnassigned = true) Room room; Set&...
aioobe's user avatar
  • 419k
0 votes
1 answer
29 views

Optaplanner integration issues - Drools package exception

We are using optaplanner 9.44.0.Final version for our spring project and i am facing below exception 19:19:21,913 ERROR [stderr] (default task-1) org.kie.memorycompiler.KieMemoryCompilerException: [...
Pramod CA's user avatar
-2 votes
1 answer
77 views

How to accumulate shift duration with day setting

I have a shift class, that returns the information for the shift. public class Shift { @PlanningId private String id; private LocalDateTime start; private LocalDateTime end; ...
I. Ahmed's user avatar
  • 2,506
0 votes
1 answer
35 views

VRP in Timefold/OptaPlanner with open circuit

I need to generate the following routing scenario: The vehicle leaves the warehouse with the deliveries and after making them it does not return to the warehouse. The next day it does the opposite, ...
user25317399's user avatar

15 30 50 per page
1
2 3 4 5
116