|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jmetal.core.Problem
public abstract class Problem
Abstract class representing a multiobjective optimization problem
Field Summary | |
---|---|
protected int[] |
length_
Stores the length of each encodings.variable when applicable (e.g., Binary and Permutation variables) |
protected double[] |
lowerLimit_
Stores the lower bound values for each encodings.variable (only if needed) |
protected int |
numberOfConstraints_
Stores the number of constraints of the problem |
protected int |
numberOfObjectives_
Stores the number of objectives of the problem |
protected int |
numberOfVariables_
Stores the number of variables of the problem |
protected java.lang.String |
problemName_
Stores the problem name |
protected SolutionType |
solutionType_
Stores the type of the solutions of the problem |
protected double[] |
upperLimit_
Stores the upper bound values for each encodings.variable (only if needed) |
Constructor Summary | |
---|---|
Problem()
Constructor. |
|
Problem(SolutionType solutionType)
Constructor. |
Method Summary | |
---|---|
abstract void |
evaluate(Solution solution)
Evaluates a Solution object. |
void |
evaluateConstraints(Solution solution)
Evaluates the overall constraint violation of a Solution
object. |
int |
getLength(int var)
Returns the length of the encodings.variable. |
double |
getLowerLimit(int i)
Gets the lower bound of the ith encodings.variable of the problem. |
java.lang.String |
getName()
Returns the problem name |
int |
getNumberOfBits()
Returns the number of bits of the solutions of the problem |
int |
getNumberOfConstraints()
Gets the number of side constraints in the problem. |
int |
getNumberOfObjectives()
Gets the the number of objectives of the problem. |
int |
getNumberOfVariables()
Gets the number of decision variables of the problem. |
int[] |
getPrecision()
Returns array containing the number of bits that must be used to encode binary-real variables. |
int |
getPrecision(int var)
Returns the number of bits that must be used to encode binary-real variables |
SolutionType |
getSolutionType()
Returns the type of the variables of the problem. |
double |
getUpperLimit(int i)
Gets the upper bound of the ith encodings.variable of the problem. |
void |
setNumberOfVariables(int numberOfVariables)
Sets the number of decision variables of the problem. |
void |
setPrecision(int[] precision)
Sets the array containing the number of bits that must be used to encode binary-real variables. |
void |
setSolutionType(SolutionType type)
Sets the type of the variables of the problem. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int numberOfVariables_
protected int numberOfObjectives_
protected int numberOfConstraints_
protected java.lang.String problemName_
protected SolutionType solutionType_
protected double[] lowerLimit_
protected double[] upperLimit_
protected int[] length_
Constructor Detail |
---|
public Problem()
public Problem(SolutionType solutionType)
Method Detail |
---|
public int getNumberOfVariables()
public void setNumberOfVariables(int numberOfVariables)
public int getNumberOfObjectives()
public double getLowerLimit(int i)
i
- The index of the encodings.variable.
public double getUpperLimit(int i)
i
- The index of the encodings.variable.
public abstract void evaluate(Solution solution) throws JMException
Solution
object.
solution
- The Solution
to evaluate.
JMException
public int getNumberOfConstraints()
public void evaluateConstraints(Solution solution) throws JMException
Solution
object.
solution
- The Solution
to evaluate.
JMException
public int getPrecision(int var)
public int[] getPrecision()
public void setPrecision(int[] precision)
precision
- The arraypublic int getLength(int var)
public void setSolutionType(SolutionType type)
type
- The type of the variablespublic SolutionType getSolutionType()
public java.lang.String getName()
public int getNumberOfBits()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |