Skip to content

Commit

Permalink
Online Student Scheduling: Reservation Limit Cap
Browse files Browse the repository at this point in the history
- do not cap the reservation limit of OnlineReservation any further
  - it is already capped by the config/class limits (XReservation.getLimit() minus the current enrollment, except of the student in question)
  - capping the limit any further can create discrepancies as the config/class limits are computed differently
    (excluding other students, possibly causing the class no longer available errors in the check-assignment action)
  • Loading branch information
tomas-muller committed Aug 6, 2021
1 parent 7e419e6 commit 9ad6480
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/org/cpsolver/studentsct/online/OnlineReservation.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,9 @@ public boolean mustBeUsed() {
return mustBeUsedIgnoreExpiration();
return super.mustBeUsed();
}

@Override
public double getLimitCap() {
return getReservationLimit();
}
}

0 comments on commit 9ad6480

Please sign in to comment.