MOEA Framework 2.12
API Specification

org.moeaframework.core
Interface Problem

All Known Subinterfaces:
AnalyticalProblem
All Known Implementing Classes:
AbstractProblem, AttractiveSector, BBOBFunction, BBOBTransformation, Belegundu, Binh, Binh2, Binh3, Binh4, C1_DTLZ1, C1_DTLZ3, C2_DTLZ2, C3_DTLZ1, C3_DTLZ4, CF1, CF10, CF2, CF3, CF4, CF5, CF6, CF7, CF8, CF9, ConvexC2_DTLZ2, ConvexDTLZ2, DifferentPowers, DistributedProblem, DTLZ, DTLZ1, DTLZ2, DTLZ3, DTLZ4, DTLZ7, Ellipsoid, ExternalProblem, Fonseca, Fonseca2, Gallagher, Jimenez, Kita, Kursawe, Laumanns, Lis, LZ, LZ1, LZ2, LZ3, LZ4, LZ5, LZ6, LZ7, LZ8, LZ9, Murata, Obayashi, OKA1, OKA2, Osyczka, Osyczka2, Poloni, ProblemStub, Quagliarella, Rastrigin, Rendon, Rendon2, Rosenbrock, RotatedProblem, Schaffer, Schaffer2, Schaffers, Schwefel, ScriptedProblem, SharpRidge, Sphere, Srinivas, StackedProblem, Tamaki, Tanaka, TimingProblem, TransformObjectiveOscillate, TransformObjectivePenalize, TransformObjectivePower, TransformObjectiveShift, TransformVariablesAffine, TransformVariablesAsymmetric, TransformVariablesBrs, TransformVariablesConditioning, TransformVariablesOscillate, TransformVariablesScale, TransformVariablesShift, TransformVariablesXHat, TransformVariablesZHat, 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.
 

Method Detail

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.


MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!