|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.problem.OptimisationProblemAdapter net.sourceforge.cilib.problem.FunctionOptimisationProblem
public abstract class FunctionOptimisationProblem
This class serves as a base class for function optimisation problems using a
Function
.
Field Summary | |
---|---|
protected Function |
function
|
Fields inherited from class net.sourceforge.cilib.problem.OptimisationProblemAdapter |
---|
dataSetBuilder, fitnessEvaluations |
Constructor Summary | |
---|---|
FunctionOptimisationProblem()
Creates a new instance of FunctionOptimisationProblem with null function. |
|
FunctionOptimisationProblem(FunctionOptimisationProblem copy)
Create a copy of the provided instance. |
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. |
abstract FunctionOptimisationProblem |
getClone()
Create a cloned copy of the current object and return it. |
DomainRegistry |
getDomain()
Returns the component that describes the domain of the function. |
abstract double |
getError(Type solution)
Returns the error (as a double for now) that the given solution has with respect to the actual optimum solution. |
Function |
getFunction()
Accessor for the function that is to be optimised. |
void |
setFunction(Function function)
Sets the function that is to be optimised. |
Methods inherited from class net.sourceforge.cilib.problem.OptimisationProblemAdapter |
---|
calculateFitness, changeEnvironment, getChangeStrategy, getDataSetBuilder, getFitness, getFitnessEvaluations, setChangeStrategy, setDataSetBuilder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Function function
Constructor Detail |
---|
public FunctionOptimisationProblem()
FunctionOptimisationProblem
with null
function.
Remember to always set a Function
before attempting to apply
an algorithm to this problem.
#setFunction(net.sourceforge.cilib.Functions.Function)
public FunctionOptimisationProblem(FunctionOptimisationProblem copy)
copy
- The instance to copy.Method Detail |
---|
public abstract FunctionOptimisationProblem getClone()
getClone
in interface OptimisationProblem
getClone
in interface Problem
getClone
in interface Cloneable
getClone
in class OptimisationProblemAdapter
Object.clone()
public void setFunction(Function function)
function
- The function.public Function getFunction()
public DomainRegistry getDomain()
public DomainRegistry getBehaviouralDomain()
OptimisationProblem
public abstract double getError(Type solution)
solution
- the solution for which an error should be determined
public void accept(ProblemVisitor visitor)
OptimisationProblemAdapter
Visitor
and
perform the Visitor.visit(Object)
method.
accept
in interface OptimisationProblem
accept
in class OptimisationProblemAdapter
visitor
- The visitor which has operations to perform.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |