net.sf.cpsolver.studentsct.extension
Class StudentConflictStatistics

java.lang.Object
  extended by net.sf.cpsolver.ifs.extension.Extension
      extended by net.sf.cpsolver.ifs.extension.ConflictStatistics
          extended by net.sf.cpsolver.studentsct.extension.StudentConflictStatistics
All Implemented Interfaces:
ConstraintListener, InfoProvider, ModelListener

public class StudentConflictStatistics
extends ConflictStatistics

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

Parameters:

ParameterTypeComment
StudentConflictStatistics.RealStudentWeightDouble Weight of a conflict with a real student (Student.isDummy() is false).
StudentConflictStatistics.RealStudentWeightDouble Weight of a conflict with a last-like student (Student.isDummy() is true).

Version:
StudentSct 1.1 (Student Sectioning)
Copyright (C) 2007 Tomáš Müller
muller@unitime.org
Lazenska 391, 76314 Zlin, Czech Republic

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 2.1 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Field Summary
 double iDummyStudentWeight
           
 double iRealStudentWeight
           
 
Constructor Summary
StudentConflictStatistics(Solver solver, DataProperties properties)
           
 
Method Summary
 double countRemovals(long iteration, Value conflictValue, Value 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, getInfo, getInfo, 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 solver,
                                 DataProperties properties)
Method Detail

countRemovals

public double countRemovals(long iteration,
                            Value conflictValue,
                            Value 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