Questions tagged [drools-planner]

Drools Planner optimizes planning, routing and scheduling. It solves resource optimization problems such as bin packing, vehicle routing, employee rostering and course timetabling. It scales out in data and constraints. It's open source (ASL), pure java and enterprise ready.

Drools Planner has been renamed to OptaPlanner. It 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.

148 questions
7
votes
4 answers

Implementing methods having raw types in Scala

I have a problem in using Drools Planner (written in Java) in Scala. One of interfaces in Drools planner is declared as: public interface Score extends Comparable However another interface uses 'Score' as a raw type: public…
iirekm
  • 8,890
  • 5
  • 36
  • 46
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
3 answers

Confused about naming of JavaBean properties, with respect to getters and setters

I am making an application that uses Drools planner. The @ValueRangeFromSolutionProperty is supposed to refer to a property from another class (NQueens in this case). From the JavaDocs for @ValueRangeFromSolutionProperty: propertyName The…
Jesvin Jose
  • 22,498
  • 32
  • 109
  • 202
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
4
votes
1 answer

OptaPlanner deploy multiple vehicles to same location

I have taken OptaPlanner VRP web example and customized it to my needs. It is working fine except in the below scenario: Number of vehicles available : 2. Each vehicle capacity is 6. And customer demand is 7. In the above scenario, OptaPlanner is…
Chandra Manthina
  • 147
  • 1
  • 4
  • 13
3
votes
2 answers

optaplanner with aws lambda

I am using optaplanner to solve a scheduling problem. I want to invoke the scheduling code from AWS Lambda (i know that Lambda's max execution time is 5 minutes and thats okay for this application) To achieve this I have build a maven project with…
mluser
  • 53
  • 1
  • 6
3
votes
0 answers

How to refresh KieContainer Manually without using KieScanner?

We are Drools 7.2 version for our rule management. We can use KieScanner when we want to refresh KieContainer at a frequent interval by loading .jar. But in our case we are storing rules in MongoDB as a String. We need to load drl rules from MongoDB…
anonymous
  • 483
  • 2
  • 8
  • 24
3
votes
1 answer

Optaplanner: How to leave planning variables as null if it breaks hard constraint

The behaviour i'm seeing in the results is that two courses that can only be in one time period (like Monday 9am) is both being set in the same period anyway despite having a hard constraint. What I would like to happen is that one of them be set to…
Samuel
  • 325
  • 4
  • 10
3
votes
1 answer

How to edit and update the Drools rule file?

My project uses drools expert means (DRL) file. In the rules file, if the user wants to delete and update the rules, what should be done? Rule file: package com.sample; import com.sample.Tuplebean; import com.sample.DroolsBolt; dialect…
Rahul Pandey
  • 605
  • 1
  • 5
  • 17
3
votes
2 answers

How to reset the StatefulKnowledgeSession?

I am using the StatefulKnowledgeSession for the firing the all my alert rules. In the prepare part i am not getting the how to reset the session. Hence, it would create overriding of rules again?
Rahul Pandey
  • 605
  • 1
  • 5
  • 17
3
votes
1 answer

Deploying optaplanner on a cluster

I know optaplanner scales very well wrt problem size. But how can it scale wrt the number of problem requests? Currently, we have exposed optaplanner as a REST service. It can get hundreds of scheduling requests per day. Search is stopped after 10…
truem
  • 37
  • 3
2
votes
0 answers

How to integrate Rest API and MongoDB Based Spring Boot Application to Drools and KIE Server?

I am looking for any solution for REST API based Spring Boot Application has to be integrated or import to KIE server to apply Drools Rules and Business Flow. There are close questions but there is not related with a newer version of Spring Boot…
Dr. X
  • 2,890
  • 2
  • 15
  • 37
2
votes
1 answer

Fix a task to an employee in chained planning variable

This is in context of a Task planning problem where task chain(T1,T2,T3 and so on..) is assigned to an employee(anchor), say E1. So, the planned outcome is generally like this: E1 -> T1 -> T2 -> T3 T1, T2 and T3 could be from any list of tasks.…
Sachin Verma
  • 3,712
  • 10
  • 41
  • 74
1
2 3
9 10