Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 951 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 951 Bytes

java-moea

An optimization framework for multi-objective evolutionary algorithms

Build Status Coverage Status

Install

Add the follow dependency to your POM file:

<dependency>
  <groupId>com.github.chen0040</groupId>
  <artifactId>java-moea</artifactId>
  <version>1.0.1</version>
</dependency>

Usage

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();