public class NeighborhoodSchedulerRoundRobin extends java.lang.Object implements NeighborhoodScheduler
NeighborhoodSchedulerRoundRobin
schedules the neighborhoods in a simple
round-robin fashion.Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.util.Set<org.opt4j.core.Individual>> |
neighborhoods |
protected int |
nextIdx |
Constructor and Description |
---|
NeighborhoodSchedulerRoundRobin(java.util.List<java.util.Set<org.opt4j.core.Individual>> neighborhoods) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<org.opt4j.core.Individual> |
next()
Returns a copy of the neighborhood that shall be used for the creation of
the next pair of parents.
|
protected final java.util.List<java.util.Set<org.opt4j.core.Individual>> neighborhoods
protected int nextIdx
public NeighborhoodSchedulerRoundRobin(java.util.List<java.util.Set<org.opt4j.core.Individual>> neighborhoods)
public java.util.Set<org.opt4j.core.Individual> next()
NeighborhoodScheduler
next
in interface NeighborhoodScheduler