jeco.kernel.problem
Class Solution
java.lang.Object
jeco.kernel.problem.Solution
public class Solution
- extends java.lang.Object
Constructor Summary |
Solution(int dimension)
Constructor for quality purposes, i.e., fronts to be read from a
text file, obtaining quality metrics, etc. |
Solution(Problem problem)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
variables
protected Variable[] variables
objectives
protected double[] objectives
properties
protected java.util.Map<java.lang.String,java.lang.Number> properties
Solution
public Solution(Problem problem)
Solution
public Solution(int dimension)
- Constructor for quality purposes, i.e., fronts to be read from a
text file, obtaining quality metrics, etc.
- Parameters:
dimension
- Number of objectives
getVariable
public Variable getVariable(int index)
getVariables
public Variable[] getVariables()
setVariable
public void setVariable(int index,
Variable variable)
getObjective
public double getObjective(int index)
getObjectives
public double[] getObjectives()
setObjective
public void setObjective(int i,
double value)
getProperty
public java.lang.Number getProperty(java.lang.String name)
setProperty
public void setProperty(java.lang.String name,
java.lang.Number value)
clone
public Solution clone()
- Overrides:
clone
in class java.lang.Object
compareTo
public int compareTo(Solution solution,
java.util.Comparator<Solution> comparator)
objectivesEquals
public boolean objectivesEquals(Solution right)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object