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.
is a matrix with the preference order of each individual in the
market. If there are
is a vector of length
true if the matching is stable, false otherwise @export
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.