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

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

public static class BranchBoundSelection.BranchBoundNeighbour
extends Neighbour<Request,Enrollment>

Branch & bound neighbour -- a schedule of a student


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

getAssignment

public Enrollment[] getAssignment()
Assignment


getStudent

public Student getStudent()
Student


assign

public void assign(long iteration)
Assign the schedule

Specified by:
assign in class Neighbour<Request,Enrollment>

toString

public String toString()
Overrides:
toString in class Object