Re: [rules-users] Drools Solver - Multiple Entries ScoreDrl

2010-04-29 Thread Antonio Neto
I think that there was a error in a package. It works now. Thank you and congratulations by the framework 2010/4/28 Geoffrey De Smet ge0ffrey.s...@gmail.com That should work. Check your getFacts() method. If you can reproduce on trunk (and prove it by putting an error in the DRL which isn't

Re: [rules-users] Drools Solver - Multiple Entries ScoreDrl

2010-04-29 Thread shekharputtur puttur
Hi All, I am using drools API, and developed a webservice out of it. I created rule binary package using BRMS Guvnor. I used RuleAgent to acces the properties file. ie RuleAgent agent = RuleAgent.newRuleAgent(/application.properties); application.properties file was stored in current working

Re: [rules-users] Drools Solver - Multiple Entries ScoreDrl

2010-04-29 Thread Premkumar Stephen
Hello Shekhar, 1) You need to read http://www.jboss.org/drools/lists.html (the list of todos) if you expect folks to help you. You have replied to a totally different thread!! 2) You don't need to create a webservice out of the Drools API. There is already one, called drools-server. Read

[rules-users] Drools Solver - Multiple Entries ScoreDrl

2010-04-28 Thread Antonio Neto
Hi all, In the Drools Solver documentation there is a point that say we can add multiples entries ScoreDrl. But when I try do that, Drools Solver uses just one entry to calculate the score, and I need put 2 files in the input. Anybody could help me, please? Thank you

Re: [rules-users] Drools Solver - Multiple Entries ScoreDrl

2010-04-28 Thread Geoffrey De Smet
That should work. Check your getFacts() method. If you can reproduce on trunk (and prove it by putting an error in the DRL which isn't loaded), feel free to open an issue. With kind regards, Geoffrey De Smet Antonio Neto schreef: Hi all, In the Drools Solver documentation there is a point

[rules-users] drools-solver recover the score of last step

2010-01-22 Thread dmzpippo-drools
Hi all, is possible in a DRL file, useded for droos-solver, recover the score of last step? I need it because with the rule I calculate a function score f(n); to diverrsificate the research if f(n) is bigger then f(n) of last step then add a penality... regards

Re: [rules-users] drools-solver NPE in DefaultSimpleScore

2009-11-27 Thread Andrew Waterman
Hi Geoffrey, I'll check that out today for you and let you know what I find out with my case. I'm using the following solver dependency: dependency groupIdorg.drools.solver/groupId artifactIddrools-solver-core/artifactId version5.1.0.M1/version

Re: [rules-users] drools-solver NPE in DefaultSimpleScore

2009-11-27 Thread Andrew Waterman
Hi Geoffrey, My bad; when I migrated to the new Score implementation I failed to update my code to properly clone scores in my cloneSolution() implementation. Thanks for letting me know where to look! best wishes, Andrew On Nov 26, 2009, at 12:16 PM, Geoffrey De Smet wrote: Hi Andrew,

[rules-users] drools-solver NPE in DefaultSimpleScore

2009-11-26 Thread Andrew Waterman
Hi, I migrated some solver code that I had working on 5.0M4 to the 5.1.0 implementation. I'm now seeing the following while running the solver: java.lang.NullPointerException at org.drools.solver.core.score.DefaultSimpleScore.compareTo (DefaultSimpleScore.java:73) at

Re: [rules-users] drools-solver NPE in DefaultSimpleScore

2009-11-26 Thread Geoffrey De Smet
Hi Andrew, I can't reproduce your problem. The BestSolution is not null although the best score is. The LocalSearchSolverScope cannot have a best solution and not a best score. Could you debug to see where LocalSearchSolverScope.setBestSolution() is called and why

Re: [rules-users] drools-solver NPE in DefaultSimpleScore

2009-11-26 Thread Geoffrey De Smet
By the way, if you turn on info logging, it logs each time a new best solution is found. If you see a null in there, that's the problem. However, that logging guarantee doesn't apply if you hooked in a custom BestSolutionRecaller etc With kind regards, Geoffrey De Smet Geoffrey De Smet

Re: [rules-users] Drools solver info = provide DSL instead of DRL to Drools Solver

2009-11-22 Thread Geoffrey De Smet
dmzpippo-dro...@yahoo.it schreef: Hi Geoffrey, I have modified the LocalSearchSolverConfig class to accept the scoreDsl tag. Thanks for the patch! If you want credit, state your full name, and I 'll add an @author tag in the javadoc. To use this tag need gonfigure the XML solverConfig file

Re: [rules-users] Drools solver info = provide DSL instead of DRL to Drools Solver

2009-11-17 Thread dmzpippo-drools
Hi Geoffrey, I have modified the LocalSearchSolverConfig class to accept the scoreDsl tag. To use this tag need gonfigure the XML solverConfig file adding the path of Drl file and Dsl file associated in two line consecutive in the configuration file. This code is not the best but is a start

Re: [rules-users] Drools solver info = provide DSL instead of DRL to Drools Solver

2009-11-17 Thread dmzpippo-drools
Hi Geoffrey, I have modified the LocalSearchSolverConfig class to accept the scoreDsl tag. To use this tag need gonfigure the XML solverConfig file adding the path of Drl file and Dsl file associated in two line consecutive in the configuration file. This code is not the best but is a start

Re: [rules-users] Drools solver info = provide DSL instead of DRL to Drools Solver

2009-11-12 Thread Geoffrey De Smet
Hi Marco, [I've send this answer to the drools user list, please post any follow ups on the user list instead of mailing it directly to me. You can use nntp://news.gmane.org #gmane.comp.java.drools.user if you want to keep your mailbox clean.] Drools Solver's xml configuration doesn't support

[rules-users] [drools-solver] help for defining my drools model / moves

2009-06-29 Thread Laurent Michenaud
Hi, Here is my test : I have an appointment to schedule on a customer availability. I have a list of customer availabilities. A customer availability is a period. An appointment needs an exact number of persons. A resource is composed of persons ( between 1 and n ) and has availabilities too.

[rules-users] drools solver for 2d knapsack problem

2009-05-08 Thread Olaf Raether
Hey , i would like to use drools solver for a 2d knapsack problem. Has anyone expirience with that ? Is drools solver made for such a task ? Thank for hints Olaf Raether ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] drools solver for 2d knapsack problem

2009-05-08 Thread Wolfgang Laun
Rectangles or simple polygons or worse? -W On Fri, May 8, 2009 at 9:02 AM, Olaf Raether o.raet...@epro.de wrote: Hey , i would like to use drools solver for a 2d knapsack problem. Has anyone expirience with that ? Is drools solver made for such a task ? Thank for hints Olaf Raether

Re: [rules-users] drools solver for 2d knapsack problem

2009-05-08 Thread Olaf Raether
Rectangles within a Rectangle OR Wolfgang Laun-2 wrote: Rectangles or simple polygons or worse? -W On Fri, May 8, 2009 at 9:02 AM, Olaf Raether o.raet...@epro.de wrote: Hey , i would like to use drools solver for a 2d knapsack problem. Has anyone expirience with that ? Is drools

Re: [rules-users] drools solver for 2d knapsack problem

2009-05-08 Thread Wolfgang Laun
I've researched this, a long time ago (trying to find a solution for a problem from the worse class). Even then, several results could be found in the literature for the cutting sheet problem for rectangles, showing that certain parameters (w.r.t. to rectangle dimensions being multiples of each

Re: [rules-users] drools solver for 2d knapsack problem

2009-05-08 Thread Olaf Raether
I think it´s more a knapsack problem. And the rectangles have to follow some business rules, so that´s the reason try to using solver. Here´s an image of the problem. http://www.nabble.com/file/p23443994/2dknapsack.jpg 2dknapsack.jpg The big rectangle is the load area of a truck und the small

Re: [rules-users] drools solver for 2d knapsack problem

2009-05-08 Thread Wolfgang Laun
That's indeed more like a problem for using rules (and far from the plain cutting sheet I had in mind), From the examples, itc2007 and lessonsschedule might give you an idea how to approach your problem. -W On Fri, May 8, 2009 at 1:05 PM, Olaf Raether o.raet...@epro.de wrote: I think it´s

[rules-users] Drools-solver: upgrading recipe for backwards incompatible changes in 5.0.1

2009-04-27 Thread Geoffrey De Smet
Hi all, Just a heads up: drools-solver (not drools itself) will have a couple of backwards incompatible changes in 5.0.1, but they are easy to fix with the upgrading recipe:

[rules-users] drools-solver [StartingSolutionInitializer]

2009-02-17 Thread Andrew Waterman
Hi, Thanks for the rules suggestions, using a simple generated id has radically improved my solver times (and my scoring). I'm now looking into using the StartingSolutionInitializer code to feed startingSolutions into the solver. I'm a little confused about the intended functionality in

[rules-users] drools-solver (initialization and starting score)

2009-02-12 Thread Andrew Waterman
Hi, I've been looking through my solver logs and on a problem i have posed, the solver seems to first initialize and setup a best score: INFO: Initialization time spend (3) for score (-504.0). Updating best solution and best score. However, this score is not correct. I use collect

[rules-users] Drools-solver performance optimizations?

2009-02-11 Thread Wim Vancroonenburg
Hi, I'm a student currently evaluating Drools Solver for my dissertation. I am currently trying to solve an optimization problem with two different solvers (one of which is Drools Solver) and I am comparing the results with earlier obtained results from literature. However I am having some

Re: [rules-users] Drools-solver performance optimizations?

2009-02-11 Thread Andrew Waterman
Hi Wim, I'm just starting to use the solver as well on a project. Have you ensured that the algorithm implemented by the other solver is the same as the local search your using for drools-solver? You may want to think about tuning that piece, by switching to Geoffrey's tabu

[rules-users] drools-solver -- logger error (slf4j binding)?

2009-02-11 Thread Andrew Waterman
Hi, I'm using the drools-solver.M5 build through Maven and have gotten the following error while running my project: SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder. SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. I've checked my

Re: [rules-users] Drools-solver -- solution questions

2009-02-07 Thread tim tim
hi you could use a solution taboo, on all solutions found so far and let the solver solve again. the problem is that you never know when to stop this algorithm. that is, when you found the last valid solution. but you could stop the solver after a certain amount of time and decide that you have

[rules-users] drools-solver results question

2009-02-05 Thread Andrew Waterman
Hello, I'm starting to work with the drools-solver to help on a gaming project. Basically, we have a game that works in two modes: 1) a competitive game where humans (or agents) compete with one another on a well defined game board to achieve 24 points by using three (or four)

[rules-users] drools-solver XML schema/detailed description?

2009-02-05 Thread Andrew Waterman
Hi, My apologies for my earlier double post, I'm having some troubles with my mail client. I'm writing to see if anyone has any detailed information on an XML- schema, or, a more detailed break-down of the drools-solver configuration files. Basically, I'm trying to find out the set of

[rules-users] Drools-solver -- solution questions

2009-02-04 Thread Andrew Waterman
Hello, I'm starting to work with the drools-solver to help on a gaming project. Basically, we have a game that works in two modes: 1) a competitive game where humans (or agents) compete with one another on a well defined game board to achieve 24 points by using three (or four)

[rules-users] drools solver move factory crash

2008-10-13 Thread tim tim
hello the new version of the drools-solver supports multiple move factories. i happily split my move factory to take advantage of the relativeSelection parameter. now the problem is that not all move factories can produce moves for every possible current solution. and the

[rules-users] Drools-solver

2007-09-24 Thread Geoffrey De Smet
Drools-solver solves planning problems. It has moved to trunk and the reference manual is now available at: http://users.telenet.be/geoffrey/tmp/solver/manual/html_single/ It's still experimental though. We even made 2 blogs about it for the price of one:

Re: [rules-users] Drools-solver

2007-09-24 Thread Paul Browne
Geoffrey, In a bizarre co-incidence I had just finished reading the Drools solver docs. It's very good - it's taken one of the ideas that I'd been mulling over and implemented it a (good) way that makes me realise I'm hardly out of Kindergarten with this stuff :-) One comment on the