|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.problem.TimingProblem
public class TimingProblem
Decorates a problem to collect objective function evaluation timing data.
Precision and accuracy of the timing data is dependent on System.nanoTime().
| Constructor Summary | |
|---|---|
TimingProblem(Problem problem)
Decorates the specified problem to collecting objective function evaluation timing data. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears any timing data collected. |
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. |
double |
getTime()
Returns the time, in seconds, expended on objective function evaluation. |
Solution |
newSolution()
Returns a new solution for this problem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimingProblem(Problem problem)
problem - the problem to decorate| Method Detail |
|---|
public String getName()
Problem
getName in interface Problempublic int getNumberOfVariables()
Problem
getNumberOfVariables in interface Problempublic int getNumberOfObjectives()
Problem
getNumberOfObjectives in interface Problempublic int getNumberOfConstraints()
Problem
getNumberOfConstraints in interface Problempublic void evaluate(Solution solution)
Problem
evaluate in interface Problemsolution - the solution to be evaluatedpublic Solution newSolution()
Problem
newSolution in interface Problempublic void clear()
public double getTime()
public void close()
Problem
close in interface Problem
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||