Anirudh, First of all, MATPOWER's smartmarket code is based on nodal bids/offers, not zonal. That is, the offers to sell are from individual generators, and the bids to buy are from individual dispatchable loads. Second, it treats the bids and offers as inputs to an optimization problem that an ISO/RTO would run to compute the optimal dispatch and corresponding prices. It does not compute any optimal bids or offers and it does not arrange bi-lateral transactions between buyers and sellers. All buy/sell transactions are with the ISO itself.
Having said that, it sounds to me like the optimal offer from area 5 would be the marginal cost of generation and the optimal bid to buy would be the marginal benefit of consumption, UNLESS there is some market power provided by the network that isolates area 5 from competing generation and demand response OR there is some non-competitive collusive behavior going on among the market participants. I suppose, if you have the network set up with all of your bids and offers associated with specific dispatchable loads and generators, then you could use some brute force approach, where you modify offer/bid prices over a range for a fixed quantity, and modify offer/bid quantity over a range for a fixed price in search of the point that yields maximum earnings/minimum cost. Regarding (2), it sounds like you may be thinking of bi-lateral transactions. MATPOWER assumes everything is cleared through a central market, so the only limits are physical flow limits between areas, which can be handled by individual line flow limits or by using the interface limits implemented in MATPOWER 4 (see toggle_iflims.m). Hope this helps, -- Ray Zimmerman Senior Research Associate 211 Warren Hall, Cornell University, Ithaca, NY 14853 phone: (607) 255-9645 On May 21, 2010, at 3:43 AM, Anirudh Raghavan wrote: Hello I am new to Matpower and in need of some help with the smart_market auction clearing code that comes with Matpower. My aim is the following: 1) Given a set of buy and sell bids from 4 areas, and given c0,c1,c2,Pmin,Pmax,Pdemand for a 5th area, I would like to get the optimum buy/sell bids(their quantities and prices) that a 5th area should bid at, to minimize its total cost of meeting its demand. I guess the buy bids of area 5 could be modeled as a negative generator with piecewise continuous price function, with each of its prices marginally above each of the existing buy bids. Similarly, the sell bids could be modeled as a generator with prices marginally below each of the existing sell bids. However, I do not know what quantities to assign to these buy/sell bids. 2) Further, I would like to incorporate transaction limits between areas. Any help regarding 1 and 2 would be greatly appreciated. Many thanks, and sorry for initially posting this as a reply to the battery question :p Anirudh
