|
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.AbstractProblem
public abstract class AbstractProblem
Abstract class for Problems.
| Field Summary | |
|---|---|
protected int |
numberOfConstraints
The number of constraints defined by this problem. |
protected int |
numberOfObjectives
The number of objectives defined by this problem. |
protected int |
numberOfVariables
The number of variables defined by this problem. |
| Constructor Summary | |
|---|---|
AbstractProblem(int numberOfVariables,
int numberOfObjectives)
Constructs an unconstrained abstract problem with the specified number of decision variables and objectives. |
|
AbstractProblem(int numberOfVariables,
int numberOfObjectives,
int numberOfConstraints)
Constructs an abstract problem with the specified number of decision variables, objectives and constraints. |
|
| Method Summary | |
|---|---|
void |
close()
Closes any underlying resources used by this problem. |
protected void |
finalize()
Calls close() if this problem has not yet been closed prior to
finalization. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.moeaframework.core.Problem |
|---|
evaluate, newSolution |
| Field Detail |
|---|
protected final int numberOfVariables
protected final int numberOfObjectives
protected final int numberOfConstraints
| Constructor Detail |
|---|
public AbstractProblem(int numberOfVariables,
int numberOfObjectives)
numberOfVariables - the number of decision variablesnumberOfObjectives - the number of objectives
public AbstractProblem(int numberOfVariables,
int numberOfObjectives,
int numberOfConstraints)
numberOfVariables - the number of decision variablesnumberOfObjectives - the number of objectivesnumberOfConstraints - the number of constraints| 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 Problem
protected void finalize()
throws Throwable
close() if this problem has not yet been closed prior to
finalization.
finalize in class ObjectThrowable - the Exception raised by this methodpublic 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 | |||||