net.sf.cpsolver.studentsct.extension
Class StudentConflictStatistics

java.lang.Object
  extended by net.sf.cpsolver.ifs.extension.Extension<V,T>
      extended by net.sf.cpsolver.ifs.extension.ConflictStatistics<Request,Enrollment>
          extended by net.sf.cpsolver.studentsct.extension.StudentConflictStatistics
All Implemented Interfaces:
ConstraintListener<Enrollment>, ModelListener<Request,Enrollment>

public class StudentConflictStatistics
extends ConflictStatistics<Request,Enrollment>

Same as ConflictStatistics, however, conflict with real students can be weighted differently than with last-like students.

Parameters:

Parameter Type Comment
StudentConflictStatistics.RealStudentWeight Double Weight of a conflict with a real student (Student.isDummy() is false).
StudentConflictStatistics.RealStudentWeight Double Weight of a conflict with a last-like student (Student.isDummy() is true).

Version:
StudentSct 1.2 (Student Sectioning)
Copyright (C) 2007 - 2010 Tomáš Müller
muller@unitime.org
http://muller.unitime.org

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not see http://www.gnu.org/licenses/.

Field Summary
 double iDummyStudentWeight
           
 double iRealStudentWeight
           
 
Constructor Summary
StudentConflictStatistics(Solver<Request,Enrollment> solver, DataProperties properties)
           
 
Method Summary
 double countRemovals(long iteration, Enrollment conflictValue, Enrollment value)
          Counts number of unassignments of the given conflicting value caused by the assignment of the given value.
 
Methods inherited from class net.sf.cpsolver.ifs.extension.ConflictStatistics
constraintAdded, constraintAfterAssigned, constraintBeforeAssigned, constraintRemoved, countPotentialConflicts, countRemovals, getNoGoods, register, reset, toString, unregister, variableUnassigned
 
Methods inherited from class net.sf.cpsolver.ifs.extension.Extension
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, getModel, getProperties, getSolver, init, isRegistered, useValueExtra, useVariableExtra, variableAdded, variableRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

iRealStudentWeight

public double iRealStudentWeight

iDummyStudentWeight

public double iDummyStudentWeight
Constructor Detail

StudentConflictStatistics

public StudentConflictStatistics(Solver<Request,Enrollment> solver,
                                 DataProperties properties)
Method Detail

countRemovals

public double countRemovals(long iteration,
                            Enrollment conflictValue,
                            Enrollment value)
Description copied from class: ConflictStatistics
Counts number of unassignments of the given conflicting value caused by the assignment of the given value.

Overrides:
countRemovals in class ConflictStatistics<Request,Enrollment>