net.sf.cpsolver.studentsct.extension
Class StudentConflictStatistics
java.lang.Object
net.sf.cpsolver.ifs.extension.Extension
net.sf.cpsolver.ifs.extension.ConflictStatistics
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:
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.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
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 |
iRealStudentWeight
public double iRealStudentWeight
iDummyStudentWeight
public double iDummyStudentWeight
StudentConflictStatistics
public StudentConflictStatistics(Solver solver,
DataProperties properties)
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