
MOEA Framework 2.12 API Specification 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
public interface Algorithm
Interface for an optimization algorithm. An optimization algorithm operates by performing a series of optimization steps, though the amount of work performed by each step depends on the algorithm. For example, an algorithm may completely solve a problem in one step or may require hundreds of thousands of steps.
Method Summary  

void 
evaluate(Solution solution)
Evaluates the specified solution for the problem being solved by this algorithm. 
int 
getNumberOfEvaluations()
Returns the number of times the evaluate method was invoked. 
Problem 
getProblem()
Returns the problem being solved by this algorithm. 
NondominatedPopulation 
getResult()
Returns the current bestknown result. 
Serializable 
getState()
Returns a Serializable object representing the internal state of
this algorithm. 
boolean 
isTerminated()
Returns true if this algorithm is terminated; false
otherwise. 
void 
setState(Object state)
Sets the internal state of of this algorithm. 
void 
step()
Performs one logical step of this algorithm. 
void 
terminate()
Terminates this algorithm. 
Method Detail 

Problem getProblem()
NondominatedPopulation getResult()
void step()
This method should not be invoked when isTerminated()
returns
true
.
void evaluate(Solution solution)
solution
 the solution to be evaluatedProblem.evaluate(Solution)
int getNumberOfEvaluations()
evaluate
method was invoked. This
is the primary measure of runtime for optimization algorithms.
evaluate
method was invokedboolean isTerminated()
true
if this algorithm is terminated; false
otherwise.
true
if this algorithm is terminated; false
otherwiseterminate()
void terminate()
getResult()
and
getNumberOfEvaluations()
methods are still required to work
after termination.
Serializable getState() throws NotSerializableException
Serializable
object representing the internal state of
this algorithm.
Serializable
object representing the internal state of
this algorithm
NotSerializableException
 if this algorithm does not support
serialization
AlgorithmException
 if this algorithm has not yet been
initializedvoid setState(Object state) throws NotSerializableException
state
 the internal state of this algorithm
NotSerializableException
 if this algorithm does not support
serialization
AlgorithmException
 if this algorithm has already been
initialized

MOEA Framework 2.12 API Specification 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 