|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.studentsct.heuristics.RouletteWheelRequestSelection
public class RouletteWheelRequestSelection
Variable (Request
) selection using RouletteWheelSelection
.
Unassigned request has 10 points, an assigned request has 1 point for each
section that exceeds its bound.
Constructor Summary | |
---|---|
RouletteWheelRequestSelection(DataProperties properties)
Constructor |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RouletteWheelRequestSelection(DataProperties properties)
properties
- configurationMethod Detail |
---|
public void init(Solver<Request,Enrollment> solver)
init
in interface VariableSelection<Request,Enrollment>
protected RouletteWheelSelection<Request> getRoulette(Solution<Request,Enrollment> solution)
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |