Re: [rules-users] [Planner] uninitializedEntityFilter example

2013-10-21 Thread Geoffrey De Smet
See it's javadocs. Note that in your case the T is a planning entity. /** * Decides on keeping or discarding a selection * (which is a {@link PlanningEntity}, a planningValue, a {@link Move} or a {@link Selector}). * p/ * A filtered selection is considered as not selected, it does not

Re: [rules-users] How does drools provides an explanation of how the solution was arrived?

2013-10-18 Thread Geoffrey De Smet
kcontext.getMatch().getObjects() is drools 6 API. It's probably there in drools 5 too, but under a different name (I don't know which one). On 18-10-13 05:54, lalit2583 wrote: Hi Geoffrey, I was able to get kcontext.getRule().getName() using kcontext but

Re: [rules-users] protobuf for marshalling

2013-10-10 Thread Geoffrey De Smet
I recall that we made protobuf a normal transitive dependency for drools 6. No need to expecitly add it in 6. Also, drools 6 uses protobuf 2.5. On 10-10-13 10:03, Alexander Wolf wrote: [Drools 5.5.0 Final] Hey,

Re: [rules-users] How does drools provides an explanation of how the solution was arrived?

2013-10-04 Thread Geoffrey De Smet
Note that in the RHS of any rule you can use kcontext.getRule().getName() and kcontext.getMatch().getObjects() to explain which rules were fired with which match objects. On 04-10-13 10:49, Esteban Aliverti wrote: Let me add that you

Re: [rules-users] Optaplanner rules error

2013-09-20 Thread Geoffrey De Smet
On 19-09-13 09:56, SNELS Nick wrote: Hi, I have the following Drools rule in Optaplanner: rule "oneShiftPerDay" when $leftAssignment :

Re: [rules-users] Optaplanner rules error

2013-09-20 Thread Geoffrey De Smet
On 20-09-13 16:19, ns wrote: I'm unable to figure it out. At the top of the drl file I have: package be.comp.permanenties.solver; //permanentiesScoreRules.drl dialect java import org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScoreHolder; import

Re: [rules-users] Dynamic ValueRangeProvider

2013-09-12 Thread Geoffrey De Smet
at this now, I realize that the provider may provide me the same small chair in all three slots (doh!). Does this make sense? Thanks, Drew On Sep 10, 2013, at 3:10 AM, Geoffrey De Smet ge0ffrey.s...@gmail.com wrote: On 09-09-13 16:13, Andrew Varner wrote: Optaplanners, I'm looking to add

Re: [rules-users] Dynamic ValueRangeProvider

2013-09-10 Thread Geoffrey De Smet
On 09-09-13 16:13, Andrew Varner wrote: Optaplanners, I'm looking to add some dynamic goodness to ValueRangeProvider. The only way I see to specify a ValueRangeProvider is via annotation. I'd like to be able to generate the id and Collection of candidate values dynamically. Is it

Re: [rules-users] What are Recursion Rules. Any example

2013-08-20 Thread Geoffrey De Smet
rule "infection spreads" when $a : Person (infected = true) $b : Person (infected = false, within100meters($a) = true) then modify ($a) { infected = true } end On 20-08-13 11:00, Mauricio Salatino wrote: Hi, why do you

Re: [rules-users] [Drools] conflict Resolver 'org.drools.core.conflict.DepthConflictResolver' not found

2013-08-19 Thread Geoffrey De Smet
Looks like a bug in Drools itself. Try upgrading to CR1 and create a JIRA: https://issues.jboss.org/browse/DROOLS Would be nice if you can find a consistent way to reproduce it (presuming it's not a race condition). On 19-08-13 15:07, Sandeep Bandela

Re: [rules-users] Optaplanner, loading drl from filesystm not off classpath

2013-08-07 Thread Geoffrey De Smet
See the docs on setKieBase() (optaplanner 6+) or setRuleBase(optaplanner 5.5 or lower) On 07-08-13 05:54, meganwoods wrote: Hi, Is it possible to load drl files from the filesystem without them being on the classpath. I can create an XML solver factory using a stream from the constructor

Re: [rules-users] OptaPlanner: score corruption when using insertLogical with custom objects

2013-08-03 Thread Geoffrey De Smet
This time a genuine bug was reproduced and it's fixed for 6.0.0.CR2 (thanks to Mario). Thanks for reporting pvandenbrink :) On 25-07-13 14:57, pvandenbrink wrote: ge0ffrey wrote Yes, please reopen the jira issue if you're able to reproduce it with 6.0.0.Beta5 or higher. Done, I've modified

Re: [rules-users] Scheduling Application and Optaplanner

2013-08-01 Thread Geoffrey De Smet
On 31-07-13 16:36, marchias wrote: Just started researching OptaPlanner. Loaded examples in Eclipse and got them running. I'm interested in extending the Nurse rostering example to work with a scheduling application I have written. I have some interesting constraints though that wanted to

Re: [rules-users] Building jbpm desginer from github

2013-08-01 Thread Geoffrey De Smet
Jenkins reports that it has build jbpm-designer 6.1.0-SNAPSHOT successfully https://hudson.jboss.org/hudson/view/Drools%20jBPM/ And the 6.1.0-SNAPSHOT is available on jboss nexus:

Re: [rules-users] Scheduling Application and Optaplanner

2013-08-01 Thread Geoffrey De Smet
OptaPlanner is POJO based, so there are probably several ways you can go with it: 1) use a project like jni4net to directly communicate based on those pojo's. Ask on their mailing lists if such things are possible and how to do this. 2) Expose OptaPlanner's POJO's as XML in a REST service.

Re: [rules-users] OptaPlanner: score corruption when using insertLogical with custom objects

2013-07-25 Thread Geoffrey De Smet
On 24-07-13 17:05, pvandenbrink wrote: Thanks for looking into it, and you're right. Looks like I made an error in the reproducer project, sorry... The original code didn't have this equals/hashcode problem. After fixing this in the reproducer, the example schedule works fine though, so I'll

Re: [rules-users] OptaPlanner: score corruption when using insertLogical with custom objects

2013-07-24 Thread Geoffrey De Smet
() { return new HashCodeBuilder() .append(getTimeslot()) // == must be Family .append(getTimeslot()) .toHashCode(); } On 19-07-13 11:56, Geoffrey De Smet wrote: Thanks. The zip looks good and isolated (= usable for me). I might look into it after PLANNER-160 is done next week. On 19-07-13

Re: [rules-users] OptaPlanner: score corruption when using insertLogical with custom objects

2013-07-19 Thread Geoffrey De Smet
Thanks. The zip looks good and isolated (= usable for me). I might look into it after PLANNER-160 is done next week. On 19-07-13 11:25, pvandenbrink wrote: Ok, I've created a small reproducer and attached it to this issue: https://issues.jboss.org/browse/PLANNER-182 -- View this message

Re: [rules-users] Wanted Patterns in Planner/Rostering

2013-07-18 Thread Geoffrey De Smet
On 18-07-13 05:30, john poole wrote: I'm using the Nurse Rostering code as a base and adding my own rules, etc. Are there any examples of wanted patterns? It looks like all the input files, and the drl rules are all for unwanted patterns. I just want to make sure I'm not missing something

Re: [rules-users] VRP with multi-stream and heterogeneous fleet?

2013-07-18 Thread Geoffrey De Smet
That shouldn't pose a problem at all. Start from the VRP example. One way would be to change the domain model so every Vehicle has one VehicleType. Then adjust the score constraints to take that VehicleType into account. Another way to model it is to have each Vehicle have a trashCapacity,

Re: [rules-users] Unable to get LastModified for ClasspathResource

2013-07-18 Thread Geoffrey De Smet
On 18-07-13 10:04, sottostee wrote: Unable to get LastModified for ClasspathResource This rings a bell to me, but from a long time ago. Are you using 5.5 or higher? ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] OptaPlanner: score corruption when using insertLogical with custom objects

2013-07-17 Thread Geoffrey De Smet
On 17-07-13 11:59, pvandenbrink wrote: ge0ffrey wrote Do you have this issue in 5.4 too? E.g.: the 5.4 equivalent of full assert (TRACE) does not detect score corruption? I've tried this and actually, yes, it happens with TRACE in 5.4 as well. So it's not an issue introduced by the upgrade

Re: [rules-users] Problems with the Mrs Manners Benchmark

2013-07-17 Thread Geoffrey De Smet
File a jira, this sounds like a bug in the example: https://issues.jboss.org/browse/DROOLS PS: Miss manners is a poor example to benchmark btw. It's NP complete so a slow rule engine with a smart manners approach will beat a fast rule engine with a basic

Re: [rules-users] OptaPlanner: score corruption when using insertLogical with custom objects

2013-07-17 Thread Geoffrey De Smet
On 17-07-13 13:02, pvandenbrink wrote: ge0ffrey wrote The 7 one probably got inserted with it didn't reach to 5 yet. That was a good logicalInsertion. The issue is, why didn't it get retracted when a move made changes so it did reach to 5? I've added a printline in the rules xml file before

Re: [rules-users] Optaplanner: Shadow Variables vs insertLogical

2013-07-16 Thread Geoffrey De Smet
On 16-07-13 15:22, jonathan.labin wrote: It turns out that the score corruption was caused by something unrelated. In fact, a rule that will be removed in the re-design I am asking about. If I see a similar problem after the re-design I'll pursue your suggestions to determine the reason.

Re: [rules-users] VRP with ExamTimeTabling

2013-07-16 Thread Geoffrey De Smet
On 16-07-13 15:55, saindofora30 wrote: It would be possible to show how I can do to make the routing calculation including information days in the vehicle? We don't have an example of this, but I still don't see why my previous suggestion wouldn't work. Have you tried it? Without summarized,

Re: [rules-users] OptaPlanner: score corruption when using insertLogical with custom objects

2013-07-16 Thread Geoffrey De Smet
On 16-07-13 16:24, pvandenbrink wrote: Hi, I've been using Drools Planner with success for a while for our Conversation planning tool. It's used by schools to plan conversations between teachers and parents of schoolgoing children. Great to hear :) Sounds like an interesting use case story.

Re: [rules-users] Optaplanner: Shadow Variables vs insertLogical

2013-07-11 Thread Geoffrey De Smet
On 11-07-13 14:57, jonathan.labin wrote: ge0ffrey wrote But the first question is why you're getting score corruption the first place. Of course I'm not sure of the cause of the score corruption. I assume that it is due to my rules using an accumulator over Planning Entities in the When

Re: [rules-users] VRP with ExamTimeTabling

2013-07-11 Thread Geoffrey De Smet
Start from the VRP example. Instead of having a Vehicle as the planning anchor (see docs on chained planning variables), use a VehicleDayCombination as the planning anchor. a VehicleDayCombination has 1 Vehicle and 1 Day. On 11-07-13 17:00, saindofora30 wrote: Hi It is possible to use the

Re: [rules-users] Drools Planner Version 5.5.0 vs Drools OptaPlanner Version 6.0.0

2013-07-10 Thread Geoffrey De Smet
On 10-07-13 11:44, Wolfgang Laun wrote: The Drools Documentation Alibi contains also notes on OptaPlanner here: http://docs.jboss.org/drools/release/6.0.0.Beta3/droolsjbpm-introduction-docs/html_single/index.html#releaseNotes_6.0.0_OptaPlanner +1 Also the social media (G+, twitter and

Re: [rules-users] Spam

2013-07-09 Thread Geoffrey De Smet
A few days ago, I banned a bunch of spam users and deleted their messages on nabble. But apparently it's mopping the floor with the tap running... If you don't like subscribing to the e-mail list (too many mails in your inbox), take a look at gmane's newgroups instead nabble:

Re: [rules-users] Modeling Cargo Pickup in Optaplanner

2013-07-08 Thread Geoffrey De Smet
I might not fully understand your domain, by how about something like this? abstract class Cargo {} class Sofa extends Cargo {} class Desk extends Cargo {} class Truck {} class CargoAssignment { Cargo cargo; Truck truck; // @PlanningVariable on it's getter } class CargoSolution

Re: [rules-users] [OptaPlanner] Multiple planning entities and dynamic planning variables.

2013-07-05 Thread Geoffrey De Smet
For a lab component of a single course, I 'd probably create n LabTeacherAssignment planning entity instances and m LabAssistentAssignment planning entity instances. Too bad n doesn't necessarily equal m or is somehow related (then you could just make them n Lectures for

Re: [rules-users] Spam

2013-07-01 Thread Geoffrey De Smet
I am using this mailing list through gmane's newsgroup servers and I never see any spam. Are you talking about the nabble interface? On 01-07-13 14:41, rjr201 wrote: Is there anything we can do about all the spam that's been posted on this forum? It's starting to get unusable. -- View

[rules-users] 6.0.0.Beta4 broken on windows

2013-06-30 Thread Geoffrey De Smet
I've also reproduced the issue on an old Windows machine. We'll figure out tomorrow (Monday) what's causing it: either the way that OptaPlanner builds a KieBase, or simply Drools's KieBase itself. https://issues.jboss.org/browse/DROOLS-183 It's a critical issue. I 've already reverted the

Re: [rules-users] Time Scheduling - Routing (OptaPlanner)

2013-06-29 Thread Geoffrey De Smet
On my system (linux) it works fine, this must a bug, probably in the Drools's new KieBase stuff. Please track this issue: https://issues.jboss.org/browse/DROOLS-183 I 'll check with Mario what can cause this. The log you send in is very helpful. If you could also add a full step-by-step

Re: [rules-users] Time Scheduling - Routing (OptaPlanner)

2013-06-28 Thread Geoffrey De Smet
1) Build from master (git clone + mvn clean install) 2) open the VRP example, click on the button import, select subdir timewindowed and open a solomon instance :) Beta4 is being uploaded as we speak. Just follow the 2) steps with with that zip too. Problem is, the timewindowed gui isn't pretty

Re: [rules-users] OptaPlanner: unsolved score constraint failure messages

2013-06-26 Thread Geoffrey De Smet
1) yes Take a look if this section in the manual solves your questions: 5.5. Reusing the score calculation outside the Solver http://docs.jboss.org/drools/release/latest/optaplanner-docs/html_single/index.html#d0e4529 2) For Beta4 (which will be released soon),

Re: [rules-users] Drools Planner/Optaplanner suitability

2013-06-26 Thread Geoffrey De Smet
On 26-06-13 17:53, droolster wrote: Hello, Please can the community tell me if Drools Planner/Optaplanner is the best tool to use for the problem described below: 1. For a list of items, I assign a point depending on the value of each item. For different values of an item, I will assign a

Re: [rules-users] OptaPlanner Guvnor integration

2013-06-25 Thread Geoffrey De Smet
talation directory. Without that I still get NoClassDefFoundError while importing my domain in Guvnor. Best regards W dniu 2013-06-18 10:52, Geoffrey De Smet pisze: Is it generally good ide

Re: [rules-users] Time Scheduling - Routing (OptaPlanner)

2013-06-21 Thread Geoffrey De Smet
Yes and 6.0.0.Beta4 will make it a lot easier thanks to feature PlanningVariableListener. Actually, Beta4's vehicle routing example now also support time windows. Here's a screenshot: https://plus.google.com/112811208792575157490/posts/7nnWZinXK8v (I still need to work on visualizing it

Re: [rules-users] Time Scheduling - Routing (OptaPlanner)

2013-06-21 Thread Geoffrey De Smet
Just did a blog about the new feature http://blog.athico.com/2013/06/shadow-variables-planningvariablelisten.html On 21-06-13 10:27, Geoffrey De Smet wrote: Yes and 6.0.0.Beta4 will make it a lot easier thanks to feature PlanningVariableListener. Actually, Beta4's vehicle routing example now

Re: [rules-users] RE : Identity Mode?

2013-06-20 Thread Geoffrey De Smet
Good idea, but that will make it fire twice if you insert 2 Persons A and B: once for A-B and once for B-A. I often use this instead: Person ($id : id) Person (id $id) On 20-06-13 16:13, Bruno FREUDENSPRUNG wrote: Hi, I think you are talking about the assert behavior:

Re: [rules-users] OptaPlanner Guvnor integration

2013-06-17 Thread Geoffrey De Smet
On 17-06-13 15:33, Bartek wrote: Hello, How Optaplanner and Guvnor should be integrated? I am using Drools 5.5.0.Final. I have configuration with spring so I have access to KnowledgeBase. I found in documentation:

Re: [rules-users] Drools and Guvnor 5.0.1 source code

2013-06-13 Thread Geoffrey De Smet
5.0.1's tag is in svn (although the commits are in github too, the tag is not) Go to the website, to the "source code" page. On 12-06-13 23:41, jian zhi wrote: Hi, Is there a way to get Drools and Guvnor 5.0.1

Re: [rules-users] [drools-planner] please advice on IntConstraintOccurrence weight

2013-06-06 Thread Geoffrey De Smet
On 06-06-13 10:22, Michiel Vermandel wrote: Hi, (using drools-planner 5.5.0.Final) I'm struggling with assigning weights to IntConstraintOccurrence in a rule's

Re: [rules-users] [drools-planner] please advice on IntConstraintOccurrence weight

2013-06-06 Thread Geoffrey De Smet
t painless. Thanks - http://www.codessentials.com - Your essential software, for free! Follow us at http://twitter.com/#!/Codessentials From: Geoffrey De Smet

Re: [rules-users] Multi-dimentional planning in C#

2013-06-06 Thread Geoffrey De Smet
On 06-06-13 18:17, Wierdbeard65 wrote: Hi, I came across the OptaPlanner site / product as part of researching solutions to a project I am working on for my employer. In essance, it's a timetabling system, however all of the solutions I have found so far don't actually go far enough! I

Re: [rules-users] Lazy Planning Value Validation

2013-06-04 Thread Geoffrey De Smet
On 03-06-13 21:37, jonathan.labin wrote: Thanks for the feedback. I'll look into DefaultDecider to see if I can make a version that suits this need and hold my breath for multi-step score evaluation. For clarity I'd like to address your comment below: ge0ffrey wrote If the assignment

Re: [rules-users] OptaPlanner Questions

2013-06-03 Thread Geoffrey De Smet
On 02-06-13 17:38, Barry Dresdner wrote: Hi - Forgive me if this not the correct mailing list for my questions. For OptaPlanner (=Drools Planner) this is the correct mailing list :) We 'll be moving to our own

Re: [rules-users] OptaPlanner Questions

2013-06-03 Thread Geoffrey De Smet
On 03-06-13 12:31, Barry Dresdner wrote: Thanks for the comprehensive response. Just for the sake of comparison, can you tell me which products would be similar to OptaPlanner? I did some digging and only came

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

2013-06-03 Thread Geoffrey De Smet
Currently, Planner only supports a single value for a @PlanningVariable property. Here's the issue for that: But in your case, I 'd just do it like this: class Recipe extends Solution { ListInredient ...; ListAssignment ...; // of size 5 ...

Re: [rules-users] Corrections to documentation

2013-06-03 Thread Geoffrey De Smet
Find the xml file of that chapter on github: https://github.com/droolsjbpm/drools/tree/master/drools-docs Log in to github, and click on "edit" on the top right of the github page for that xml file. Submit it and it will automatically create a pull request :)

Re: [rules-users] Lazy Planning Value Validation

2013-06-03 Thread Geoffrey De Smet
On 03-06-13 17:04, jonathan.labin wrote: I am using Optaplanner 6.0.0.beta2. Like most domains, I am working where it is possible that a given planning value is invalid to assign to some planning entities. However, it is impractical to perform a thorough validity check against every

Re: [rules-users] Drools 6.0.0.2 Beta uses different dependencies to antlr version

2013-05-31 Thread Geoffrey De Smet
This is due to a bug in antlr 3.3 itself. See https://issues.jboss.org/browse/DROOLS-157 Supposedly 3.4 fixes it, be we haven't upgraded yet. On 31-05-13 16:18, dastraub wrote: mvn dependency:tree ... INFO] +- org.drools:drools-compiler:jar:6.0.0.Beta2:provided [INFO] | +-

Re: [rules-users] [Optaplanner] No-arg constructor for BendableScoreDefinition

2013-05-28 Thread Geoffrey De Smet
This fix will be in 6.0.0.Beta3:https://github.com/droolsjbpm/optaplanner/commit/63b1f7284fad495386ee9f34238dc3b69cb9bb98 Solution: use XStreamBendableScoreConverter instead On 24-05-13 21:28, jonathan.labin wrote: I have switched to 6.0.0.beta2 and I am still receiving a similar error. While

Re: [rules-users] [Optaplanner] No-arg constructor for BendableScoreDefinition

2013-05-28 Thread Geoffrey De Smet
De Smet wrote: This fix will be in 6.0.0.Beta3:https://github.com/droolsjbpm/optaplanner/commit/63b1f7284fad495386ee9f34238dc3b69cb9bb98 Solution: use XStreamBendableScoreConverter instead On 24-05-13 21:28, jonathan.labin wrote: I have switched to 6.0.0.beta2 and I am still receiving

Re: [rules-users] [Optaplanner] No-arg constructor for BendableScoreDefinition

2013-05-25 Thread Geoffrey De Smet
Thanks for the feedback. If there's a jira please reopen it. Beta3 is going out soon, hopefully I 'll have time to fix it on Monday or Tuesday to make that release. Once the projectscheduling example is migrated, which uses BendableScore, these errors will be caught in our automated testing.

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

2013-05-16 Thread Geoffrey De Smet
I presume you're building your own KieBase and setting it with setKieBase() ? If so, that KieBase is empty or corrupted or something, but it doesn't fail-fast either apparently. Look at this code for inspiration (that's where I ran into it too):

Re: [rules-users] Using Java Rule Engine JSR-94

2013-05-16 Thread Geoffrey De Smet
The last release revision of JSR-94 was in 2004. http://www.jcp.org/en/jsr/detail?id=94 On 16-05-13 11:39, Stephen Masters wrote: JSR-94 is just an API, not an implementation. A bit like if you use JPA, you still need to have an implementation layer such as Hibernate, and DB-specific

Re: [rules-users] Optaplanner - Multiday / Periodic Vehicle Routing Problems

2013-05-15 Thread Geoffrey De Smet
On 15-05-13 03:35, Raoul Cousins wrote: I am interested in solving periodic vehicle routing problems and other multi-day (but static and deterministic) vehicle routing variants. These

Re: [rules-users] Optaplan6.0.0Beta1:chaining-simpleScore OK, DRL Score corruption - VRP time windows

2013-05-15 Thread Geoffrey De Smet
Phreak isn't ready for general consumption yet :) We're working hard to make it ready though. Regardless, the fact that Phreak doesn't expose this issue is a coincidence. There's actually a potential issue in OptaPlanner: https://issues.jboss.org/browse/PLANNER-158 Given the recent uptake in

Re: [rules-users] [Planner] Planning problem - looking for tips, and advices for complicated case

2013-05-13 Thread Geoffrey De Smet
On 10-05-13 15:40, Mz wrote: I think I can explain briefly its practical usage. This collections, I mentioned before, are providers who offer different goods with configurable parameters (our planning variables). Clients can order goods with specific parameters (parameters specified by

Re: [rules-users] [Planner] Planning problem - looking for tips, and advices for complicated case

2013-05-09 Thread Geoffrey De Smet
On 09-05-13 16:00, Mz wrote: Hello, I'm having a problem to plan my solver, I'm wondering if it's possible to configure the solver, so that it picks the best solution from multiple collections of planning variables. Here is an example, to be more precise: Interesting use case. Are you free to

Re: [rules-users] [planner] documentation

2013-04-25 Thread Geoffrey De Smet
Fixed on master for 6.0.0.CR1 https://github.com/droolsjbpm/optaplanner/commit/c593ba051d01a922029ede1e2ef8859aff4bcf5d Thanks for reporting :) On 24-04-13 20:15, Eric Keller wrote: Hi everyone, I am going through your

Re: [rules-users] [Optaplanner] No-arg constructor for BendableScoreDefinition

2013-04-25 Thread Geoffrey De Smet
On 25-04-13 16:18, jonathan.labin wrote: Is there an example that uses BendableScore? I'm trying to convert my app from using HardSoftScore to BendableScore and I've run into my first issue: Changing from: @XStreamConverter(value = XStreamScoreConverter.class, types =

Re: [rules-users] Optaplan6.0.0Beta1:chaining-simpleScore OK, DRL Score corruption

2013-04-22 Thread Geoffrey De Smet
For the record https://issues.jboss.org/browse/PLANNER-150 On 19-04-13 16:21, Paul T wrote: Hi Geoffrey Again thanks for quick response - I will do so although a public unit test is beyond me as I am no expert in Java or Drools but will provide a simple stripped run example. The 4 entities,1

Re: [rules-users] Optaplan6.0.0Beta1:chaining-simpleScore OK, DRL Score corruption

2013-04-19 Thread Geoffrey De Smet
Ok, this is starting to look like a genuine bug in drools/optaplanner. Would it be possible to get a reproducer of this to me? Easy way: Zip up (part of) your project, attach it to jira issue for optaplanner http://issues.jboss.org/browse/PLANNER and include detailed instructions how to

Re: [rules-users] Optaplan6.0.0Beta1:chaining-simpleScore OK, DRL Score corruption

2013-04-17 Thread Geoffrey De Smet
Hi Paul, Can you copy paste your rule? On 17-04-13 12:15, Paul T wrote: Requirement:Equip to tasks scheduling.Earlier tasks may not exceed a waittime to latest endtime for each job. 2 JOBs to plan each with 2 identical TASKs with only 1 EQUIPMENT anchor: J1 comprises T1,T2and

Re: [rules-users] [Drools Planner] Multi depot CVRP / CVRPTW

2013-04-11 Thread Geoffrey De Smet
mats.no...@gmail.com wrote: Thanks Geoffrey, On Mon, Mar 4, 2013 at 4:33 PM, Geoffrey De Smet ge0ffrey.s...@gmail.com wrote

Re: [rules-users] Error using 5.5.1 built with 5.5.0 Final jars

2013-04-09 Thread Geoffrey De Smet
One way that would also work is to just build everything from source git clone ...droolsjbpm-build-bootstrap cd droolsjbpm-build-bootstrap/script ./git-clone-others.sh ./mvn-all.sh clean install -DskipTests -Dfull On 09-04-13 09:26, Stephen Masters

[rules-users] [Planner] How to fix score corruption (answer)

2013-04-06 Thread Geoffrey De Smet
another bug. Hope that helps :) wkr, Geoffrey De Smet http://www.optaplanner.org ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] [Planner] How to fix score corruption (answer)

2013-04-06 Thread Geoffrey De Smet
another bug. Hope that helps :) wkr, Geoffrey De Smet http://www.optaplanner.org ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] planner: documentation about subChain-MoveSelectors

2013-04-04 Thread Geoffrey De Smet
Documented for 6.0.0.CR1 http://github.com/droolsjbpm/optaplanner/compare/489f2ac...1ea147f Op 02-04-13 17:18, roman.stumm schreef: The only example that uses a SubChainChangeMoveSelector and a SubChainSwapMoveSelector is the vehicleRoutingProblem. The travelling-salesman-problem (which is

Re: [rules-users] [planner] can the solving process be carried out in a multi-thread way?

2013-04-02 Thread Geoffrey De Smet
Op 02-04-13 17:11, roman.stumm schreef: We are experiencing that the performance for a chained-planningvariable (like vehicleRouting) starts to decrease in our app when there are 200 or more stops on a tour, while there is only one of the CPUs doing the work. We are using drools-planner

Re: [rules-users] planner: Solver-Phase after a ProblemFactChange?

2013-04-02 Thread Geoffrey De Smet
Op 02-04-13 17:23, roman.stumm schreef: When the solver is in the localSearch phase and a problem-fact-change occurs: will the solver jump back into the construction-heuristics phase or continue with the local search? it will jump back, but only change the facts which have a null planning

Re: [rules-users] drools-planner MoveIteratorFactory vs SelectionFilter

2013-04-02 Thread Geoffrey De Smet
Op 02-04-13 17:33, roman.stumm schreef: Is there any example for a SelectionFilter or a MoveListFactory/MoveIteratorFactory with a chained-PlanningEntity problem (e.g. vehiclerouting)? We are using drools-planner 5.5.0.Final. If not: should it be possible to implement the Move*Factory in the

Re: [rules-users] Planner: drl for Selection and Decreasing

2013-03-29 Thread Geoffrey De Smet
Op 29-03-13 14:15, Al Ferguson schreef: Thanks ge0ffrey. I successfully implemented hard constraints by following your tips. For soft constraints, I successfully implemented the highest availability rule. But it seems that among the examples provided, there is no situation similar to

Re: [rules-users] Planner: drl for Selection and Decreasing

2013-03-28 Thread Geoffrey De Smet
You could put that in a SimpleScoreCalculator and use scoreDirectorFactory's assertScoreDirector to assert any DRL you write. As for the DRL: for (final OrderLine planningEntity : orderSourcing.getOrderLineList()) { when OrderLine(...) if (allocatedResource == null) { when

Re: [rules-users] Cannot create XmlPullParser

2013-03-21 Thread Geoffrey De Smet
) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722) 2013/3/20 Geoffrey De Smet

Re: [rules-users] Cannot create XmlPullParser

2013-03-21 Thread Geoffrey De Smet
) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722) 2013/3/20 Geoffrey De Smet ge0ffrey.s...@gmail.com

Re: [rules-users] Selective TSP?

2013-03-20 Thread Geoffrey De Smet
Op 20-03-13 01:34, rengana schreef: Hi, i'm evaluating Drools Planner as a solver for a normal OP problem but i can't find any example of drools usage on problems with partial set as a feasible solution, all drools examples and use cases seems to always try to plan every object even if that

Re: [rules-users] Cannot create XmlPullParser

2013-03-20 Thread Geoffrey De Smet
Check WEB-INF/lib of the build war for the xml pull jar. Op 20-03-13 20:05, André Fróes schreef: Caused by: com.thoughtworks.xstream.io.StreamException: Cannot create XmlPullParser at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:60)

Re: [rules-users] org.xmlpull.v1.XmlPullParserException [Planner 5.5.0.Final]

2013-03-19 Thread Geoffrey De Smet
planner uses xstream xstream uses xmlpull. Check if the xml pull jar is in your classpath (looks like the xstream jar is in your classpath). You can find it in the planner's zip's binaries folder. Op 19-03-13 20:17, Andr Fres schreef:

[rules-users] Freezing repositories drools + droolsjbpm-knowledge on Friday 15-MAR-2013

2013-03-11 Thread Geoffrey De Smet
To fix the OSGi split-packages problem, we'll be freezing the following repositories this Friday 15-MAR-2013: droolsjbpm-knowledge drools A lot of package directory's will change on master. *Please make sure you 've pushed all your local changes by Thursday evening.* Don't push on Friday -

Re: [rules-users] Working on the complete solution set on Drools Planner

2013-03-07 Thread Geoffrey De Smet
Op 08-03-13 08:22, lbrito schreef: Hi, I am thinking about using Drools Planner for an internal project related to order scheduling. It would in essence be a jobshop where we have 3 main machines which are always followed on the same specific order (and we have release dates for each task).

Re: [rules-users] Planner 5.5.1 Immovable Planning entities

2013-03-04 Thread Geoffrey De Smet
Op 04-03-13 08:19, duggal schreef: Thank you - that does help. Where can I find the release plan for drools 6.0? I don't think the ever-changing release plan is publicized (except in IRC discussions :) 6.0.0.Alpha9 was deployed to the public jboss repo recently. We're probably releasing Beta1

Re: [rules-users] Planner 5.5.1 Immovable Planning entities

2013-03-02 Thread Geoffrey De Smet
Op 02-03-13 03:35, duggal schreef: As per my understanding the construction phase should also leave the immovable entity alone. Am I doing something incorrect? This is a known issue in 5.5.x :/ Is there a workaround to lock entities in 5.5.x? Can i insert these locked planning entities as

[rules-users] Score traps - better docs

2013-03-01 Thread Geoffrey De Smet
Several users complained about not understanding score traps, so for 6.0 I 've improved the docs about it. It also explains some way to deal with them.

Re: [rules-users] NoClassDefFoundError at config file

2013-03-01 Thread Geoffrey De Smet
Op 01-03-13 13:32, Andr Fres schreef: I'm importing my project to netbeans and I am having this exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/drools/compiler/DroolsParserException

Re: [rules-users] Planner 5.5.1 Immovable Planning entities

2013-03-01 Thread Geoffrey De Smet
Op 01-03-13 18:14, duggal schreef: I have certain planning entities that are locked and their planning variables should not change their current values. I am implementing this using the SelectionFilter that returns false if an entity is NOT to be moved. However I see that the Construction

Re: [rules-users] Drools 5.5 and Java 1.6 versus 1.7 Question

2013-03-01 Thread Geoffrey De Smet
I am using OpenJDK 1.7 to run Planner (which requires at least 1.6) and therefore drools. All planner stuff is compiled -source 1.6 and -target 1.6. I haven't tried a drools using project with -source 1.7 and -target 1.7 yet. If that fails (and you can verify that -source 1.6 and -target 1.6

Re: [rules-users] planner: when gets a solution cloned?

2013-02-28 Thread Geoffrey De Smet
s at http://twitter.com/#!/Codessentials From: Geoffrey De Smet ge0ffrey.s...@gmail.com To: Rules Users List rules-users@lists.jboss.org Sent: Thursday, February 28, 2013 8:28 AM Subject:

Re: [rules-users] Bad Gateway at http://www.jboss.org/drools

2013-02-28 Thread Geoffrey De Smet
They say it's fixed now. Op 27-02-13 15:53, Geoffrey De Smet schreef: Forwarded to our internal jboss.org team. Thanks for reporting. Op 27-02-13 14:15, Syargey schreef: I can't access http://www.jboss.org/drools http://www.jboss.org/drools for two days :-( The error message is sjown

Re: [rules-users] Newbie question. Possibilities for optimizing Employee Schedules

2013-02-28 Thread Geoffrey De Smet
Op 28-02-13 16:16, sanger schreef: I have an application that requires optimizing an Employee schedule. One of the criteria is that the schedule must remain as static as possible. In other words, when conditions change the system must make the minimum number of adjustments to the schedule to

Re: [rules-users] Bad Gateway at http://www.jboss.org/drools

2013-02-27 Thread Geoffrey De Smet
Forwarded to our internal jboss.org team. Thanks for reporting. Op 27-02-13 14:15, Syargey schreef: I can't access http://www.jboss.org/drools http://www.jboss.org/drools for two days :-( The error message is sjown: Bad Gateway We're experiencing a problem with one of the servers behind

Re: [rules-users] planner: when gets a solution cloned?

2013-02-27 Thread Geoffrey De Smet
Op 27-02-13 19:50, Michiel Vermandel schreef: Hi, I think a planning solution gets cloned in two different scenarios: 1) a better solution is found 2) the solver propagates from one solving phase to another.

Re: [rules-users] Planner: Is it possible to know which move was selected on step-end?

2013-02-22 Thread Geoffrey De Smet
much doomed in my eyes. Well, any ideas are welcome. Regards. - http://www.codessentials.com - Your essential software, for free! Follow us at http://twitter.com/#!/Codessentials *From:* Geoffrey De Smet

Re: [rules-users] 'Drools Planner-Vehicle routing in VisualStudio.Net 2010/2012

2013-02-21 Thread Geoffrey De Smet
Only if you're really masochistic ;) No, VisualStudio doesn't support Java 1.6 or higher (last time I checked). Use IntelliJ ( http://www.jetbrains.com/idea/ ), Eclipse or Netbeans: http://docs.jboss.org/drools/release/5.5.0.Final/drools-planner-docs/html_single/index.html#d0e288 Op 21-02-13

Re: [rules-users] Planner: Is it possible to know which move was selected on step-end?

2013-02-21 Thread Geoffrey De Smet
Officially, in the public api (aka the user facing api), there's no such listener. Why would you need this at runtime? Open an issue: if there's a good reason to need this, we can talk about adding it to the public api. https://issues.jboss.org/browse/PLANNER That being said and handled

<    1   2   3   4   5   6   7   >