[rules-dev] drools-solver example configuration - feed back welcome

Geoffrey De Smet ge0ffrey.spam at gmail.com
Sat Aug 18 12:24:37 EDT 2007


Below you 'll find the nqueens example drools-solver configuration.
It's currently configured as a tabu search.



<?xml version="1.0" encoding="UTF-8"?>
<localSearchSolver>
   <drl>/net/sf/taseree/samples/nqueens/taseree/nQueensRules.drl</drl>
   <scoreCalculator>
 
<scoreCalculatorClass>net.sf.taseree.core.evaluation.scorecalculator.SimpleScoreCalculator</scoreCalculatorClass>
   </scoreCalculator>
   <finish>
     <finishCompositionStyle>OR</finishCompositionStyle>
     <maximumStepCount>100</maximumStepCount>
     <feasableScore>0.0</feasableScore>
   </finish>
   <selector>
 
<moveFactoryClass>net.sf.taseree.samples.nqueens.taseree.NQueensMoveFactory</moveFactoryClass>
   </selector>
   <accepter>
       <accepterType>MOVE_TABU</accepterType>
       <completeTabuSize>5</completeTabuSize>
   </accepter>
   <forager>
 
<foragerClass>net.sf.taseree.core.localsearch.decider.forager.MaxScoreOfAllForager</foragerClass>
   </forager>
</localSearchSolver>

Feed back welcome :)
Do you think this is clear?
Different configuration options are possible, I 'll explain them in due 
time.

-- 
With kind regards,
Geoffrey De Smet




More information about the rules-dev mailing list