public class Sphere extends Problem
length_, lowerLimit_, numberOfConstraints_, numberOfObjectives_, numberOfVariables_, precision_, problemName_, solutionType_, upperLimit_, variableType_| Constructor and Description |
|---|
Sphere(java.lang.String solutionType,
java.lang.Integer numberOfVariables)
Constructor
Creates a default instance of the Sphere problem
|
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate(Solution solution)
Evaluates a solution
|
evaluateConstraints, getLength, getLowerLimit, getName, getNumberOfBits, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, getPrecision, getPrecision, getSolutionType, getUpperLimit, setnumberOfObjectives, setNumberOfVariables, setPrecision, setSolutionTypepublic Sphere(java.lang.String solutionType,
java.lang.Integer numberOfVariables)
throws java.lang.ClassNotFoundException
numberOfVariables - Number of variables of the problemsolutionType - The solution type must "Real" or "BinaryReal".java.lang.ClassNotFoundExceptionpublic void evaluate(Solution solution) throws JMException
evaluate in class Problemsolution - The solution to evaluateJMException