1. I think you misunderstood my suggestion. Since runmarket does not handle 
linear offers, you cannot use it for what you want to do. You will have to 
manually set up the appropriate OPF problem (with the corresponding quadratic 
costs), and call runopf instead.

2. See section 5.4.2 in the manual on dispatchable loads to see the 
correspondence between the marginal benefit or bid function for the load and 
the corresponding total cost function for the negative generator. The example 
uses blocks, but you will have to derive the same for a linear bid function and 
corresponding quadratic total cost.

3. It is simply appears as a constant in the objective function, so it has no 
effect on the solution.

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


On Apr 3, 2012, at 6:53 PM, Roberto Carvalini wrote:

> Thank you so much for your help.
> 
> 1.I want to maximize SW considering linear offers for generators. How can I 
> introduce the offers? As far as I know when I introduce fixed offers, these 
> are replaced with linear one. With the following coefficients for gencost,  2 
>   0   0   3   0.1   50   0 , if I have the offers, for example, 
> [10 10 10], will the fixed offers will be replaced with linear one?
> 
> 2. How can I do the same fact for dispatcahble loads, i.e. having linear bids 
> for loads?


On Apr 3, 2012, at 7:17 PM, Roberto Carvalini wrote:

> Another question: 
> 3. In some cases C0 is equal to zero in some others is not zero. What is 
> difference between these two cases when do runmarket because in both cases 
> the offer function is the same.
> I am so sorry for disturbing you.
> Best Wishes
> 
> Roberto 
> 
> 
> On Wed, Apr 4, 2012 at 00:53, Roberto Carvalini <[email protected]> wrote:
> Thank you so much for your help.
> 
> 1.I want to maximize SW considering linear offers for generators. How can I 
> introduce the offers? As far as I know when I introduce fixed offers, these 
> are replaced with linear one. With the following coefficients for gencost,  2 
>   0   0   3   0.1   50   0 , if I have the offers, for example, 
> [10 10 10], will the fixed offers will be replaced with linear one?
> 
> 2. How can I do the same fact for dispatcahble loads, i.e. having linear bids 
> for loads?
> 
> Best Wishes
> 
> Roberto 
> 
> 
> 
> On Tue, Apr 3, 2012 at 22:13, Ray Zimmerman <[email protected]> wrote:
> 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