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
0
votes
1 answer

How can I make the rule engine always choose the rule with higher Salience?

I´m using Salience to make the priority of each rule, but when I fireAllRules, it doesn't always choose the rule with higher Salience. How can I make the rule engine always choose the rule with higher Salience? Output [10, 10, 10, 10, 10, 10, 10,…
0
votes
2 answers

Error while using using binding variable in Drools LHS

I have simple rule in which, I want to use external java function which returns integer value. And I want to use this return value in rule LHS for comparison. rule "testRuleBTW" when $cfd : FactsData() condition : RuleData(…
Amit Patil
  • 710
  • 9
  • 14
0
votes
2 answers

How to learn Drools well?

I am student and new to learn Drools. I am confused about how to learn the Drools. I know nothing about this area but my professor let me learn this things and make an expert system. I have installed the drools workbench --…
0
votes
1 answer

OptaPlanner Nurse Rostering accumulate sum Null Pointer Exception

I try to modify the OptaPlanner nurse Roster example. So far, I want to write a rule in the drl file which reacts when an employee works more than 13 hours per day. I expanded the class shiftType to get hours per Shift. At first look, the rule seems…
0
votes
1 answer

Drools: How to compare attributes of two different objects in drools?

I am using drools for business level validations. Is it possible to load two objects in working memory and compare their values? Lets say i have 2 objects: Object1{ String name; } Object2{ String sname; } Can I compare name(Object1) with…
0
votes
1 answer

How to maintain Drools global counter for facts and apply rules based on its value

I am new to Drools and working on a requirement where I will get batch of facts ( BankAccount information ) . I have to give alert message when three consecutive Minor Accounts ( age<16) inserted in session working memory. I have tried maintaining…
Kiran
  • 921
  • 1
  • 11
  • 23
0
votes
0 answers

Drools : finding the facts which satisfy the criteria

I'm beginner to Drools, I need some help in how to structure the rules. class Question{ private Difficulty difficulty; private Type type; private int marks; //getter and setters method } enum Difficulty{ HARD,EASY,MEDIUM } enum…
0
votes
1 answer

Drool rule to specify only to fire for Parent not for its child

I have two java object(Let say Parent and Child..child extends parent).But I need to specify rule fire only for parent not for its child. Ex: when $raw : Parent() then System.out.println(" Parent") end ---- when $raw : Child() then …
0
votes
1 answer

Drools Camel Server

Currently we are in Drools Camel Server 5.5.0; we would like to upgrade to new version. When I check the Drools download page which shows 6.4 is the latest, and does not have the Drools Camel server build. I find description provided for KIE…
0
votes
1 answer

Optaplanner - The benchmarkConfigResource does not exist as a classpath resource in the classLoader

I'm new to OptaPlanner and I'm focusing on benchmarking. I started playing around with the benchmark in Eclipse. I followed the documentation…
Marco Napalm
  • 23
  • 1
  • 5
0
votes
1 answer

Drools rule operator matches is not working in Optaplanner 6.2Fiinal

I am using Optaplanner 6.2Final version and everything is working fine except the matches operator. To explain more, this is my rule. rule "TEST REG EXP OPERATOR" when $cheese:Cheese($cheese.type matches "(Buffulo)?\\S*Mozarella") then …
sky.flyer
  • 91
  • 8
0
votes
1 answer

How to shorten CONDITIONS & ACTIONS of decision table in drools 5.5.0

I am inserting an object "ABC" to knowledge session. This object contains a HashMap and that HashMap contains List of Objects of type "Person" and this "Person" contains HashMap to hold Person data such as Name,age,gender etc. Now as i have to read…
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

Exit from executing the remaining rules in Drools Decision Table

We have a scenario to be implemented in Decision Table to exit from executing the remaining rules if certain rule successfully executes the action part of the rule. Suppose I have 50 rules and 5th rule is something which says insurance claim is…
0
votes
0 answers

I am not able to use XLS file in drools 6.3.0

I have created a XLSX file, And uploaded it, But am not able to see that xlsx converted decision table. I have uploaded the xlsx file also. But not able to see the converted table. Can anyone please suggest me what I am missing here.