Quote Originally Posted by KButler9 View Post
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.
Administrative Note:

Welcome to the forum.

Sorry, but your post does not comply with Rule #6 of our Forum RULES.: please do not ignore requests by Administrators, Moderators and senior forum members regarding forum rules.

If you are unclear about the request or instruction, then send a private message to them asking for clarification.

All Participants:

Please do not post a reply in a thread where a Moderator or Administrator has requested an action that has not yet been complied with (e.g. title change, code tags requested, etc.). Thanks.