The example below illustrates price calculation. Assume the price tick as below:
For the sake of simplicity we assume only 3 portfolios are entered. The quantity entered by each portfolio A, B and C for the specific price tick is as shown below:
The algorithm will then add the entire purchase quantum and sell quantum after the bidding session and look for a solution where the net transaction is zero i.e. the buy quantum is equal to the sell quantum.
The demand-supply graph in such scenario is shown below: