net.sf.cpsolver.studentsct.heuristics.selection
Class BranchBoundSelection.BranchBoundNeighbour

java.lang.Object
  extended by net.sf.cpsolver.ifs.model.Neighbour
      extended by net.sf.cpsolver.studentsct.heuristics.selection.BranchBoundSelection.BranchBoundNeighbour
Enclosing class:
BranchBoundSelection

public static class BranchBoundSelection.BranchBoundNeighbour
extends Neighbour

Branch & bound neighbour -- a schedule of a student


Constructor Summary
BranchBoundSelection.BranchBoundNeighbour(double value, Enrollment[] assignment)
          Constructor
 
Method Summary
 void assign(long iteration)
          Assign the schedule
 Enrollment[] getAssignment()
          Assignment
 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

BranchBoundSelection.BranchBoundNeighbour

public BranchBoundSelection.BranchBoundNeighbour(double value,
                                                 Enrollment[] assignment)
Constructor

Parameters:
value - value of the schedule
assignment - enrollments of student's requests
Method Detail

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

getAssignment

public Enrollment[] getAssignment()
Assignment


assign

public void assign(long iteration)
Assign the schedule

Specified by:
assign in class Neighbour

toString

public String toString()
Overrides:
toString in class Object