OptaPlanner core 6.2.0.CR2

Interface SolutionCloner<SolutionG extends Solution>

All Known Subinterfaces:
All Known Implementing Classes:
FieldAccessingSolutionCloner, PlanningCloneableSolutionCloner

public interface SolutionCloner<SolutionG extends Solution>

Clones a Solution during planning. Used to remember the state of a good Solution so it can be recalled at a later then when the original Solution is already modified. Also used in population based heuristics to increase or repopulate the population.

Planning cloning is hard: avoid doing it yourself.

Method Summary
 SolutionG cloneSolution(SolutionG original)
          Does a planning clone.

Method Detail


SolutionG cloneSolution(SolutionG original)
Does a planning clone. The returned Solution clone must fulfill these requirements: Note that a class might support more than 1 clone method: planning clone is just one of them.

original - never null, the original Solution
never null, the cloned Solution

OptaPlanner core 6.2.0.CR2

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.