[rules-users] Planner - Initialized solution & local search

Geoffrey De Smet ge0ffrey.spam at gmail.com
Fri Jul 13 03:07:34 EDT 2012


That's a bug, issue created:
   https://issues.jboss.org/browse/JBRULES-3577
It needs to be fixed on an architectural level though.

Op 13-07-12 01:46, Garf schreef:
> 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();
>              }
>
> Now, if this involved setting the planning variables for the first time,
> those will be reverted.
>
> There's a few ways of tackling this, some of which are on the user end, such
> as a adding a hard constraint to penalize the solution if the planning
> variable isn't set.
>
> Jon
>
> --
> View this message in context:http://drools.46999.n3.nabble.com/Planner-Initialized-solution-local-search-tp4018594p4018642.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.

-- 
With kind regards,
Geoffrey De Smet




More information about the rules-users mailing list