net.sf.cpsolver.studentsct.extension
Class StudentConflictStatistics
java.lang.Object
net.sf.cpsolver.ifs.extension.Extension<V,T>
net.sf.cpsolver.ifs.extension.ConflictStatistics<Request,Enrollment>
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 Tomas Muller
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/.
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 |
iRealStudentWeight
public double iRealStudentWeight
iDummyStudentWeight
public double iDummyStudentWeight
StudentConflictStatistics
public StudentConflictStatistics(Solver<Request,Enrollment> solver,
DataProperties properties)
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>
Copyright © 2014 UniTime LLC. All Rights Reserved.