public class AvoidUnbalancedWhenNoExpectations extends PercentageOverExpected
PercentageOverExpected is used. If there are no
expectations, sections that would have more students than given by the balance
are marked as over-expected. The target fill ratio is proportional to the section
size, a section is considered unbalanced, when the target fill is exceeded by
more than OverExpected.Disbalance percentage (defaults to 0.1). Unlimited
sections are also balanced, when General.BalanceUnlimited parameter is set
to true (defaults to false).PercentageOverExpected.RoundingOverExpectedCriterion.HasContext| Constructor and Description |
|---|
AvoidUnbalancedWhenNoExpectations() |
AvoidUnbalancedWhenNoExpectations(DataProperties config) |
AvoidUnbalancedWhenNoExpectations(Double percentage) |
AvoidUnbalancedWhenNoExpectations(Double percentage,
Double disbalance) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getDisbalance()
Return allowed disbalance, defaults to 0.1 (parameter OverExpected.Disbalance)
|
double |
getOverExpected(Assignment<Request,Enrollment> assignment,
Section section,
Request request)
Expectation penalty, to be minimized
|
boolean |
isBalanceUnlimited()
Is balancing of unlimited sections enabled (parameter General.BalanceUnlimited)
|
String |
toString() |
getEnrollment, getEnrollment, getExpected, getLimit, getLimit, getPercentage, hasExpectations, round, setPercentagepublic AvoidUnbalancedWhenNoExpectations(DataProperties config)
public AvoidUnbalancedWhenNoExpectations(Double percentage, Double disbalance)
public AvoidUnbalancedWhenNoExpectations(Double percentage)
public AvoidUnbalancedWhenNoExpectations()
public Double getDisbalance()
public boolean isBalanceUnlimited()
public double getOverExpected(Assignment<Request,Enrollment> assignment, Section section, Request request)
OverExpectedCriteriongetOverExpected in interface OverExpectedCriteriongetOverExpected in class PercentageOverExpectedassignment - current assignmentsection - section in questionrequest - student course requestpublic String toString()
toString in class PercentageOverExpected