Does anyone know of R functions to solve the assignment problem from combinatoric optimization.
For example: Say I have N=3 students (1,2,3) and S=4 possible job placements (A,B,C,D). Each of the N=3 students ranks all of the S=4 job placements. 1 placement would obviously get no student (missing denoted as "."). This is a reality (since N is less than S) and is fine. There are (I think) 4! possible allocations here:
A B C D
1 2 3 .
1 . 2 3
1 3 . 2
1 . 3 2
1 3 2 .
And so on for the next 18 possible ways...
So if N and S are small I can consider all possible "realities" of students being allocated to jobs. I can sum the ranks from each "reality". And choose the reality with the minimum sum rank as being (in a fair system) the one where most students get what they want.