|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.ifs.criteria.AbstractCriterion<Lecture,Placement>
net.sf.cpsolver.coursett.criteria.TimetablingCriterion
net.sf.cpsolver.coursett.criteria.SameSubpartBalancingPenalty
public class SameSubpartBalancingPenalty
Same subpart balancing penalty. This criterion tries to spread classes of each
scheduling subpart in time. It also includes all other spread in time distribution
constraints. This criterion is counted by SpreadConstraint
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.cpsolver.ifs.criteria.AbstractCriterion |
---|
AbstractCriterion.ValueUpdateType |
Field Summary |
---|
Fields inherited from class net.sf.cpsolver.ifs.criteria.AbstractCriterion |
---|
iBest, iDebug, iValue, iValueUpdateType, iWeight, sDoubleFormat, sPercentFormat |
Constructor Summary | |
---|---|
SameSubpartBalancingPenalty()
|
Method Summary | |
---|---|
double[] |
getBounds()
Bounds (minimum and maximum) estimate for the value |
double[] |
getBounds(Collection<Lecture> variables)
Value bounds (minimum and maximum) of the criterion on a part of the problem |
String |
getPlacementSelectionWeightName()
|
double |
getValue()
Current value of the criterion (optimization objective) |
double |
getValue(Collection<Lecture> variables)
Value of a part of the problem (given by the collection of variables) |
double |
getValue(Placement value,
Set<Placement> conflicts)
Value of a proposed assignment (including hard conflicts) |
double |
getWeightDefault(DataProperties config)
Defines default weight (when AbstractCriterion.getWeightName() parameter is not present in the criterion). |
Methods inherited from class net.sf.cpsolver.coursett.criteria.TimetablingCriterion |
---|
getPlacementSelectionWeight, getPlacementSelectionWeightDefault, init |
Methods inherited from class net.sf.cpsolver.ifs.criteria.AbstractCriterion |
---|
afterAssigned, afterUnassigned, beforeAssigned, beforeUnassigned, bestRestored, bestSaved, clearCache, computeBounds, constraintAdded, constraintRemoved, getBest, getInfo, getInfo, getModel, getName, getPerc, getPercRev, getWeight, getWeightedBest, getWeightedValue, getWeightedValue, getWeightedValue, getWeightName, inc, variableAdded, variableRemoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SameSubpartBalancingPenalty()
Method Detail |
---|
public double getWeightDefault(DataProperties config)
AbstractCriterion
AbstractCriterion.getWeightName()
parameter is not present in the criterion).
getWeightDefault
in class AbstractCriterion<Lecture,Placement>
public String getPlacementSelectionWeightName()
getPlacementSelectionWeightName
in class TimetablingCriterion
public double getValue(Placement value, Set<Placement> conflicts)
Criterion
public double getValue()
Criterion
getValue
in interface Criterion<Lecture,Placement>
getValue
in class AbstractCriterion<Lecture,Placement>
public double getValue(Collection<Lecture> variables)
Criterion
getValue
in interface Criterion<Lecture,Placement>
getValue
in class AbstractCriterion<Lecture,Placement>
public double[] getBounds()
Criterion
getBounds
in interface Criterion<Lecture,Placement>
getBounds
in class AbstractCriterion<Lecture,Placement>
public double[] getBounds(Collection<Lecture> variables)
Criterion
getBounds
in interface Criterion<Lecture,Placement>
getBounds
in class AbstractCriterion<Lecture,Placement>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |