protected TransformationSearchOrchestration createOrchestration( final String initialGraph, final int solutionLength) { TransformationSearchOrchestration orchestration = new TransformationSearchOrchestration(); orchestration.setModuleManager(createModuleManager()); orchestration.setProblemGraph(initialGraph); orchestration.setSolutionLength(solutionLength); orchestration.setFitnessFunction(createFitnessFunction(orchestration)); orchestration.setEqualityHelper(_createEqualityHelper_()); EvolutionaryAlgorithmFactory moea = orchestration.createEvolutionaryAlgorithmFactory(populationSize); LocalSearchAlgorithmFactory local = orchestration.createLocalSearchAlgorithmFactory(); orchestration.addAlgorithm("NSGAIII", _createRegisteredAlgorithm_0(orchestration, moea, local)); return orchestration; }
protected IRegisteredAlgorithm<NSGAII> _createRegisteredAlgorithm_0( final TransformationSearchOrchestration orchestration, final EvolutionaryAlgorithmFactory<TransformationSolution> moea, final LocalSearchAlgorithmFactory<TransformationSolution> local) { TournamentSelection _tournamentSelection = new TournamentSelection(2); OnePointCrossover _onePointCrossover = new OnePointCrossover(1.0); SearchHelper _searchHelper = orchestration.getSearchHelper(); TransformationVariableMutation _transformationVariableMutation = new TransformationVariableMutation(_searchHelper, 0.10); IRegisteredAlgorithm<NSGAII> _createNSGAIII = moea.createNSGAIII( 0, 6, _tournamentSelection, _onePointCrossover, _transformationVariableMutation); return _createNSGAIII; }