public class MultiCriteriaBranchAndBoundSuggestions extends SuggestionsBranchAndBound
MultiCriteriaBranchAndBoundSelection.SelectionCriterion.compare(Assignment, Enrollment[], Enrollment[])
is used to compare two suggestions.MultiCriteriaBranchAndBoundSelection.SelectionCriterionSuggestionsBranchAndBound.EnrollmentSectionComparator, SuggestionsBranchAndBound.SectionAssignmentComparator, SuggestionsBranchAndBound.Suggestion, SuggestionsBranchAndBound.SuggestionFilteriComparator, iMatched, iMaxSectionsWithPenalty| Constructor and Description |
|---|
MultiCriteriaBranchAndBoundSuggestions(DataProperties properties,
Student student,
Assignment<Request,Enrollment> assignment,
Hashtable<CourseRequest,Set<Section>> requiredSections,
Set<FreeTimeRequest> requiredFreeTimes,
Hashtable<CourseRequest,Set<Section>> preferredSections,
Request selectedRequest,
Section selectedSection,
SuggestionsBranchAndBound.SuggestionFilter filter,
double maxSectionsWithPenalty,
boolean priorityWeighting)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
compare(Assignment<Request,Enrollment> assignment,
SuggestionsBranchAndBound.Suggestion s1,
SuggestionsBranchAndBound.Suggestion s2)
Compare two suggestions
|
backtrack, canContinue, canContinueEvaluation, canLeaveUnassigned, checkBound, computeSuggestions, getNrMatched, getNrSolutionsSeen, getTime, isAllowed, isTimeoutReached, valuespublic MultiCriteriaBranchAndBoundSuggestions(DataProperties properties, Student student, Assignment<Request,Enrollment> assignment, Hashtable<CourseRequest,Set<Section>> requiredSections, Set<FreeTimeRequest> requiredFreeTimes, Hashtable<CourseRequest,Set<Section>> preferredSections, Request selectedRequest, Section selectedSection, SuggestionsBranchAndBound.SuggestionFilter filter, double maxSectionsWithPenalty, boolean priorityWeighting)
properties - configurationstudent - given studentassignment - current assignmentrequiredSections - required sectionsrequiredFreeTimes - required free times (free time requests that must be assigned)preferredSections - preferred sectionsselectedRequest - selected requestselectedSection - selected sectionfilter - section filtermaxSectionsWithPenalty - maximal number of sections that have a positive
over-expectation penalty
OverExpectedCriterion.getOverExpected(Assignment, Section, Request)protected int compare(Assignment<Request,Enrollment> assignment, SuggestionsBranchAndBound.Suggestion s1, SuggestionsBranchAndBound.Suggestion s2)
SuggestionsBranchAndBoundcompare in class SuggestionsBranchAndBoundassignment - current assignments1 - first suggestions2 - second suggestion