[JBoss JIRA] Created: (JBRULES-2912) Drools Planner Divide By Zero Error
by David Faulkner (JIRA)
Drools Planner Divide By Zero Error
-----------------------------------
Key: JBRULES-2912
URL: https://issues.jboss.org/browse/JBRULES-2912
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-planner
Affects Versions: 5.1.1.FINAL
Environment: Windows, Intel desktop-class, Java6 (bug is not environment-specific)
Reporter: David Faulkner
Assignee: Mark Proctor
In org.drools.palnner.core.localsearch.DefaultLocalSearchSolver::solvingEnded, there is potentially a divide by zero that occurs on the line:
long averageCalculateCountPerSecond = localSearchSolverScope.getCalculateCount() * 1000L / timeMillisSpend;
if timeMillisSpend is zero. Although in theory the likelihood of this occurring in practically nothing, we have actually seen it occur on a POC project with long running Planner jobs. An appropriate guard should be added to this calculation to ensure that this error cannot occur.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Created: (JBRULES-2909) Build: development setup howto's, tips & tricks in the README.txt file for git, maven, eclipse, intellij, ...
by Geoffrey De Smet (JIRA)
Build: development setup howto's, tips & tricks in the README.txt file for git, maven, eclipse, intellij, ...
-------------------------------------------------------------------------------------------------------------
Key: JBRULES-2909
URL: https://issues.jboss.org/browse/JBRULES-2909
Project: Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Geoffrey De Smet
Assignee: Geoffrey De Smet
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Created: (JBRULES-2911) Planner: simulated annealing should work for planning problems with many hard constraints broken
by Geoffrey De Smet (JIRA)
Planner: simulated annealing should work for planning problems with many hard constraints broken
------------------------------------------------------------------------------------------------
Key: JBRULES-2911
URL: https://issues.jboss.org/browse/JBRULES-2911
Project: Drools
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: drools-planner
Reporter: Geoffrey De Smet
Assignee: Geoffrey De Smet
Priority: Minor
Fix For: 5.2.0.M2
This code is bad in SimulatedAnnealingAcceptor:
// TODO don't abuse translateScoreToGraphValue
// TODO do hard and soft separately and then average their acceptChance
Double diff = localSearchSolverScope.getScoreDefinition().translateScoreToGraphValue(scoreDifference);
if (diff == null) {
// more hard constraints broken, ignore it for now
return 0.0;
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months