我对
有例外java.lang.IllegalArgumentException:phaseConfig(ExhaustiveSearchPhaseConfig)没有配置entitySelector,并且因为在EntityClassSet中有多个(Select类(com.startup.persistence.mongodb.domain.ElectiveCourseClassUnitPlacement,类com.startup.persistence.mongodb。 domain.ClassUnitStudent]),则无法自动推论。
请告诉我什么是多个实体类的配置,没有关于它的文档,只有cloudBalancingBenchmarkConfig示例中的简单配置。
这是我下面的求解器配置:
<?xml version="1.0" encoding="UTF-8"?>
<solver>
<!-- To slowly prove there are no bugs in this code -->
<environmentMode>FULL_ASSERT</environmentMode>
<!-- To solve faster by saturating multiple CPU cores -->
<!--<moveThreadCount>AUTO</moveThreadCount>-->
<solutionClass>com.startup.persistence.mongodb.domain.ClassUnitPlacement</solutionClass>
<entityClass>com.startup.persistence.mongodb.domain.ElectiveCourseClassUnitPlacement</entityClass>
<entityClass>com.startup.persistence.mongodb.domain.ClassUnitStudent</entityClass>
<scoreDirectorFactory>
<!--<incrementalScoreCalculatorClass>com.startup.service.solver.score.ClassUnitPlacementIncrementalScoreCalculator</incrementalScoreCalculatorClass>-->
<easyScoreCalculatorClass>com.startup.service.solver.score.ClassUnitPlacementEasyScoreCalculator</easyScoreCalculatorClass>
<!--<scoreDrl>classUnitPlacement/solver/classUnitStudentScoreRules.drl</scoreDrl>-->
</scoreDirectorFactory>
<exhaustiveSearch>
<exhaustiveSearchType>BRANCH_AND_BOUND</exhaustiveSearchType>
<nodeExplorationType>DEPTH_FIRST</nodeExplorationType>
<entitySorterManner>DECREASING_DIFFICULTY_IF_AVAILABLE</entitySorterManner>
<valueSorterManner>INCREASING_STRENGTH_IF_AVAILABLE</valueSorterManner>
</exhaustiveSearch>
<!-- Optimization algorithms configuration -->
<termination>
<minutesSpentLimit>12000</minutesSpentLimit>
<unimprovedMinutesSpentLimit>30</unimprovedMinutesSpentLimit>
<bestScoreLimit>0hard/0medium/0soft</bestScoreLimit>
</termination>
</solver>