Class CompositeSolution
java.lang.Object
org.uma.jmetal.solution.AbstractSolution<Solution<?>>
org.uma.jmetal.solution.compositesolution.CompositeSolution
- All Implemented Interfaces:
Serializable,Solution<Solution<?>>
Class representing solutions composed of a list of solutions. The idea is that each decision
variable can be a solution of any type, so we can create mixed solutions (e.g., solutions
combining any of the existing encodings).
The adopted approach has the advantage of easing the reuse of existing variation operators,
but all the solutions in the list will need to have the same function and constraint violation
values.
It is assumed that problems using instances of this class will properly manage the solutions it contains.
- Author:
- Antonio J. Nebro
- See Also:
-
Field Summary
Fields inherited from class org.uma.jmetal.solution.AbstractSolution
attributes -
Constructor Summary
ConstructorsConstructorDescriptionCompositeSolution(List<Solution<?>> solutions) Constructor.CompositeSolution(CompositeSolution solution) Copy constructor -
Method Summary
Methods inherited from class org.uma.jmetal.solution.AbstractSolution
attributes, constraints, equals, hashCode, objectives, toString, variables
-
Constructor Details
-
CompositeSolution
-
CompositeSolution
-
-
Method Details
-
copy
-