org.moeaframework.core
Interface Problem
All Known Subinterfaces: AnalyticalProblem
All Known Implementing Classes: AbstractProblem , Belegundu , Binh , Binh2 , Binh3 , Binh4 , CF1 , CF10 , CF2 , CF3 , CF4 , CF5 , CF6 , CF7 , CF8 , CF9 , DistributedProblem , DTLZ , DTLZ1 , DTLZ2 , DTLZ3 , DTLZ4 , DTLZ7 , ExternalProblem , Fonseca , Fonseca2 , Jimenez , Kita , Kursawe , Laumanns , Lis , LZ , LZ1 , LZ2 , LZ3 , LZ4 , LZ5 , LZ6 , LZ7 , LZ8 , LZ9 , Murata , Obayashi , OKA1 , OKA2 , Osyczka , Osyczka2 , Poloni , ProblemStub , Quagliarella , Rendon , Rendon2 , RotatedProblem , Schaffer , Schaffer2 , ScriptedProblem , Srinivas , Tamaki , Tanaka , TimingProblem , UF1 , UF10 , UF11 , UF12 , UF13 , UF2 , UF3 , UF4 , UF5 , UF6 , UF7 , UF8 , UF9 , Viennet , Viennet2 , Viennet3 , Viennet4 , WFG , WFG1 , WFG2 , WFG3 , WFG4 , WFG5 , WFG6 , WFG7 , WFG8 , WFG9 , ZDT , ZDT1 , ZDT2 , ZDT3 , ZDT4 , ZDT5 , ZDT6
public interface Problem
Interface for defining optimization problems. All methods must be thread
safe.
Method Summary
void
close ()
Closes any underlying resources used by this problem.
void
evaluate (Solution solution)
Evaluates the solution, updating the solution's objectives in place.
String
getName ()
Returns the user-friendly name for this problem.
int
getNumberOfConstraints ()
Returns the number of constraints defined by this problem.
int
getNumberOfObjectives ()
Returns the number of objectives defined by this problem.
int
getNumberOfVariables ()
Returns the number of decision variables defined by this problem.
Solution
newSolution ()
Returns a new solution for this problem.
getName
String getName ()
Returns the user-friendly name for this problem.
Returns: the user-friendly name for this problem
getNumberOfVariables
int getNumberOfVariables ()
Returns the number of decision variables defined by this problem.
Returns: the number of decision variables defined by this problem
getNumberOfObjectives
int getNumberOfObjectives ()
Returns the number of objectives defined by this problem.
Returns: the number of objectives defined by this problem
getNumberOfConstraints
int getNumberOfConstraints ()
Returns the number of constraints defined by this problem.
Returns: the number of constraints defined by this problem
evaluate
void evaluate (Solution solution)
Evaluates the solution, updating the solution's objectives in place.
Algorithms must explicitly call this method when appropriate to evaluate
new solutions or reevaluate modified solutions.
Parameters: solution - the solution to be evaluated
newSolution
Solution newSolution ()
Returns a new solution for this problem. Implementations must initialize
the variables so that the valid range of values is defined, but may leave
the actual value at a default or undefined state.
Returns: a new solution for this problem
close
void close ()
Closes any underlying resources used by this problem. Once closed,
further invocations of any methods on this problem may throw exceptions.
Copyright 2009-2015 MOEA Framework. All rights reserved. Licensed under the GNU Lesser General Public License . Return to the MOEA Framework homepage . Hosted by