net.sourceforge.cilib.functions.continuous.unconstrained.Vincent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cilib-library Show documentation
Show all versions of cilib-library Show documentation
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.functions.continuous.unconstrained;
import net.sourceforge.cilib.functions.ContinuousFunction;
import net.sourceforge.cilib.type.types.container.Vector;
/**
* The Vincent Function.
*
* Characteristics:
*
* - Multi-dimensional only
* - Multimodal
* - Non-Separable
* - for n=1, 6 global minima and no local minima
* - for n=2, 36 global minima and no local minima
*
*
*
* R(0.25,10)^n
*
*/
public class Vincent extends ContinuousFunction {
/**
* {@inheritDoc}
*/
@Override
public Double f(Vector input) {
double result = 1.0;
for (int i = 0; i < input.size(); ++i)
result += Math.sin(10*Math.log(input.doubleValueOf(i)));
return -result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy