Re: [rules-users] modifying the problem facts while running the solver - Drools Planner

2012-08-17 Thread Garf
spinjala wrote THis is what is happening now with my sample solution that I am writing.. Once the solver finds that a workorder (WO1) couldn't be assigned to any resource in the list of resources (due to the constraints)... Well, it's a slightly different problem them. Planner's approach is

Re: [rules-users] Rule flows in Drools planner configuration?

2012-08-15 Thread Garf
spinjala wrote Is it possible to have a rule flow file that defines a set of rules (constraints) but executed in the order per the defined ruleflow.? I dont see any example doing that so I was wondering if it is possible at all to have the constraints defined with a rule flow file instead

Re: [rules-users] modifying the problem facts while running the solver - Drools Planner

2012-08-15 Thread Garf
spinjala wrote I tried setting the scoreAttained and maximum time allowed to spend in my termination configuration, but none seems to stop the solver finding the solution that violates ALL constraints and hence throws a negative hard score. Is this the only way to do it or any other way is

Re: [rules-users] Any additional (better) documentation for the examples included in Drools Planner product?

2012-08-15 Thread Garf
spinjala wrote We have been having real hard time understanding the examples with such limited/no documentation about the examples that are included in the product. Did someone find any other documentation on them apart from the 5-6 paragraphs mentioned in the reference manual? Also, we

Re: [rules-users] Drools Planner changing problem fact

2012-07-17 Thread Garf
last month, Ralph wrote: /All the examples in the drools-planner-examples seem to have a fixed list of problem facts (rooms, teachers, timeslots) which only should be combined optimally./ Just to address this one unanswered point. The Cloud Balancing example does support changing the problem

Re: [rules-users] Planner - IntConstraintOccurrence not being retracted

2012-07-16 Thread Garf
Rookie error -- I neglected to put the modify() in the RHS of a rule. That'll make a big difference. :-) -- View this message in context: http://drools.46999.n3.nabble.com/Planner-IntConstraintOccurrence-not-being-retracted-tp4018672p4018710.html Sent from the Drools: User forum mailing list

Re: [rules-users] Planner 5.4 - Overriding CachedMoveFactory to skip some PlanningEntity instances

2012-07-13 Thread Garf
my error here in looking to extend CachedMoveFactory. Obviously, the moves are cached, and not regenerated each forage. I suppose if I wanted to achieved what I wanted, I'd just override isMoveDoable() to make it more discerning -- but,as the JavaDoc suggests, there's little benefit to doing

[rules-users] Planner - IntConstraintOccurrence not being retracted

2012-07-13 Thread Garf
I've been building a prototype similar to CloudBalancing. I've got IntConstraintOccurrence objects being inserted via insertLogical() through my rules. For some reason, I don't think these are being retracted as expected -- the count() of accumulated IntConstraintOccurrence's ramps up to 10x what

Re: [rules-users] Planner - Initialized solution local search

2012-07-12 Thread Garf
I figured out the problem. DefaultSolver.runSolverPhases() will go through each phase, and will revert the changes if they're not better. Or, more exactly, here are lines 191-193: if (it.hasNext()) { // solverScope.setWorkingSolutionFromBestSolution(); }

[rules-users] Planner - Initialized solution local search

2012-07-11 Thread Garf
I'm using v5.4. I've built a prototype which uses the constructionHeuristic, and localSearch, as the example does, and am able to run the solver (though it still doesn't do a good job of solving at this point). I've now added customSolverPhase, and set it to use an initializer class which

Re: [rules-users] Score curruption exception in drools-planner-5.4.0.CR1

2012-07-11 Thread Garf
Right, the root of the behavior is that TRACE enables assertWorkingScore(), which tells me that the workingScore (reflecting the score after the move) is not the same as the uncorruptedScore (reflecting prior to the change), and specifically, that 4 ConstraintOccurrences are mismatched. For some

Re: [rules-users] Planner - Initialized solution local search

2012-07-11 Thread Garf
re: /Double check if you aren't calling afterEntityAdded() on the non-initialized entities too. Also check that the construction heurstics run before the localSearch solver does (the order in which they are declared in the config xml matters)./ Checked both. I'll file a JIRA bug, but I'm just

Re: [rules-users] Unable to upload POJO model jar to Guvnor 5.3.1 on Glassfish 3.1.2

2012-06-13 Thread Garf
On June 1st, claz12 wrote: when I try to upload the model jar file, I get the error 'Unable to to upload the file' message box displayed. I was able to reproduce this problem on Guvnor 5.4 / Tomcat 7 -- and uploading a JDK1.7 compiled Jar. The HTTP response suggested that the Java version was