Package edu.cnu.mdi.sim.ga
Interface GASolution<S extends GASolution<S>>
- All Known Implementing Classes:
PolygonChromosome
public interface GASolution<S extends GASolution<S>>
Interface for solutions used in genetic algorithms. GA solutions must support
copying for elitism and best-tracking.
-
Method Summary
-
Method Details
-
copy
S copy()Create an independent copy of this solution.- Returns:
- a deep copy whose runtime type matches this solution
-
length
int length()Return the number of encoded elements in this solution.- Returns:
- solution length
-