cpp_wrapper_irving_check_stability {matchingR} | R Documentation |
Check if a matching solves the stable roommate problem
Description
This function checks if a given matching is stable for a particular set of preferences. This function checks if there's an unmatched pair that would rather be matched with each other than with their assigned partners.
Usage
cpp_wrapper_irving_check_stability(pref, matchings)
Arguments
pref |
is a matrix with the preference order of each individual in the
market. If there are |
matchings |
is a vector of length |
Value
true if the matching is stable, false otherwise @export