Opt4J library

Opt4J is a modular framework for meta-heuristic optimization that can be applied to a range of evolutionary algorithms. In the context of this chapter, we are looking at implementing SI algorithms such as ACO and PSO using the library. The libraries that deal with optimization problems have three primary components at abstract level. Creator, decoder, and evaluator. The creator provides random genotypes (please refer to Chapter 8Genetic Programming, for details on genotype and phenotypes) from the search space. They represent agents in case of SI algorithms. The agents are created by the creator object.

The Opt4J library provides an org.opt4j.optimizers.mopso.Particle class that works as a creator. The agents within the swarm ...

Get Artificial Intelligence for Big Data now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.