|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OptimisationProblem
Optimisation problems are characterized by a domain that specifies the search space and a fitness given a potential solution. This interface ensures that an optimization algorithm has all the information it needs to find a solution to a given optimisation problem. In addition, it is the responsibility of an optimisation problem to keep track of the number of times the fitness has been evaluated.
All optimisation problems must implement this interface.
Method Summary | |
---|---|
void |
accept(ProblemVisitor visitor)
Accept the provided Visitor and
perform the Visitor.visit(Object) method. |
DomainRegistry |
getBehaviouralDomain()
Returns the domain component that describes the search space of the needed behavioral characteristics of the problem. |
OptimisationProblem |
getClone()
Create a cloned copy of the current object and return it. |
DataSetBuilder |
getDataSetBuilder()
Get the associated DataSetBuilder . |
DomainRegistry |
getDomain()
Returns the domain component that describes the search space for this problem. |
Fitness |
getFitness(Type solution,
boolean count)
Returns the fitness of a potential solution to this problem. |
int |
getFitnessEvaluations()
Returns the number of times the underlying fitness function has been evaluated. |
void |
setDataSetBuilder(DataSetBuilder dataSetBuilder)
Set the DataSetBuilder for this
optimistion problem . |
Methods inherited from interface net.sourceforge.cilib.problem.Problem |
---|
changeEnvironment |
Method Detail |
---|
OptimisationProblem getClone()
getClone
in interface Cloneable
getClone
in interface Problem
Object.clone()
Fitness getFitness(Type solution, boolean count)
getDomain()
. An instance of
InferiorFitness
should be returned if the solution
falls outside the search space of this problem.
solution
- The potential solution found by the optimisation algorithm.count
- True if this call should contribute to the fitness evaluation count, see getFitnessEvaluations()
.
int getFitnessEvaluations()
DomainRegistry getDomain()
DomainRegistry
object representing the search space.DomainRegistry getBehaviouralDomain()
DataSetBuilder getDataSetBuilder()
DataSetBuilder
.
DataSetBuilder
.void setDataSetBuilder(DataSetBuilder dataSetBuilder)
DataSetBuilder
for this
optimistion problem
.
dataSetBuilder
- The DataSetBuilder
to be set on the current OptimisationProblem
.void accept(ProblemVisitor visitor)
Visitor
and
perform the Visitor.visit(Object)
method.
visitor
- The visitor which has operations to perform.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |