org.cpsolver.studentsct.online.selection

## Interface MultiCriteriaBranchAndBoundSelection.SelectionComparator

- All Known Subinterfaces:
    MultiCriteriaBranchAndBoundSelection.SelectionCriterion
  All Known Implementing Classes:
    BestPenaltyCriterion, EqualWeightCriterion, OnlineSectioningCriterion
  Enclosing class:
    MultiCriteriaBranchAndBoundSelection

      public static interface MultiCriteriaBranchAndBoundSelection.SelectionComparator

  Enrollment comparator

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Assignment<Request,Enrollment> assignment, Enrollment e1, Enrollment e2)` Compare two enrollments

- - ### Method Detail

    - #### compare

          int compare(Assignment<Request,Enrollment> assignment,
                      Enrollment e1,
                      Enrollment e2)

      Compare two enrollments
      Parameters:
        `assignment` - current assignment
        `e1` - first enrollment
        `e2` - second enrollment
      Returns:
        -1 if the first enrollment is better than the second etc.