private List<SolverBenchmarkConfig> buildEveryConstructionHeuristicType() { ConstructionHeuristicType[] chTypes = ConstructionHeuristicType.getBluePrintTypes(); List<SolverBenchmarkConfig> solverBenchmarkConfigList = new ArrayList<>(chTypes.length); for (ConstructionHeuristicType chType : chTypes) { solverBenchmarkConfigList.add(buildSolverBenchmarkConfig(chType, false, null)); } return solverBenchmarkConfigList; }
protected static <Solution_> Collection<Object[]> buildParameters(CommonApp<Solution_> commonApp, String... unsolvedFileNames) { if (commonApp instanceof CurriculumCourseApp) { /* * TODO Delete this temporary workaround to ignore ALLOCATE_TO_VALUE_FROM_QUEUE, * see https://issues.jboss.org/browse/PLANNER-486 */ List<ConstructionHeuristicType> typeList = new ArrayList<>(); for (ConstructionHeuristicType type : ConstructionHeuristicType.values()) { if (type != ConstructionHeuristicType.ALLOCATE_TO_VALUE_FROM_QUEUE) { typeList.add(type); } } return buildParameters(commonApp, typeList.toArray(new ConstructionHeuristicType[0]), unsolvedFileNames); } return buildParameters(commonApp, ConstructionHeuristicType.values(), unsolvedFileNames); }
SolverBenchmarkConfig solverBenchmarkConfig = new SolverBenchmarkConfig(); String constructionHeuristicName = constructionHeuristicType == null ? "Construction Heuristic" : constructionHeuristicType.name(); String name; if (!localSearchEnabled) {
constructionHeuristicType, ConstructionHeuristicType.ALLOCATE_ENTITY_FROM_QUEUE); phaseConfigPolicy.setEntitySorterManner(entitySorterManner != null ? entitySorterManner : constructionHeuristicType_.getDefaultEntitySorterManner()); phaseConfigPolicy.setValueSorterManner(valueSorterManner != null ? valueSorterManner : constructionHeuristicType_.getDefaultValueSorterManner()); EntityPlacerConfig entityPlacerConfig; if (ConfigUtils.isEmptyCollection(entityPlacerConfigList)) {
public void onConstructionHeuristicTypeSelected(String constructionHeuristicType) { model.setConstructionHeuristicType(ConstructionHeuristicType.valueOf(constructionHeuristicType)); }
public void setModel(ConstructionHeuristicPhaseConfigModel model) { this.model = model; if (model.getConstructionHeuristicType() == null) { model.setConstructionHeuristicType(ConstructionHeuristicType.FIRST_FIT); } view.setSelectedConstructionHeuristicType(model.getConstructionHeuristicType().name()); if (model.getEntitySorterManner() == null) { model.setEntitySorterManner(EntitySorterManner.NONE); } view.setSelectedEntitySorterManner(model.getEntitySorterManner().name()); }
private List<SolverBenchmarkConfig> buildEveryConstructionHeuristicTypeWithEveryLocalSearchType() { ConstructionHeuristicType[] chTypes = ConstructionHeuristicType.getBluePrintTypes(); LocalSearchType[] lsTypes = LocalSearchType.getBluePrintTypes(); List<SolverBenchmarkConfig> solverBenchmarkConfigList = new ArrayList<>( chTypes.length * lsTypes.length); for (ConstructionHeuristicType chType : chTypes) { for (LocalSearchType lsType : lsTypes) { solverBenchmarkConfigList.add(buildSolverBenchmarkConfig(chType, true, lsType)); } } return solverBenchmarkConfigList; }
protected static <Solution_> Collection<Object[]> buildParameters(CommonApp<Solution_> commonApp, String... unsolvedFileNames) { if (commonApp instanceof CurriculumCourseApp) { /* * TODO Delete this temporary workaround to ignore ALLOCATE_TO_VALUE_FROM_QUEUE, * see https://issues.jboss.org/browse/PLANNER-486 */ List<ConstructionHeuristicType> typeList = new ArrayList<>(); for (ConstructionHeuristicType type : ConstructionHeuristicType.values()) { if (type != ConstructionHeuristicType.ALLOCATE_TO_VALUE_FROM_QUEUE) { typeList.add(type); } } return buildParameters(commonApp, typeList.toArray(new ConstructionHeuristicType[0]), unsolvedFileNames); } return buildParameters(commonApp, ConstructionHeuristicType.values(), unsolvedFileNames); }