[rules-users] Drools Planner : multiple planning entities

Geoffrey De Smet ge0ffrey.spam at gmail.com
Tue Apr 3 15:10:59 EDT 2012


I forgot about that...
The construction heuristics don't support multiple entity classes yet.
Feel free to create an issue

I plan to do a big refactor & clean up of the construction heuristics code
for 5.5.0.Beta1 or Beta2 to make them more configurable,
support multiple entity classes and better support multiple variables 
and huge value ranges.

Meanwhile, either hack the existing code to deal with it (pull requests 
welcome)
or instead of using an easy <constructionHeuristic>, write a custom 
*SolutionInitializer (see examples, some of them still have one).

Op 03-04-12 18:20, TEddahabi schreef:
> Thank you Geoffrey for your quick answer, I did exactly what you mentioned
> but I've got an exception in execution:
>
>
> Exception in thread "main" java.lang.UnsupportedOperationException:
> Currently the greedyFit implementation only supports 1
> planningEntityImplementationClass.
> 	at
> org.drools.planner.config.constructionheuristic.ConstructionHeuristicSolverPhaseConfig.buildGreedyPlanningEntitySelector(ConstructionHeuristicSolverPhaseConfig.java:103)
> 	at
> org.drools.planner.config.constructionheuristic.ConstructionHeuristicSolverPhaseConfig.buildSolverPhase(ConstructionHeuristicSolverPhaseConfig.java:79)
> 	at
> org.drools.planner.config.constructionheuristic.ConstructionHeuristicSolverPhaseConfig.buildSolverPhase(ConstructionHeuristicSolverPhaseConfig.java:44)
> 	at
> org.drools.planner.config.solver.SolverConfig.buildSolver(SolverConfig.java:184)
> 	at
> org.drools.planner.config.XmlSolverConfigurer.buildSolver(XmlSolverConfigurer.java:103)
>
>
> Have you an idea about the reason behind this exception ?
> Thank you !!
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Drools-Planner-multiple-planning-entities-tp3878013p3881541.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>

-- 
With kind regards,
Geoffrey De Smet





More information about the rules-users mailing list