Sorry about that. It is a bug. Looks like runmarket was never tested with reactive power costs (only reactive bids and offers). Here is an updated version of smartmkt.m that will hopefully fix the problem for you.

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


Attachment: smartmkt.m
Description: Binary data


On Mar 1, 2012, at 8:53 AM, Silvio Miceli wrote:

Thanks for your help.

By adding another ng row to gencost matrix, I get the following error:


??? Index exceeds matrix dimensions.

Error in ==> totcost at 59
    totalcost(ipol, i) = polycost(gencost(ipol, :), Pg(ipol, i));

Error in ==> smartmkt at 191
fcost   = mkt.t * totcost(mpc.gencost, zeros(ng, 1) );      %% fixed costs

Error in ==> runmarket at 141
[co, cb, r, dispatch, success] = smartmkt(mpc, offers, bids, mkt, mpopt);

[r,co,cb] = runmarket(mpc,offers,bids,mkt,mpoption);

Best Wishes

Silvio Miceli


On Thu, Mar 1, 2012 at 14:39, Ray Zimmerman <[email protected]> wrote:
To add reactive costs, simply add another ng rows to the gencost matrix. To add reactive bids and offers, make sure that the reactive bid and offer quantities for each generator and dispatchable load are consistent with the reactive range of that unit. That is, you can only have non-zero bids for units with negative capacity, and non-zero offers for units with positive capacity (e.g. you can't have a non-zero active power bid for a conventional generator, or a reactive power offer for a dispatchable load that can only absorb reactive power).

Keep in mind that when using runmarket with bids and offers, they replace the values in gencost before the OPF is called.

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




On Mar 1, 2012, at 7:35 AM, Silvio Miceli wrote:

Dear Ray,


I want to have reactive bids as well as active bids for both generators and loads considering non-zero reactive cost in gencost matrix. What changes should be carried out?


Best Wishes

Silvio Miceli




Reply via email to