In [1]:
import matching_algo
import numpy as np

In [4]:
submit_prefs = np.array([[1, 2, 3],
                             [0, 3, 1],
                             [2, 1, 0],
                             [0, 1, 3],
                             [1, 2, 0]])
power = [3, 1, 2, 4, 5]
resp_num = 4

In [5]:
matching_algo.matching(submit_prefs, power, resp_num)


Out[5]:
[2, 3, 4, 0, 1]

In [ ]:


In [ ]: