public class RouletteWheelRequestSelection extends Object implements VariableSelection<Request,Enrollment>
Request) selection using RouletteWheelSelection.
Unassigned request has 10 points, an assigned request has 1 point for each
section that exceeds its bound.
| Constructor and Description |
|---|
RouletteWheelRequestSelection(DataProperties properties)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected RouletteWheelSelection<Request> |
getRoulette(Solution<Request,Enrollment> solution)
Populate roulette wheel selection, if null or empty.
|
void |
init(Solver<Request,Enrollment> solver)
Initialization
|
Request |
selectVariable(Solution<Request,Enrollment> solution)
Variable selection.
|
public RouletteWheelRequestSelection(DataProperties properties)
properties - configurationpublic void init(Solver<Request,Enrollment> solver)
init in interface VariableSelection<Request,Enrollment>solver - current solverprotected RouletteWheelSelection<Request> getRoulette(Solution<Request,Enrollment> solution)
solution - current solutionpublic Request selectVariable(Solution<Request,Enrollment> solution)
RouletteWheelSelection is used. Unassigned
request has 10 points, an assigned request has 1 point for each section
that exceeds its bound.selectVariable in interface VariableSelection<Request,Enrollment>solution - current solution