An optimization framework for multi-objective evolutionary algorithms
Add the follow dependency to your POM file:
<dependency>
<groupId>com.github.chen0040</groupId>
<artifactId>java-moea</artifactId>
<version>1.0.1</version>
</dependency>
The following sample code shows how to use NSGA-II to solve the NDND 2-objective optimization problem:
NSGAII algorithm = new NSGAII();
algorithm.getMediator().read(new TNK());
algorithm.getMediator().setPopulationSize(1000);
algorithm.getMediator().setMaxGenerations(100);
algorithm.setDisplayEvery(10);
NondominatedPopulation pareto_front = algorithm.solve();