jeco.kernel.problem
Class Solution

java.lang.Object
  extended by jeco.kernel.problem.Solution

public class Solution
extends java.lang.Object


Field Summary
protected  double[] objectives
           
protected  java.util.Map<java.lang.String,java.lang.Number> properties
           
protected  Variable[] variables
           
 
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)
           
 
Method Summary
 Solution clone()
           
 int compareTo(Solution solution, java.util.Comparator<Solution> comparator)
           
 double getObjective(int index)
           
 double[] getObjectives()
           
 java.lang.Number getProperty(java.lang.String name)
           
 Variable getVariable(int index)
           
 Variable[] getVariables()
           
 boolean objectivesEquals(Solution right)
           
 void setObjective(int i, double value)
           
 void setProperty(java.lang.String name, java.lang.Number value)
           
 void setVariable(int index, Variable variable)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

variables

protected Variable[] variables

objectives

protected double[] objectives

properties

protected java.util.Map<java.lang.String,java.lang.Number> properties
Constructor Detail

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
Method Detail

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