T - Type of data that will be clusteredpublic abstract class AbstractNeighborGenerator<T> extends Object implements NeighborGenerotor<T>
| Constructor and Description |
|---|
AbstractNeighborGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(int k)
Initialize the generator, before we start computing.
|
void |
notifyCandidateSolutionCost(List<T> solution,
double cost)
Inform the generator what the cost of the current solution is.
|
void |
notifyNewSolution(List<T> solution,
double cost)
Notify the generator that the new solution is better then the previous
one.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNeighborpublic void init(int k)
NeighborGenerotorinit in interface NeighborGenerotor<T>public void notifyCandidateSolutionCost(List<T> solution, double cost)
NeighborGenerotornotifyCandidateSolutionCost in interface NeighborGenerotor<T>public void notifyNewSolution(List<T> solution, double cost)
NeighborGenerotornotifyNewSolution in interface NeighborGenerotor<T>Copyright © 2017. All rights reserved.