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

Optaplanner VRP and vehicle have break while on route

Dear all Optaplanners Would you know if it's possible to assign kind of break time for a vehicle being on route. In Switzerland it is the law to have 15 Minutes break but I am not sure how to implement this? Thank you and Best Regards Paul
0
votes
1 answer

Modify a drools rule to set rule attributes programmatically

I see classes like org.drools.lang.api.PackageDescrBuilder and org.drools.lang.api.impl.RuleDescrBuilderImpl to create rules programmatically, but I don't see any examples of that. Basically user will create a rule and upload the file to a…
Arun Chandrasekaran
  • 2,370
  • 2
  • 23
  • 33
0
votes
1 answer

OptaPlanner / vehicle routing / deleting customers

I am using OptaPlanner to optimize a vehicle routing problem very similar to the provided example. Since I have several hundred stops, the optimization takes a couple of hours. Here is my issue: Sometimes customers cancel orders. In this case, I…
user2828726
  • 59
  • 1
  • 4
0
votes
1 answer

OptaPlanner construction phase - Is there a way to define filters?

In local search phase you can configure filters for entities, values and moves. You can even provide a custom move factory if you want. However, I can't find any documentation on how to do the same in construction phase. The only configuration is a…
Shatz
  • 55
  • 6
0
votes
1 answer

how i do for implement a new algorithm on optaplanner?

For my master thesis I want to implement to optaplanner "reinforcement learning" and test my algorithm with the problems that are modeled in the examples, but I need a guide or any documentation that help me to understand the way. Can you help me?
Ernesto
  • 11
0
votes
1 answer

OptaPlanner CVRPTW - planner configuration to optimize vehicle trips

Hi OptaPlanner experts, I'm new to OptaPlanner and I ask you some help. As far as I find out from this thread that in the OptaPlanner's CVRPTW example (version CR4), the entity Vehicle (here) represents a vehicle's trip (rather than a vehicle), I…
user2664655
  • 251
  • 1
  • 3
  • 9
0
votes
1 answer

OptaPlanner CVRPTW - solution with capacity issue

I have the following CVRPTW problem and I'm trying to find a good solution with OptaPlanner. Time is in hh:mm:ss format. My DRL file is like this. Moreover I defined also a hard contraint relative to the arrival before ready time. My solver…
user2664655
  • 251
  • 1
  • 3
  • 9
0
votes
1 answer

Drools Planner constructionHeuristic java.lang.ClassCastException

I tried to initialize the solution using Drools Planner 5.4.Final Contruction Heuristic Type BEST_FIT. BEST_FIT The following error occurs…
Tommaso Taruffi
  • 8,932
  • 9
  • 44
  • 56
0
votes
1 answer

Minimum of Two variables in a drools Rule

I want to find out the minimum of two variables in the LHS (Left Hand Side) of a drools rule. For example: $variable1 : // Some value generation lines $variable2 : // Some value generation lines // This doesn't work $minimumOfVariable1And2 :…
0
votes
1 answer

cloudbalancing example of an optaplanner

I am new to the drool planner and trying to run cloudbalancing example, I copied code new java project(without swing) and try to run CloudBalancingApp.java then get following execption. I copied following classes…
Milind B
  • 11
  • 3
0
votes
1 answer

running example in drool planner 5.5

I am new to the drool planner, and try to run example using runExamples.bat,but when try to import that example in exclipse and try to run following exception is getting Exception in thread "main" java.lang.IllegalStateException: The directory…
Milind B
  • 11
  • 3
0
votes
1 answer

Optaplanner Drools rules error

I have the following Drools rule in Optaplanner: rule "oneShiftPerDay" when $leftAssignment : ShiftAssignment($leftId : id, $employee : employee, $shiftDate : shiftDate, employee != null) $rightAssignment : ShiftAssignment(employee ==…
Snels Nick
  • 925
  • 3
  • 13
  • 25
0
votes
1 answer

optaplanner rule does not properly solve

I made an optaplanner rule (see below). //in expressway long tunnel(over 1km), equipment interval(400m) rule "lcs_transport_tunnel_expway" when $road : RoadVO(roadCtgry=="EXPWAY") $t1 : Transport(transportCode=="TUNNEL", $direction:direction, …
0
votes
1 answer

Nullpointer exception in CompositePlanningValueRangeDescriptor.extractValues

I'm facing a NPE when trying to solve my solution: Exception in thread "main" java.lang.NullPointerException at java.util.ArrayList.addAll(ArrayList.java:472) at…
armins
  • 3
  • 2
0
votes
1 answer

installing drools planner in eclipse: The constructor IntConstraintOccurrence(String, Object[]) is ambiguous

I have been trying to install Drools planner. I downloaded it, installed the plug-in, created a run-time, and created a new project. However, I run into build errors in the rules file: The constructor IntConstraintOccurrence(String, Object[]) is…
1 2 3
9
10