Fisher markets and associated solvers. A market is built in fisherMarket.py. You can declare parameters of the market in fisherExample.py and solve for market prices depending on the type of utility function you would like to use using the structure in fisherExample.py.
The project currently supports "linear" and "quasi-linear" utilities. You can solve the market with the function solveMarket() and passing it as argument the utility structure you desire as a string:
valuations = np.array([[1,3,5,1,2], [2,5,6,2,6], [6,3,5,1,4], [3,3,4,2,6]])
budgets = np.array([20, 23, 54, 12])
numGoodsVec = np.array([1,2,6,4,3])
market1 = m.Market(valuations, budgets, numGoodsVec)
market1.solveMarket("quasi-linear") market1.solveMarket("linear")