net.sf.cpsolver.studentsct.heuristics.selection
Class PriorityConstructionSelection.ConstructionNeighbour

java.lang.Object
  extended by net.sf.cpsolver.ifs.model.Neighbour<Request,Enrollment>
      extended by 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.


Constructor Summary
PriorityConstructionSelection.ConstructionNeighbour(BranchBoundSelection.BranchBoundNeighbour neighbour)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PriorityConstructionSelection.ConstructionNeighbour

public PriorityConstructionSelection.ConstructionNeighbour(BranchBoundSelection.BranchBoundNeighbour neighbour)
Method Detail

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.