Can you modify the code to handle cases where a 1:1 match is not possible? Specifically, when the the group sizes are different. For example, if there are only 8 men vs. 10 women?
You might not need to, just tailor inputs. Depending on your scenario. But yes, something similar but modified is used to match doctors with residencies.
If you're considering hanging two women out to dry you can just incorporate two low ranked men and the women who match with them get passed on. Otherwise, if you're considering polygamy, there are a few paths forward: one of which is to input the 2 highest ranked men again as the lowest ranked men.
Bookmarks