java.lang.Object
es.urjc.etsii.grafo.algorithms.scattersearch.SolutionCombinator<S,I>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SolutionCombinator
public SolutionCombinator()
-
-
Method Details
-
newSet
Returns new reference set starting from current reference set- Parameters:
currentSet
- current reference set, DO NOT MODIFYnewSolutions
- solutions added to refset in last iteration- Returns:
- new reference set
-
apply
Create a new solution combining left and right. If this method is not flexible enough, leave an empty implementation (throw new UnsupportedOperationException) and override method newSet- Parameters:
left
- origin solution, one of the recently added solutions to the refsetright
- target solution, one of the old solutions in the ref set- Returns:
- new solution, such as List.of(solution) or list of solutions generated from the solutions given as parameters
-
toString
-