Class EvolutionaryAlgorithmBuilder<S extends org.uma.jmetal.solution.Solution<?>>

java.lang.Object
org.uma.evolver.algorithm.base.EvolutionaryAlgorithmBuilder<S>
Type Parameters:
S - the type of solutions handled by the algorithm

public class EvolutionaryAlgorithmBuilder<S extends org.uma.jmetal.solution.Solution<?>> extends Object
A builder class for creating instances of EvolutionaryAlgorithm with optional archive support. This builder provides a flexible way to configure and instantiate evolutionary algorithms, with or without an external archive for storing non-dominated solutions.

Example usage:


 EvolutionaryAlgorithm<DoubleSolution> algorithm = new EvolutionaryAlgorithmBuilder<DoubleSolution>()
     .build(
         "NSGA-II",
         initialSolutionsCreation,
         evaluation,
         termination,
         selection,
         variation,
         replacement,
         archive  // can be null if no archive is needed
     );