|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.problem.objective.ObjectiveFunction
public abstract class ObjectiveFunction
Objective functions are used to determine the value of an Individual
when it is used to resolve a Problem
.
This interface should be extended by the user and the evaluate
method implemented.
The objective function is given a Individual to evaluate and return an objective value.
Note: Two individuals with equivalent chromosome should always be assigned the same fitness value by any implementation of this interface.
Constructor Summary | |
---|---|
ObjectiveFunction()
|
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
Configures the specific element that implements this method. |
abstract double |
evaluate(double[] values)
Return the objective value of an Individual after compute this objective function with the individual's chromosome. |
int |
getDimension()
|
abstract void |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectiveFunction()
Method Detail |
---|
public abstract double evaluate(double[] values)
values
- the array of double values to evaluate.
public abstract void reset()
public void configure(org.apache.commons.configuration.Configuration conf)
Configurable
configure
in interface Configurable
conf
- a Configuration object.Configuration
public int getDimension()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |