[jboss-jira] [JBoss JIRA] Issue Comment Edited: (JBRULES-2911) Planner: simulated annealing should work for planning problems with hard constraints often broken too
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Tue Mar 1 02:39:05 EST 2011
[ https://issues.jboss.org/browse/JBRULES-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585113#comment-12585113 ]
Geoffrey De Smet edited comment on JBRULES-2911 at 3/1/11 2:37 AM:
-------------------------------------------------------------------
Fixed, from the upgrade recipe:
Simulated annealing now supports working with hard constraints too (JBRULES-2911)
The starting temperature (usually close the maximum score delta) is now a Score instead of a double.
Before in *Config.xml:
<simulatedAnnealingStartingTemperature>20.0</simulatedAnnealingStartingTemperature>
After in *Config.xml (if you're using HardAndSoftScore):
<simulatedAnnealingStartingTemperature>0hard/20soft</simulatedAnnealingStartingTemperature>
After in *Config.xml (if you're using SimpleScore):
<simulatedAnnealingStartingTemperature>20</simulatedAnnealingStartingTemperature>
was (Author: ge0ffrey):
fixed, see reference manual and Upgrade recipe txt
> Planner: simulated annealing should work for planning problems with hard constraints often broken too
> -----------------------------------------------------------------------------------------------------
>
> 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
More information about the jboss-jira
mailing list