[rules-users] This mailing list is closed, use the google group instead

2014-09-22 Thread Geoffrey De Smet
Just a friendly reminder to use the google group instead: https://groups.google.com/forum/#!forum/drools-usage https://groups.google.com/forum/#%21forum/drools-usage ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] [optaplanner] creating dynamic fact classes(planning entity and planning variables) in Optaplanner

2014-07-24 Thread Geoffrey De Smet
(this is indeed a Drools question) It's a matter of adding Java annotations on those declared fact types. I don't know if Drools supports that. It would be nice if we have an example to demonstrate that. Feel free to open a jira on OptaPlanner that we should create such an example. On 24-07-14

Re: [rules-users] [optaplanner] creating dynamic fact classes(planning entity and planning variables) in Optaplanner

2014-07-24 Thread Geoffrey De Smet
On 24-07-14 11:19, colorful.world wrote: Hi Geoffrey, Thanks for reply. What we use for declaring fact type is just to have class declaration in drl file. Since this drl string is loaded at runtime, we are able to have dynamic class structures and drools rules from DB. So, I am wondering if we

[rules-users] OptaPlanner mailing list split off

2014-06-26 Thread Geoffrey De Smet
/forum.html http://www.optaplanner.org/community/droolsPlannerRenamed.html With kind regards, Geoffrey De Smet OptaPlanner lead ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Coarse Grained Moves

2014-06-25 Thread Geoffrey De Smet
1) There's 2 course grained moves out of the box in 6.1.0.CR1: pillarChangeMove and pillarSwapMove. And in 6.1.0.CR1 they also include subpillars (which is important). http://docs.jboss.org/drools/release/latest/optaplanner-docs/html_single/index.html#pillarChangeMoveSelector Start with trying

Re: [rules-users] Coarse Grained Moves

2014-06-25 Thread Geoffrey De Smet
-specific Move. See the examples that have custom moves. Thanks again for your time, Cheers, Woody 2014-06-25 9:37 GMT+02:00 Geoffrey De Smet ge0ffrey.s...@gmail.com mailto:ge0ffrey.s...@gmail.com: 1) There's 2 course grained moves out of the box in 6.1.0.CR1: pillarChangeMove

Re: [rules-users] SelectionFilterChangeMove question

2014-06-23 Thread Geoffrey De Smet
On 16-06-14 13:46, dBijkoo wrote: i have a class ChangeMoveFilter which implements SelectionFilterChangeMoveSelector to sort out moves that break hard constraints. In the config it looks like this constructionHeuristic queuedEntityPlacer entitySelector

Re: [rules-users] Optaplanner - Linking time windows of vendors and the depot

2014-06-23 Thread Geoffrey De Smet
On 19-06-14 15:30, alainb wrote: Dear All, I'm trying to model multiple time windows of the same vendor by multiplying the vendors with different time windows and demand. This seems to work. However, I can do the same with the depot but it doesn't represent what I need. I'm using salomon

Re: [rules-users] Strange behaviour with maximumSecondsSpend termination in combination with PlanningVariableListener

2014-06-23 Thread Geoffrey De Smet
On 23-06-14 09:32, dBijkoo wrote: When i use the maximumSecondsSpend termination variable in the solverconfig it doesnt always fully process the methods in the PlanningVariableListenerEntity. Most of the time it gives me a solution with semi done shadow variables but not always. However

Re: [rules-users] unsubscribed from the rules-users mailing list

2014-06-23 Thread Geoffrey De Smet
Hi Wolfgang, I just haven't gotten around to split off OptaPlanner dev yet, but it's on my TODO list. I am just back from holidays, so I won't get to it this week, hopefully next week. On 23-06-14 11:55, Wolfgang Laun wrote: Friends, this is to let you know that I have done as the subject

Re: [rules-users] Drools Planner: Vehicle routing problems

2014-06-12 Thread Geoffrey De Smet
On 11-06-14 09:30, Neb wrote: Thanks Geoffrey I have managed to get it working by manually changing some values in the latitude and longitude elements in the xml file. What I am struggling with is generating an xml file with my own data in each element. do you have any tips on how to

Re: [rules-users] Vehicle routing demo to show score flexibility in OptaPlanner

2014-06-12 Thread Geoffrey De Smet
See http://docs.jboss.org/drools/release/latest/optaplanner-docs/html_single/index.html#buildFromSource and https://github.com/droolsjbpm/optaplanner/tree/master/optaplanner-examples/src/main/java/org/optaplanner/examples/vehiclerouting On 12-06-14 10:09, Tuomas Kallio wrote: Hi, I found

Re: [rules-users] Parallel / Distributed Optaplanner

2014-06-10 Thread Geoffrey De Smet
Hi Jonathan, On 09-06-14 20:52, jonathan.labin wrote: I know that this topic has come up before. At various times there were responses indicating that it was being considered at some level within the project(s). How has that played out? Was there progress or has the idea been put on the

Re: [rules-users] No such field org.optaplanner.core.config.heuristic.selector.value.chained.SubChainSelectorConfig.entitySelector

2014-06-06 Thread Geoffrey De Smet
On 06-06-14 14:13, dBijkoo wrote: when I use this code: subChainChangeMoveSelector subChainSelector entitySelector subChainSelector doesn't supports an entitySelector element, only a valueSelector element. See

Re: [rules-users] No such field org.optaplanner.core.config.heuristic.selector.value.chained.SubChainSelectorConfig.entitySelector

2014-06-06 Thread Geoffrey De Smet
On 06-06-14 16:09, dBijkoo wrote: This should be changed here: http://docs.jboss.org/drools/release/6.0.1.Final/optaplanner-docs/html_single/index.html#subChainChangeMoveSelector and at the subChainSwapMoveSelector chapter to avoid others running into the same problem!! Done, thanks for

Re: [rules-users] No such field org.optaplanner.core.config.heuristic.selector.value.chained.SubChainSelectorConfig.entitySelector

2014-06-06 Thread Geoffrey De Smet
The docs were wrong. Docs fixed for 6.1.0.CR1: http://github.com/droolsjbpm/optaplanner/commit/496ef134b On 06-06-14 16:15, Geoffrey De Smet wrote: On 06-06-14 14:13, dBijkoo wrote: when I use this code: subChainChangeMoveSelector subChainSelector

Re: [rules-users] Drools Planner: Vehicle routing problems

2014-05-30 Thread Geoffrey De Smet
I guess it's a matter of adjusting these 2 files to your needs: https://github.com/droolsjbpm/optaplanner/blob/master/optaplanner-examples/src/main/java/org/optaplanner/examples/vehiclerouting/swingui/VehicleRoutingWorldPanel.java

Re: [rules-users] Slf4j Log4j logger not working with Drools drl while using as a global variable.

2014-05-27 Thread Geoffrey De Smet
Check if the logger isn't null (by adding a System.out in the then part of the rule). If that's the case, then that error message is pretty poor (or even incorrect): java.lang.RuntimeException: cannot invoke method: info It should clearly talk about a NullPointer instead. So, if that's the

Re: [rules-users] NullPointerException when calling ScoreDirector.beforeEntityAdded with new Vehicle

2014-05-12 Thread Geoffrey De Smet
Thanks for reporting (for both jira's) On 12-05-14 09:27, Hagai wrote: Link to the opened JIRA: https://issues.jboss.org/browse/PLANNER-238 https://issues.jboss.org/browse/PLANNER-238 -- View this message in context:

Re: [rules-users] How to implement immovable planning entities for vehicle routing problem?

2014-05-08 Thread Geoffrey De Smet
On 07-05-14 18:22, Hagai wrote: I am implementing a vehiclerouting like solution with OptaPlanner 6.0.1.Final. According to the documentation for continuous planning, the way to 'lock' parts of the solution is by declaring a movableEntitySelectionFilter on the planning entity: Section

Re: [rules-users] NullPointerException when calling ScoreDirector.beforeEntityAdded with new Vehicle

2014-05-06 Thread Geoffrey De Smet
Thanks for reporting. That's a terminology bug. The Vehicle isn't both an entity and not an entity... A) It's an entity because it has @PlanningVariable and a shadow variable. B) But it's also not an entity because it doesn't have any genuine variables, and therefore ScoreDirector throws that

Re: [rules-users] Integrate jBPM with OptaPlanner

2014-05-02 Thread Geoffrey De Smet
On 01-05-14 16:36, jjn wrote: Hi Geoffrey I was thinking something like this 1. Create a data model for a request in jBPM, where there will be a fields - id, complexity 2. Create a process model in jBPM for incoming requests being processed by specific actors 3. Somehow call optaplanner

Re: [rules-users] OptaPlanner: Solver.isEveryProblemFactChangeProcessed() return true before the last fact change is processed

2014-05-02 Thread Geoffrey De Smet
working on a scheduling solution for traveling engineers. Similar to vehicle routing but with daily routes and more complex constrains (like dependencies between visits). Thanks, Hagai Shatz On 30 Apr 2014, at 20:31, Geoffrey De Smet ge0ffrey.s...@gmail.com wrote: On 30-04-14 15:07, Hagai

Re: [rules-users] halting on sub-optimal solution - OptaPlanner

2014-05-02 Thread Geoffrey De Smet
It might be stuck in a local optima, some things to check: A) Read the section score trap in the docs, to verify you don't have a score trap B) The default move types (changeMoveSelector and swapMoveSelector) aren't strong enough to escape local optima. B1) Try adding a pillarSwapMoveSelector.

Re: [rules-users] Integrate jBPM with OptaPlanner

2014-04-30 Thread Geoffrey De Smet
So the JBPM human task assignments are a *task assignment problem* you want to solve with OptaPlanner? Kris and I spoke about building some out-of-the-box integration/docs for this. But for now you 'll have to do the integration yourself. OptaPlanner is being successfully used for other task

Re: [rules-users] OptaPlanner: Solver.isEveryProblemFactChangeProcessed() return true before the last fact change is processed

2014-04-30 Thread Geoffrey De Smet
On 30-04-14 12:17, Hagai wrote: Using OptaPlanner 6.0.1.Final and following the documentation for real-time planning: Alternatively, you can subscribe to the BestSolutionChangedEvent. A BestSolutionChangedEvent doesn't guarantee that every ProblemFactChange has been processed already, so

Re: [rules-users] OptaPlanner scalability

2014-04-30 Thread Geoffrey De Smet
On 30-04-14 15:04, Rupesh M G wrote: Hi, I tested Optaplanner successfully for a fleet planning application. Upto 1200 trips with around 80 vehicles for 3 days is fine. I'm reaching the target of 0 hard constraints in less than 30 minutes. But my target is to plan for a month with 12000

Re: [rules-users] OptaPlanner: Solver.isEveryProblemFactChangeProcessed() return true before the last fact change is processed

2014-04-30 Thread Geoffrey De Smet
On 30-04-14 15:07, Hagai wrote: I do use it from other threads in the following 2 scenarios: 1. In a thread that monitors a stream of messages with fact changes. Just before the thread add a new problem fact change to the solver, the code checks if the message is relevant by examining the

Re: [rules-users] Is OptaPlanner the right tool for the job?

2014-03-25 Thread Geoffrey De Smet
On 25-03-14 13:12, Andrzej Raczkowski wrote: Hello all OptaPlanner geeks! :) This is my first post on this list. I would be very grateful if somebody could give me any advice in this matter (details below). We need to plan the schedule for repair units consisting of few people with some

Re: [rules-users] physical resource allocation problem

2014-03-18 Thread Geoffrey De Smet
On 18-03-14 09:24, Scott Danner wrote: Hello, We have a resource allocation problem. Could this be solved with OptaPlanner? Here it is: There are N projects located in various places that need work done with machines (just one machine type for all machine work). Work can be parallelized,

Re: [rules-users] Creating selection filter for PlanningEntity with 4 planning variables

2014-03-18 Thread Geoffrey De Smet
On 18-03-14 11:24, maciekpob wrote: Hello again, o) I completed the changes that you suggested last year concerning the issue that I am encountering with opta planner with our application. Note that I have at most one or two planning entities in the Solution (in my test case).

Re: [rules-users] Non Spatial Map Reduce

2014-03-12 Thread Geoffrey De Smet
It can. Good point. That's multi-threading or multi-vm'ing the solver algorithm, not the problem itself. The second to last paragraph briefly mentions that too IIRC. OptaPlanner will support this (hopefully for 6.2) without breaking incremental score calculation:

Re: [rules-users] Upgrade to protobuf 2.5 - Prevents Upgrading to Drools 6.x

2014-03-11 Thread Geoffrey De Smet
I believe Edson had to make code changes in drools-core/compiler itself to upgrade it from protobuf v.2.4.1 to v.2.5.0. That implies that it's impossible to run drools 6 with protobuf 2.4.1. Both the knowledige-api and kie-api both use the same implementation (which is drools-core/compiler).

Re: [rules-users] OptaPlanner - best strategy for variable number of planning entities?

2014-03-06 Thread Geoffrey De Smet
Check if the solution you give to solver.setPlanningProblem() has all planning variables == null. CH doesn't reïnitialize non-null planning variables by default (see @PlanningVariable.reinitilizeFilter) On 05-03-14 18:02, Nadim wrote: ge0ffrey wrote Without a construction heuristic, local

Re: [rules-users] OptaPlanner - best strategy for variable number of planning entities?

2014-03-06 Thread Geoffrey De Smet
On 06-03-14 03:23, Nadim wrote: I solved the construction heuristic problem. Someone it didn't dawn on me right away that primitive types don't work properly as planning variables, because they're always initialized, thus the construction heuristic quits right away, thinking there's nothing

Re: [rules-users] Number of moves in Optaplanner.

2014-03-05 Thread Geoffrey De Smet
Hey, To debug it, set a breakpoint in LocalSearchDecider. To get it in code: solverPhase = ((DefaultSolver) solver).getSolverPhaseList().get(1); ((DefaultLocalSearchSolverPhase) solverPhase).getDecider().getMoveSelector(); But getDecider() isn't there... (going to add it now for 6.1). HTH

Re: [rules-users] Best Solution found but latest solution does not work

2014-03-04 Thread Geoffrey De Smet
Hi Karan, Unfortunately, I don't have the time bandwidth to do peer reviews on code zips in a community question. (I do those for BRMS customers only) But I think you might be suffering from a score corruption, which could explain what you're seeing. To verify that that's the problem, simply

Re: [rules-users] OptaPlanner - best strategy for variable number of planning entities?

2014-03-04 Thread Geoffrey De Smet
On 03-03-14 23:32, Nadim wrote: Hi, I'm new to OptaPlanner, and reading through the planning examples in the documentation left me with a question. One problem I'm trying to model involves a variable number of planning entities, which I didn't really see addressed by any of the examples;

Re: [rules-users] Best Solution found but latest solution does not work

2014-03-04 Thread Geoffrey De Smet
What happens if you don't use custom cloning? (See section about cloning in docs for more info.) On 04-03-14 13:18, moltenice wrote: Hi ge0ffrey, I understand. I forgot mentioning I am using OptaPlanner 6.0.1 Final. Your last email proved useful, I encountered some errors which I tried

Re: [rules-users] Best Solution found but latest solution does not work

2014-03-04 Thread Geoffrey De Smet
It's likely you have separate issues: - score corruption - bug in your custom cloner (which fails sooner than the score corruption, that's why it doesn't show up) I suggest fixing the score corruption first, while using the build-in cloner. Looks like you're using IncrementalJavaScoreCalculator

Re: [rules-users] OptaPlanner - best strategy for variable number of planning entities?

2014-03-04 Thread Geoffrey De Smet
Without a construction heuristic, local search waste a lot of time doing easy work. No CH is like swimming 25 meter with LS. CH with LS is like jumping 10 meters into the pool and then swimming the remaining 15. I've seen cases were it takes minutes for LS to make up for the work of CH. it

Re: [rules-users] VCRP - Distance calculation in getMilliDistance

2014-03-03 Thread Geoffrey De Smet
If you have enough memory, you can cache the distance from every location to every other location before Solver.solve() or in Solution.getProblemFacts(). The machineReassignment example has a similar big 2 dimensional grid for the cost of every machine to every other machine. Don't go blindly

Re: [rules-users] Best Solution found but latest solution does not work

2014-03-02 Thread Geoffrey De Smet
Almost nobody uses bruteForce, including the examples... I 've got 1 integration test for it, NQueensBruteForceTest, (and all tests are green upon a release), so it should work though. What you're describing sounds like a bug: DefaultBruteForceSolverPhase somehow forces BestSolutionRecaller to

Re: [rules-users] Number of moves in Optaplanner.

2014-02-28 Thread Geoffrey De Smet
ScoreDirector.getCalculateCount() will tell you the number of moves that have been evaluated (because calculateScore() gets called for every move). MoveSelector.getSize() will tell you the number of possible moves for each step (but only a subset of those are evaluated) To get either of those,

Re: [rules-users] Number of moves in Optaplanner.

2014-02-28 Thread Geoffrey De Smet
On 28-02-14 16:57, maciekpob wrote: 1.Is it possible that one move is evaluated many times? Depends on Selector cacheType and selectionOrder (random vs shuffled). See docs, chapter about selectors, cacheType etc. 2.I can't get MoveSelector neither from DeafultSolver nor from

Re: [rules-users] VCRP - Distance calculation in getMilliDistance

2014-02-27 Thread Geoffrey De Smet
On 27-02-14 16:55, Marcus Uerlings wrote: Hi I´ve download Optaplanner a couple of months ago and found it fantastic!! Congrats to Geoffrey! I´m not a programmer, but a logistic consultant to a non-governmental organization (NGO) of recycling products and like to give my cent of

Re: [rules-users] OutOfMemoryError using 6.0.1

2014-02-19 Thread Geoffrey De Smet
A workaround in optaplanner 6.0.1 is probably to enforce RETE_OO (unfortunately ScoreDirectorFactoryConfig#buildKieBase hard codes that, so that's a PITA). It's fixed in BRMS 6.0.0.GA and optaplanner 6.1.0.Beta1. optaplanner 6.1.0.Beta1 might be released later this month. On 19-02-14 13:11,

Re: [rules-users] Multiple planning variables in optaplanner 6.0.1‏

2014-02-17 Thread Geoffrey De Smet
The examination example is the only example which is left on my to cleanup list. It's difficult and convoluted currently. The curriculum course example is very similar, has 2 planning variables on the same planning entity, and is a much prettier example to learn from. Here's how you configure

Re: [rules-users] [optaplanner] Nurse rostering questions

2014-02-13 Thread Geoffrey De Smet
On 12-02-14 20:55, Karri Niemelä wrote: 1) So for example when using toy1.xml there is 140 shifts/assigments. This means each nurse(11 of them) will get about 10-15 assignments. (= DayOfWeekCover/cover/shift/preferred is 2) But what if I want to make sure in contract MinNumAssignments = 20

Re: [rules-users] [Optaplanner] provisioning / scalability

2014-02-06 Thread Geoffrey De Smet
On 06-02-14 14:17, Mats Norén wrote: Hi, I have a use case where multiple users need to run multiple simultaneous solvers. Is there a best practice in scaling out Optaplanner for multitenancy? Just to be clear I'm not interested in scaling out a single optimization run but instead multiple

Re: [rules-users] OptaPlanner vehicle routing problem with multiple depots

2014-01-22 Thread Geoffrey De Smet
On 22-01-14 14:56, milenko wrote: Dear OptaPlanner users, I am working for a small company located in Munich and have a software problem, which I would like to solve with OptaPlnner. In our case, we have multiple technicians which are starting their work each day from different locations

Re: [rules-users] Drools Support in IntelliJ

2014-01-21 Thread Geoffrey De Smet
The intellij drools plugin is available in intellij ultimate only I think. Then you need to do menu File, menu item Other settings, menu item Configure plugins to enable it. And then when it's enabled, check settings - File type to see if *.drl is assigned to the drools drl editor (and not some

Re: [rules-users] Planner with a list of planning variables

2014-01-17 Thread Geoffrey De Smet
On 16-01-14 20:58, jonathan.labin wrote: Does having PeriodChangeMove and RoomChangeMove undermine the effect of having the swap filter? no, because they move only 1 lecture Since a swap can be constructed by a sequence of changes does the filter reduce the space or simply remove swapMoves

Re: [rules-users] Planner with a list of planning variables

2014-01-15 Thread Geoffrey De Smet
On 15-01-14 21:36, jonathan.labin wrote: I have a related question and I'd like to ask it by extending the domain described here. Say that instead of the solution being one recipe, I am building a multiple-course meal of recipes. The problem will define the course slots including the

Re: [rules-users] OR-constraint doesn't work [planner]

2014-01-06 Thread Geoffrey De Smet
Duplicates http://stackoverflow.com/questions/20937673/or-constraint-with-simple-score-calculator-doesnt-work On 06-01-14 12:29, rob_87 wrote: Hey guys, I'm trying to build a simple score-calculator with optaplanner. Method A_at_Index2_or_Index3 should force A to be at index 2 or index 3.

Re: [rules-users] Drools 6 : unable to login to kie-drools-wb-distribution-wars-6.0.0.Final-jboss-as7.0

2013-12-17 Thread Geoffrey De Smet
Duplicates http://stackoverflow.com/questions/20633908/unable-to-login-to-kie-drools-wb-distribution-wars-6-0-0-final-jboss-as7-0 On 17-12-13 13:37, anij wrote: I download the *kie-drools-wb-distribution-6.0.0.Final.zip* and deployed the

Re: [rules-users] [Optaplanner] Filter values = immovable planning entities

2013-12-13 Thread Geoffrey De Smet
On 12-12-13 18:11, Mats Norn wrote: Hi, I've got a domain with the following entities: entities? you mean classes? - Person (planning entity) - Desk (planning variable)

Re: [rules-users] [Optaplanner] Filter values = immovable planning entities

2013-12-13 Thread Geoffrey De Smet
13, 2013 at 9:32 AM, Geoffrey De Smet ge0ffrey.s...@gmail.com wrote: On 12-12-13 18:11, Mats Norn wrote: Hi,

Re: [rules-users] Fwd: Gradle/SBT example for Drools6

2013-12-10 Thread Geoffrey De Smet
The drools-bom is mostly aimed to make it easier for maven users, so they don't have to declare the version of every drools artifact separately in their dependencyManagement. In gradle, don't import the bom, declare a property for the drools version and just use

Re: [rules-users] Optaplanner (V6.0.0) / Vehicle Routing / Speed of a Vehicle

2013-12-09 Thread Geoffrey De Smet
Presuming you mean the VRP with time windows variant: Both VRP example variants follows their research spec (see docs for link). The VRP with time windows spec indeed just counts the distance as time in the score function, so given that the distance is specified in

Re: [rules-users] [Optaplanner] Scheduling + VRP

2013-12-01 Thread Geoffrey De Smet
On 30-11-13 15:02, Mats Norén wrote: Hi, I'm looking for an example that does both scheduling and vrp. No example of that combination yet. I have workers with certain skills and I have goods (which require a particular skill set) to be delivered or picked up within certain time windows.

Re: [rules-users] [Optaplanner] Scheduling + VRP

2013-12-01 Thread Geoffrey De Smet
that that didn't make the 6.0.0.Final ref manual. Regards, Mats 1 dec 2013 kl. 10:58 skrev Geoffrey De Smet ge0ffrey.s...@gmail.com: On 30-11-13 15:02, Mats Norén wrote: Hi, I'm looking for an example that does both scheduling and vrp. No example of that combination yet. I have workers

Re: [rules-users] Optaplanner with Apache Commons Collections 4.0

2013-11-29 Thread Geoffrey De Smet
On 27-11-13 22:12, jonathan.labin wrote: Apache Commons Collections 4.0 has been released and has some data structures that I'm interested in using in my application. To your knowledge can Optaplanner function with version 4.0 swapped in place of 3.2.1? I am not of anyone that tried besides

Re: [rules-users] BEST_FIT Null Pointer Exception

2013-11-29 Thread Geoffrey De Smet
Exception in thread main java.lang.NullPointerException at com.example.domain.solver.MyVariableStrengthComparator.compare(MyVariableStrengthComparator.java:30) That's an NPE in your code :) (if that doesn't make any sense, any decent Java Programming course/tutorial should cover how to

Re: [rules-users] Optaplanner ShiftAssignment Employee is null

2013-11-29 Thread Geoffrey De Smet
On 29-11-13 11:47, ns wrote: Hi, I have a strange error. When I get my final roster, I do: System.out.println(final_roster.getShiftAssignmentList()); Look at this line (final_roster) I get a list of all the employees (with their names) assigned to a certain shift on a certain date. Now

Re: [rules-users] CurriculumCourse - extending for multiple teachers per course

2013-11-27 Thread Geoffrey De Smet
I haven't done many experiments yet with multiple planning entity classes for which 1 planning entity class points to the other planning entity class (unless it's chained like in VRP). The unit tests cover these constructs though, so no worries. Anyway, if you fancy writing a blog article about

Re: [rules-users] Optaplanner rule to assign employee only to shift when he/she has the skills

2013-11-26 Thread Geoffrey De Smet
If you copied the employee rostering example, you can click on the shifts to assign them to another employee. Before you do that, write down the score. Then use the trick above the reassign the shifts as you believe it's better. Now write down the score again. Is the score better? On 26-11-13

Re: [rules-users] BEST_FIT Null Pointer Exception

2013-11-25 Thread Geoffrey De Smet
Can you copy-paste the whole stacktrace? On 25-11-13 21:51, newbie wrote: I am currently using final 6.0 and I used constructionHeuristicTypeBEST_FIT/constructionHeuristicType but after I have run it propmts java.lang.NullPointerException pointing to my PlanningVariableStrengComparator. Did I

Re: [rules-users] CurriculumCourse - extending for multiple teachers per course

2013-11-24 Thread Geoffrey De Smet
On 22-11-13 23:38, clients wrote: Hi, I have been playing around with the optaplanner library for the past couple of weeks trying to learn a bit of the basics. I have been making some progress but I have a simple variation I am trying to accomplish to the stock

Re: [rules-users] SolutionInitializer for Nullable Planning Variable

2013-11-24 Thread Geoffrey De Smet
Are you using 6.0.0.Final? There was a bug with nullable variables and CH's in 6.0.0.CR5 and earlier. On 24-11-13 03:20, newbie wrote: I created a custom solver which assign planning variables to planning entities. I have a simple rule checking if there are no assign variable that adds

Re: [rules-users] SolutionInitializer for Nullable Planning Variable

2013-11-24 Thread Geoffrey De Smet
In that case, can you create a new jira and attach any way I can reproduce the issue locally? https://issues.jboss.org/browse/PLANNER On 24-11-13 14:50, newbie wrote: Yes I am using now the latest version 6.0.0.Final. -- View this message in context:

Re: [rules-users] Optaplanner: Unexpected global [scoreHolder] - Kie API trouble

2013-11-22 Thread Geoffrey De Smet
Which path in what file? On 22-11-13 15:27, jonathan.labin wrote: It seems to also throw this error any time the path includes the character: \ Even properly escaped in the string as \\ -- View this message in context:

Re: [rules-users] Optaplanner: Unexpected global [scoreHolder] - Kie API trouble

2013-11-22 Thread Geoffrey De Smet
Looks like a bug in drools, not really relate to optaplanner as it happens before you set this KieBase on OptaPlanner's SolverFactory, I presume? If (and only if) it reproduces with drools 6.0.0.Final (optaplanner 6.0.0.Final uses that version), create a new jira:

Re: [rules-users] Optaplanner: Unexpected global [scoreHolder] - Kie API trouble

2013-11-22 Thread Geoffrey De Smet
then file a jira in optaplanner, it might be optaplanner's fault in ScoreDirectorFactoryConfig.java. On 22-11-13 17:14, jonathan.labin wrote: The exception is not finally thrown until the call to solver.solve(); -- View this message in context:

Re: [rules-users] How to deal with doubles in Optaplanner drools rules

2013-11-21 Thread Geoffrey De Smet
Use scoreDefinitionTypeHARD_SOFT_DOUBLE/scoreDefinitionType Read this section http://docs.jboss.org/drools/release/latest/optaplanner-docs/html_single/index.html#d0e4068 and especially this section:

Re: [rules-users] Optaplanner rules NullPointerException in PhreakAccumulateNode

2013-11-21 Thread Geoffrey De Smet
That's a bug in drools. What version are you using? If you can reproduce it in 6.0.0.Final, can you file a jira here? https://issues.jboss.org/browse/DROOLS On 21-11-13 14:40, ns wrote: Hi, I am trying to accomplish the following, a part time employee (eg 50%) needs to do only half the

Re: [rules-users] Optaplanner rule to assign employee only to shift when he/she has the skills

2013-11-21 Thread Geoffrey De Smet
That seems wierd: skill == $shiftType That's equals between apples and oranges? On 21-11-13 16:23, ns wrote: I am trying to create a rule that adds a hard constraint when an employee gets assigned to a shift for which he does not have the skills. I have created a table in MySQL that

Re: [rules-users] Nullable Planning Variable

2013-11-20 Thread Geoffrey De Smet
In 6.0.0.CR5 (and earlier) there was a bug in the CH with nullable variables that forced them to pick a non-null value. Try 6.0.0.Final. The release announcement will go out next week. Also, that version has an example (and therefor an integration test) of a nullable variable: the hospital bed

Re: [rules-users] Optaplanner order schedule performance problem

2013-11-20 Thread Geoffrey De Smet
I don't have the time budget to do a full code review for a community question, but here are my initial thoughts: A) Is your average calculation count per second above 5000? If not, figure out which score rules are slowing you down. B) Your

Re: [rules-users] Java Heap Space Out of Memory

2013-11-19 Thread Geoffrey De Smet
On 19-11-13 07:23, newbie wrote: I am currently using optaplanner 6.0.0.CR5, I have about 11000 planning entity objects and about 1000 planning variable objects. Would that be the cause of this problem? By default, OptaPlanner uses selectors with cacheType=JIT, which can handle 50K entities

Re: [rules-users] Nullable Planning Variable

2013-11-15 Thread Geoffrey De Smet
Use optaplanner 6.0.0.CR5 [1], that supports nullable planning variables in construction heuristics. [1] http://www.optaplanner.org/community/droolsPlannerRenamed.html On 13-11-13 07:31, newbie wrote: According to Drools 5.5 reference doc Nullable planning variables are not supported for

Re: [rules-users] Equal shift assignment based on employment form

2013-11-15 Thread Geoffrey De Smet
On 12-11-13 14:22, ns wrote: Hi, I would like to distribute shifts equally among employees based on their employment form (full time or part time: 100%, 75%, 50%, ...). I have a variable for each employee that holds the employment form. How do I make sure all shifts get distributed equally,

Re: [rules-users] How to forsee mid way planning team changes (optaplanner)

2013-11-08 Thread Geoffrey De Smet
Makes sense. This is is probably the most straightforward way to model it cleanly. You probably want to make 2 EmployeeParts and still link them to same Employee. An EmployeePart is basically an employee for the entire time that he/she works under the same regime. A shift gets assigned to an

Re: [rules-users] Creating selection filter for PlanningEntity with 4 planning variables

2013-11-07 Thread Geoffrey De Smet
On 07-11-13 16:21, maciekpob wrote: We are developing an application whose PlanningEntity has multiple planning variables, in fact 4. There are some moves that we do not want to select. To ensure that the values proposed (moves) for the 4 different variables do not break a constraint

Re: [rules-users] Optaplanner JAXB

2013-11-07 Thread Geoffrey De Smet
No, because the *Config classes aren't annotated with JAXB annotations. There's a open discussion if we want to migrate from XStream to JAXB, so we can offer an XSD of the solver config. Also note, that these 2 things are completely distinct: 1) read a solver

Re: [rules-users] Drools v6 documentation release date

2013-11-06 Thread Geoffrey De Smet
Try something like this meanwhile: git clone ... droolsjbpm-knowledge cd droolsjbpm-knowledge cd kie-docs mvn clean install -Dfull firefox drools-docs/target/.../index.html On 06-11-13 10:52, xat wrote: Hello Guys, Is release date of v6 documentation available? BR, Roman -- View this

Re: [rules-users] Drools v6 documentation release date

2013-11-06 Thread Geoffrey De Smet
try cd .. // to droolsjbpm-knowledge itself mvn clean install -DskipTests -Dfull // wait for maven to download the internet cd kie-docs hth On 06-11-13 15:03, xat wrote: Thanks Geoffrey, maven fails with an error [root@drools kie-docs]# mvn clean install -Dfull /usr/java/jdk1.7.0_21/

Re: [rules-users] Optaplanner - Issue with real-time, chained and shadow variables

2013-11-04 Thread Geoffrey De Smet
On 01-11-13 19:38, Juan Ignacio Barisich wrote: Hi everybody I am using optaplanner in real-time style. My

Re: [rules-users] [OptaPlanner] Help on Construction Heuristics

2013-11-04 Thread Geoffrey De Smet
Either: 1) add a hard constraint to penalize what you don't want 2) look into ValueRangeProvider from entity (see docs), which effectively makes it a build-in hard constraint. 3) Use Filtering in both the Local Search selectors as the CH selectors (but

Re: [rules-users] Creating selection filter for PlanningEntity with 4 planning variables

2013-11-04 Thread Geoffrey De Smet
Can you give an example? This sounds like just another hard constraint. On 04-11-13 12:27, maciekpob wrote: I'd like to filter out planning values that are incoherent between each other. -- View this message in context:

Re: [rules-users] Optaplanner - Issue with real-time, chained and shadow variables

2013-11-04 Thread Geoffrey De Smet
Regards 2013/11/4 Geoffrey De Smet ge0ffrey.s...@gmail.com On 01-11-13 19:38, Juan Ignacio Bari

Re: [rules-users] Optaplanner - Issue with real-time, chained and shadow variables

2013-11-04 Thread Geoffrey De Smet
().setNextStandstill(toRemove.getNextStandstill); toRemove.getNextStandstill().setPreviousStandstill(toRemove.getPreviousStandstill); It might need a cast and instanceof check to Customer. 2013/11/4 Geoffrey De Smet ge0ffrey.s...@gmail.com

Re: [rules-users] Ask for help with OptaPlanner

2013-11-04 Thread Geoffrey De Smet
rule " test rule" when $s : Shift($i : index) $d : Demand(shift.getIndex() == $i) then System.out.println("Test rule fired."); end So your Solution.getProblemFacts() method adds all Shifts and all

Re: [rules-users] Ask for help with OptaPlanner

2013-11-02 Thread Geoffrey De Smet
Check your Solution.getProblemFacts() method. Make sure you used addAll() instead of add() in there. On 01-11-13 16:46, Xi Gong wrote: Hi Folks, I am new to OptaPlanner, so please forgive me if this is a stupid question.

Re: [rules-users] Problem with chained planning variables

2013-10-28 Thread Geoffrey De Smet
the CR5 suffix make you believe otherwise. Thanks again 2013/10/25 Geoffrey De Smet ge0ffrey.s...@gmail.com mailto:ge0ffrey.s...@gmail.com Upgrade to 6.0.0.CR5 (follow the upgrade recipe txt) and take advantage of the new feature called shadow variables (see docs). Also see

Re: [rules-users] Problem with chained planning variables

2013-10-25 Thread Geoffrey De Smet
Upgrade to 6.0.0.CR5 (follow the upgrade recipe txt) and take advantage of the new feature called "shadow variables" (see docs). Also see the VRP with timewindows example for an implementation that uses shadow variables :) On 25-10-13 00:27, Juan Ignacio

Re: [rules-users] Monte Carlo and additional Optimisers for OptaPlanner

2013-10-25 Thread Geoffrey De Smet
On 25-10-13 12:50, sirinath wrote: Hi, Is it possible to provide more out of the box optimisers and solvers as part of OptaPlanner. Yes, we're trying to add more every major release. For 6.1 we 'll probably add the CH's cheapest insertion and regret insertion. If you want to add one

Re: [rules-users] Monte Carlo and additional Optimisers for OptaPlanner

2013-10-25 Thread Geoffrey De Smet
On 25-10-13 16:08, sirinath wrote: Where is Drools chance hosted? https://github.com/droolsjbpm/drools-chance Perhaps GA/GP can be a part of this? Yes, here's a Genetic Algoritms prototype for OptaPlanner: https://github.com/elsam/optaplanner Results with GA's were poor, but we're

Re: [rules-users] Drools memory consumption

2013-10-24 Thread Geoffrey De Smet
Which version of drools? Memory consumption improved a lot in 5.2 or 5.3 IIRC. On 24-10-13 09:14, Elran Dvir wrote: Thanks for the quick response. I dont use entrypoints or windows in my

Re: [rules-users] uninitializedEntityFilter example

2013-10-21 Thread Geoffrey De Smet
Duplicates http://stackoverflow.com/questions/19489850/detailed-example-for-uninitializedentityfilter On 21-10-13 09:26, chakez30 wrote: I have set my planning variable to be nullable. But using this the constucution heuristic initializes variables to null values and i think this is a waste of

  1   2   3   4   5   6   7   >