public class StudentConflictStatistics extends ConflictStatistics<Request,Enrollment>
ConflictStatistics
, however, conflict with real students can
be weighted differently than with last-like students.
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). |
Modifier and Type | Field and Description |
---|---|
double |
iDummyStudentWeight |
double |
iRealStudentWeight |
Constructor and Description |
---|
StudentConflictStatistics(Solver<Request,Enrollment> solver,
DataProperties properties) |
Modifier and Type | Method and Description |
---|---|
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.
|
constraintAdded, constraintAfterAssigned, constraintBeforeAssigned, constraintRemoved, countAssignments, countPotentialConflicts, countRemovals, getNoGoods, register, reset, toString, unregister, variableUnassigned
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, getModel, getProperties, getSolver, init, isRegistered, variableAdded, variableRemoved
public double iRealStudentWeight
public double iDummyStudentWeight
public StudentConflictStatistics(Solver<Request,Enrollment> solver, DataProperties properties)
public double countRemovals(long iteration, Enrollment conflictValue, Enrollment value)
ConflictStatistics
countRemovals
in class ConflictStatistics<Request,Enrollment>
iteration
- current iterationconflictValue
- value conflicting with the given valuevalue
- given value