Create a market model that accepts a stepwise wtp demand function

Create a market model that accepts a stepwise wtp demand function (that describes a flexible demand) and clears the market (by maximizing social welfare) to return the equilibrium_price (market_price) and equilibrium_quantity at this price. See a graphical illustration below.

Click to expand image
Edited by Christian Doh Dinga
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information