This question concerns game theory and market equilibria which is rarely of focus here at QSE, but at the same time I believe this is a more appropriate place for such question rather than MSE.
There is only one good. There are $N$ consumers and $M$ producers.
- Each consumer $i$ can buy at most $E_i$ of good from different producers in total. No matter how much he buys, $\xi_i$ is the highest price he may consider paying for the unit of good.
- Each producer can sell at most $Q_i$ of good to different consumers in total. Now matter how much he sells, $r_i>0$ is the lowest price at which he may consider selling the unit of good.
- The amount of good the consumer $i$ buys from the producer $j$ is $L_{ij}$, the corresponding price is denoted by $p_{ij}$.
- Each consumer $i$ has a utility function $U_i(p_{i1},\dots,p_{iM},L_{i1},\dots,L_{iM})$ which he wants to maximize.
- Each producer $j$ has a utility function $V_j(p_{1j},\dots,p_{Nj},L_{1j},\dots,L_{Nj})$ which he wants to maximize.
I am pretty sure that this problem is rather classical, and I am looking for the game-theoretical formulation of this problem. So far I do not wonder about the existence or uniqueness of Nash equilibrium, just about the formulation: what are the decision variables etc. Some references would also be useful. I think that in such case one may talk about a matrix of equilibrium prices that equalizes the demand and supply, however I am not sure how to approach this formally.
I would also be interested in an extension when all the players are consumers and producers at the same time. That is, there are $N+M$ players which of them having constraints $$ -E_i\leq\sum_{j=1}^{N+M}L_{ij}\leq Q_i $$ meaning that each player can buy from one counterparty and sell to another one.