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
Post a Comment