Getting Exception when using nearbySelection in VRPTW in optaplanner -
i seen blog scaling vrptw more 1000 location using nearby selection. tried implementing that, here xml wrote :
<unionmoveselector> <changemoveselector> <entityselector id="entityselector1"> <entityclass>vehiclerouting.domain.customer</entityclass> </entityselector> <valueselector variablename="previousstandstill"> <nearbyselection> <originentityselector mimicselectorref="entityselector1"/> <nearbydistancemeterclass>vehiclerouting.domain.solver.nearby.customernearbydistancemeter</nearbydistancemeterclass> `<nearbyselectiondistributiontype>parabolic_distribution</nearbyselectiondistributiontype> </nearbyselection> </valueselector> </changemoveselector> <swapmoveselector> <entityselector id="entityselector2"> <entityclass>vehiclerouting.domain.customer</entityclass> </entityselector> <secondaryentityselector> <entityclass>vehiclerouting.domain.customer</entityclass> <nearbyselection> <originentityselector mimicselectorref="entityselector2"/> <nearbydistancemeterclass>vehiclerouting.domain.solver.nearby.customernearbydistancemeter</nearbydistancemeterclass> <nearbyselectiondistributiontype>parabolic_distribution</nearbyselectiondistributiontype> </nearbyselection> </secondaryentityselector> </swapmoveselector> </unionmoveselector>
here exception (while running 154 customer):
2017/09/12 12:15:00.538 [simpleasynctaskexecutor-1] [debug] org.optaplanner.core.impl.constructionheuristic.defaultconstructionheuristicphase - ch step (153), time spent (6850), score (-70002hard/-57992000soft), selected move count (156), picked move (161581 {null -> 161582}). 2017/09/12 12:15:00.547 [simpleasynctaskexecutor-1] [info] org.optaplanner.core.impl.constructionheuristic.defaultconstructionheuristicphase - construction heuristic phase (0) ended: time spent (6859), best score (-70002hard/-57992000soft), score calculation speed (1842/sec), step total (154). 2017/09/12 12:15:00.599 [simpleasynctaskexecutor-1] [debug] org.drools.core.common.defaultagenda - state inactive disposed 2017/09/12 12:15:00.603 [simpleasynctaskexecutor-1] [debug] org.drools.core.common.defaultagenda - state inactive firing_all_rules 2017/09/12 12:15:00.607 [simpleasynctaskexecutor-1] [debug] org.drools.core.common.defaultagenda - state firing_all_rules halting 2017/09/12 12:15:00.607 [simpleasynctaskexecutor-1] [debug] org.drools.core.common.defaultagenda - state halting inactive 2017/09/12 12:15:00.641 [simpleasynctaskexecutor-1] [debug] mobi.fareye.module.rabbitmq.autoroutinglistener - exception : java.lang.negativearraysizeexception: null @ org.optaplanner.core.impl.heuristic.selector.common.nearby.nearbydistancematrix.addalldestinations(nearbydistancematrix.java:35) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.heuristic.selector.entity.nearby.nearentitynearbyentityselector.phasestarted(nearentitynearbyentityselector.java:96) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.phase.event.phaselifecyclesupport.firephasestarted(phaselifecyclesupport.java:37) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.heuristic.selector.abstractselector.phasestarted(abstractselector.java:49) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.phase.event.phaselifecyclesupport.firephasestarted(phaselifecyclesupport.java:37) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.heuristic.selector.abstractselector.phasestarted(abstractselector.java:49) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.heuristic.selector.move.decorator.filteringmoveselector.phasestarted(filteringmoveselector.java:51) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.phase.event.phaselifecyclesupport.firephasestarted(phaselifecyclesupport.java:37) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.heuristic.selector.abstractselector.phasestarted(abstractselector.java:49) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.localsearch.decider.localsearchdecider.phasestarted(localsearchdecider.java:95) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.localsearch.defaultlocalsearchphase.phasestarted(defaultlocalsearchphase.java:115) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.localsearch.defaultlocalsearchphase.solve(defaultlocalsearchphase.java:64) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final] @ org.optaplanner.core.impl.solver.abstractsolver.runphases(abstractsolver.java:87) ~[optaplanner-core-7.2.0.final.jar:7.2.0.final]
i think, might doing wrong in xml config. help.
Comments
Post a Comment