
freak.core.searchspace.SearchSpace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freak-core Show documentation
Show all versions of freak-core Show documentation
Core library of the Free Evolutionary Algorithm Toolkit
/*
* This file is part of FrEAK. For licensing and copyright information
* please see the file COPYING in the root directory of this
* distribution or contact .
*/
package freak.core.searchspace;
import freak.core.modulesupport.*;
import freak.core.modulesupport.Module;
import freak.core.population.*;
/**
* An interface representing the current search space. In terms of evolutionary
* algorithms, the search space is a set containing all genotypes that
* that can possibly be evaluated by the algorithm
* (encapsulated by individuals).
* SearchSpace
provides general information about the current
* search space and some general operations such as generating
* a random genotype.
*
* @author Dirk
*/
public interface SearchSpace extends Module {
/**
* Returns a genotype generated randomly with uniform probability
* distribution among all genotypes of the seach space.
*
* @return a randomly generated genotype.
*/
Genotype getRandomGenotype();
/**
* Returns the overall number of genotypes within the search space.
*
* @return the overall number of genotypes within the search space.
*/
double getSize();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy