Package org.opt4j.optimizers.ea.aeseh
Class NeighborhoodSchedulerRoundRobin
- java.lang.Object
-
- org.opt4j.optimizers.ea.aeseh.NeighborhoodSchedulerRoundRobin
-
- All Implemented Interfaces:
NeighborhoodScheduler
public class NeighborhoodSchedulerRoundRobin extends java.lang.Object implements NeighborhoodScheduler
TheNeighborhoodSchedulerRoundRobin
schedules the neighborhoods in a simple round-robin fashion.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.util.Set<org.opt4j.core.Individual>>
neighborhoods
protected int
nextIdx
-
Constructor Summary
Constructors Constructor Description NeighborhoodSchedulerRoundRobin(java.util.List<java.util.Set<org.opt4j.core.Individual>> neighborhoods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
next
public java.util.Set<org.opt4j.core.Individual> next()
Description copied from interface:NeighborhoodScheduler
Returns a copy of the neighborhood that shall be used for the creation of the next pair of parents.- Specified by:
next
in interfaceNeighborhoodScheduler
- Returns:
- copy of the neighborhood set
-
-