public class FractionallyOverExpected extends PercentageOverExpected
PercentageOverExpected, however, the returned over-expected
penalty is based on the over-expected space (enrollment + expectations -
section limit), divided by the section limit. The over-expectations can be
capped by the OverExpected.Maximum parameter (defaults to section limit).PercentageOverExpected, this criterion offers the ability
to prefer less over-expected sections among the sections that are
over-expected.PercentageOverExpected.RoundingOverExpectedCriterion.HasContext| Constructor and Description |
|---|
FractionallyOverExpected() |
FractionallyOverExpected(DataProperties config) |
FractionallyOverExpected(Double percentage) |
FractionallyOverExpected(Double percentage,
Double maximum) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getMaximum()
Maximum, null if not set
|
double |
getMaximum(Section section)
Maximum, section limit if not set
|
double |
getOverExpected(Assignment<Request,Enrollment> assignment,
Section section,
Request request)
Expectation penalty, to be minimized
|
String |
toString() |
getEnrollment, getEnrollment, getExpected, getLimit, getLimit, getPercentage, hasExpectations, round, setPercentagepublic FractionallyOverExpected(DataProperties config)
public FractionallyOverExpected(Double percentage, Double maximum)
public FractionallyOverExpected(Double percentage)
public FractionallyOverExpected()
public Double getMaximum()
public double getMaximum(Section section)
section - given sectionpublic 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