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
0 answers

How can I customize Guided decision table for adding a new window using drools 6.3.0

I am a newbie to drools 6.3.0, as per our project requirement I need to customize the Guided decision table. I want to add a new window there where elements can be imported from a file and I want to drag and drop these elements on decision table…
0
votes
1 answer

Drools rule to replace a database accessing method?

My requirement: I have a method which goes to db and gets info from a table. And using this table info I validate the user input coming to my app. Now I want to REPLACE this method and achieve same functionality (going to DB to fetch some data and…
Mannepalli H
  • 67
  • 10
0
votes
0 answers

Load milion objects from DB

i am using Drools engine but only from the Implementation side. the frameWork is setup for me, and i can use only RULES side ( i hope i am able to explain myself). that said - my problem is that i am trying to load about 1 milion row from Oracle DB…
OrenT
  • 1
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

Check whether the sum in a list is greater than 100

I have to write a drool function on a list which has to do the following thing create a summation check whether the summation is greater than 100. below is the drool rule I have created rule "001" when $charge :…
0
votes
1 answer

Moving chained Planning Entities while solving time

In Optaplanner, is it possible to assign the same planning variable to different planning entities in a move (between score calculations)? For eg, when Customer A is assigned to a StandStill, Customer B will also be assigned to the same…
0
votes
1 answer

facing issue to iterate list in drools

facing problem with List iteration in drools GoodsShipment has the list of GoodsItems and GoodsItem has the list of Documents my requirement is, need to check atleast one document is available or no. iam tried this but failed writen a class to…
Ramesh
  • 340
  • 1
  • 7
  • 21
0
votes
1 answer

Drools rule not true, how to use 'and'?

I'm trying to have the following working: rule "userCount" when $user : User() $minutes : Integer() from accumulate( MinutesPerUser( user == $user, $time : time) …
Dean
  • 6,610
  • 6
  • 40
  • 90
0
votes
1 answer

OptaPlanner : ValueSelector can not use ValueRangeType.FROM_PLANNING_ENTITY_PROPERTY

I am using MoveSelector configuration in the ConstructionHeuristic Phase. It works fine with configuring filterClass and comparatorClass in EntitySelector. However, in ValueSelector session, I am not able to use…
sky.flyer
  • 91
  • 8
0
votes
1 answer

IncrementalScore produces unfeasible solution in Optaplanner

I am still using the OptaPlanner to optimize a chained planning problem which is similar to the VehicleRoutingExample. My planning entities have a planning variable which is another planning entity. The scores are HardSoftScores. I have initialized…
Jon As
  • 15
  • 1
  • 5
0
votes
1 answer

Running time of Construction Heuristic in OptaPlanner

I am using the OptaPlanner to optimize a chained planning problem which is similar to the VehicleRoutingExample. My planning entities have a planning variable which is another planning entity. Now I am testing a huge dataset with ca. 1500 planning…
Jon As
  • 15
  • 1
  • 5
0
votes
0 answers

Asymmetric Distance Matrix for VRP in the OptaPlanner don't work correctly

I implemented an asymmetric distance matrix for VRP in the examples of OptaPlanner as suggested in option B of answer https://stackoverflow.com/a/19420978/3743175 However the values of soft constraints does not coincide with the total value of the…
0
votes
1 answer

How to use drools planner in netbeans

How to use drools planner in netbeans. I'm beginner. I used drools but drools planner different for me. I tried read the User Guide. but I still not understand. Someone can help step by step, please. My English is bad.
user3429028
0
votes
1 answer

non-static method call from the drl file?

Using optapllaner, is it possible to call "Graph.getInstance().mdm()" method in the score calculation drl file ? I read somewhere that i can only invoke static methods but i'm not sure.
Jack Kass
  • 55
  • 9
0
votes
0 answers

Bracket Tournament planning (optaplanner)

I am trying to create a implementation to plan a tournament schedule per round. Als called bracket Tournament. I am trying to use OptaPlanner for this, but the documentation is not that clear to me. I have the following…
Jaavaaan
  • 122
  • 1
  • 4