optaplanner - Brute Force Solver Configuration for multiple entity classes -


i'm running following issue while trying configure solver brute_force multiple entity classes:

caused by:
com.thoughtworks.xstream.converters.reflection.abstractreflectionconverter$duplicatefieldexception: duplicate field entityselectorconfig

following configuration:

<solver>   ...   <exhaustivesearch>     <exhaustivesearchtype>brute_force</exhaustivesearchtype>     <entityselector>         <entityclass>planningentity_classa</entityclass>     </entityselector>     <entityselector>         <entityclass>planningentity_classb</entityclass>     </entityselector>   </exhaustivesearch> </solver> 

this configuration works fine if single entity specified. if no entity specified, following exception:

the phaseconfig (exhaustivesearchphaseconfig) has no entityselector configured , because there multiple in entityclassset ...


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -