Major commit, see changelog in JOpt-Notes.txt
This commit is contained in:
30
src/simpleprobs/InterfaceSimpleProblem.java
Normal file
30
src/simpleprobs/InterfaceSimpleProblem.java
Normal file
@@ -0,0 +1,30 @@
|
||||
package simpleprobs;
|
||||
|
||||
/**
|
||||
* A simple interface to easily include new optimization problems in Java into the
|
||||
* JavaEvA framework.
|
||||
*
|
||||
* @author mkron
|
||||
*
|
||||
*/
|
||||
|
||||
public interface InterfaceSimpleProblem<T> {
|
||||
/**
|
||||
* Evaluate a double vector representing a possible problem solution as
|
||||
* part of an individual in the JavaEvA framework. This makes up the
|
||||
* target function to be evaluated.
|
||||
*
|
||||
* @param x a double vector to be evaluated
|
||||
* @return the fitness vector assigned to x as to the target function
|
||||
*/
|
||||
public double[] eval(T x);
|
||||
|
||||
/**
|
||||
* Return the problem dimension.
|
||||
*
|
||||
* @return the problem dimension
|
||||
*/
|
||||
public int getProblemDimension();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user