For example, for a linear generator offer expressed in $/MW of ...

offer(Pg) = 50 + 0.2 * Pg

... the corresponding total cost function for gencost would be ...

totalcost(Pg) = 50 * Pg + 0.1 * Pg^2

So the corresponding row of gencost would be ...

2   0   0   3   0.1   50   0

I'm not sure I understand your last question. But, fixed bids/offers correspond 
to linear costs in the gencost matrix. Linear bids/offers would correspond to 
quadratic costs in the gencost matrix.

Hope the example helps,

-- 
Ray Zimmerman
Senior Research Associate
419A Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645




On Apr 3, 2012, at 3:31 PM, Roberto Carvalini wrote:

> Could you please give me an example of gencost matrix because the in the 
> 't_auctioncase.m', the gencost is not fixed. So, my question is this, in what 
> way I have to change the gencost matrix. Can I say the fixed offers and 
> nonlinear gencost is equal to linear bids/offers?
> 
> 
> Best Wishes
> 
> Roberto 
> 
> 
> On Tue, Apr 3, 2012 at 21:14, Ray Zimmerman <[email protected]> wrote:
> The bid or offer is essentially a marginal cost, that is, the derivative of 
> the total cost function that goes into gencost. So essentially, you integrate 
> the marginal cost (or offer function) to get the total cost function to put 
> in gencost.
> 
> -- 
> Ray Zimmerman
> Senior Research Associate
> 419A Warren Hall, Cornell University, Ithaca, NY 14853
> phone: (607) 255-9645
> 
> 
> 
> 
> On Apr 3, 2012, at 3:01 PM, Roberto Carvalini wrote:
> 
>> Thanks a lot for your help. Is it possible for you to give an example in 
>> which how a linear offer would correspond to a quadratic gencost?
>> 
>> Best Wishes
>> 
>> Roberto 
>> 
>> 
>> On Tue, Apr 3, 2012 at 20:58, Ray Zimmerman <[email protected]> wrote:
>> The runmarket code essentially just takes bids and offers, converts them 
>> into the corresponding gencost entries, runs the OPF and then repackages the 
>> results as a set of cleared offers and bids. The runmarket code will not 
>> handle linear bids or offers, but you can convert your bids and offers 
>> directly into the corresponding gencost entries and then run the OPF 
>> directly to get the result. A linear offer would correspond to a quadratic 
>> gencost.
>> 
>> -- 
>> Ray Zimmerman
>> Senior Research Associate
>> 419A Warren Hall, Cornell University, Ithaca, NY 14853
>> phone: (607) 255-9645
>> 
>> 
>> 
>> 
>> On Apr 3, 2012, at 11:42 AM, Roberto Carvalini wrote:
>> 
>>> Dear Prof. Zimmerman,
>>> 
>>> How can I model a linear bid instead of fixed bids in MATPOWER? For example 
>>> I want to have a  Linear supply bid with fixed demand. Is it possible? 
>>> 
>>> Best Wishes
>>> 
>>> Roberto 
>>> 
>> 
>> 
> 
> 

Reply via email to