All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.cilib.measurement.multiple.moo.ParetoOptimalSet Maven / Gradle / Ivy

Go to download

A library of composable components enabling simpler Computational Intelligence

The newest version!
/**           __  __
 *    _____ _/ /_/ /_    Computational Intelligence Library (CIlib)
 *   / ___/ / / / __ \   (c) CIRG @ UP
 *  / /__/ / / / /_/ /   http://cilib.net
 *  \___/_/_/_/_.___/
 */
package net.sourceforge.cilib.measurement.multiple.moo;

import java.util.Collection;
import net.sourceforge.cilib.algorithm.Algorithm;
import net.sourceforge.cilib.measurement.Measurement;
import net.sourceforge.cilib.moo.archive.Archive;
import net.sourceforge.cilib.problem.solution.OptimisationSolution;
import net.sourceforge.cilib.type.types.container.TypeList;
import net.sourceforge.cilib.type.types.container.Vector;

/**
 * 

* Measures the set of non-dominated decision vectors within an archive. *

* */ public class ParetoOptimalSet implements Measurement { private static final long serialVersionUID = 8157352173131734782L; @Override public ParetoOptimalSet getClone() { return this; } @Override public TypeList getValue(Algorithm algorithm) { TypeList allPositions = new TypeList(); Collection solutions = Archive.Provider.get(); for (OptimisationSolution solution : solutions) { Vector position = (Vector) solution.getPosition(); allPositions.add(position); } return allPositions; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy