net.sf.cpsolver.studentsct.heuristics.selection
Class PriorityConstructionSelection.ConstructionNeighbour
java.lang.Object
net.sf.cpsolver.ifs.model.Neighbour<Request,Enrollment>
net.sf.cpsolver.studentsct.heuristics.selection.PriorityConstructionSelection.ConstructionNeighbour
- Enclosing class:
- PriorityConstructionSelection
public class PriorityConstructionSelection.ConstructionNeighbour
- extends Neighbour<Request,Enrollment>
Takes BranchBoundSelection.BranchBoundNeighbour
but only assign the given
number of assignments, corresponding to the number of cycles.
Method Summary |
void |
assign(long iteration)
Only assign given number of assignments (from the first priority down). |
String |
toString()
|
double |
value()
Difference in the evaluation function, if this neighnour is assigned. |
PriorityConstructionSelection.ConstructionNeighbour
public PriorityConstructionSelection.ConstructionNeighbour(BranchBoundSelection.BranchBoundNeighbour neighbour)
assign
public void assign(long iteration)
- Only assign given number of assignments (from the first priority down).
Mark the cycle as improving if there was enough assignments to do.
- Specified by:
assign
in class Neighbour<Request,Enrollment>
value
public double value()
- Description copied from class:
Neighbour
- Difference in the evaluation function, if this neighnour is assigned.
- Specified by:
value
in class Neighbour<Request,Enrollment>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2014 UniTime LLC. All Rights Reserved.