Package org.uma.jmetal.solution
Class AbstractSolution<T>
java.lang.Object
org.uma.jmetal.solution.AbstractSolution<T>
- All Implemented Interfaces:
Serializable,Solution<T>
- Direct Known Subclasses:
CharSequenceSolution,CompositeSolution,DefaultBinarySolution,DefaultDoubleSolution,DefaultIntegerSolution,IntegerPermutationSolution
Abstract class representing a generic solution
- Author:
- Antonio J. Nebro
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSolution(int numberOfVariables, int numberOfObjectives) ConstructorprotectedAbstractSolution(int numberOfVariables, int numberOfObjectives, int numberOfConstraints) Constructor -
Method Summary
-
Field Details
-
attributes
-
-
Constructor Details
-
AbstractSolution
protected AbstractSolution(int numberOfVariables, int numberOfObjectives) Constructor -
AbstractSolution
protected AbstractSolution(int numberOfVariables, int numberOfObjectives, int numberOfConstraints) Constructor
-
-
Method Details
-
variables
-
objectives
public double[] objectives()- Specified by:
objectivesin interfaceSolution<T>
-
constraints
public double[] constraints()- Specified by:
constraintsin interfaceSolution<T>
-
attributes
-
toString
-
equals
-
hashCode
-