1. There are two ways to do it. Either convert your loads to dispatchable loads 
(e.g. use load2disp() to convert them), or simply add positive generators to 
represent curtailment. In the latter case, you would subtract their output 
manually from the total generation to get the actual total generation from real 
generators.

2. If using dispatchable loads, load2disp() will create an appropriate gencost 
entry for each dispatchable load, and you can customize the value of the 
curtailed load. If using positive generators to represent the curtailment, 
simply use a gencost that corresponds to the cost of curtailment.

   Ray


> On Dec 26, 2018, at 3:18 AM, Aamir Nawaz <[email protected]> wrote:
> 
> Dear Dr. Ray,
> Thanks for kind response. There is still some ambiguities in my mind. 
> 1. Will Additional generators have negative output as representing load? 
> runopf will include them in solving opf, so how they can not effect total 
> generation but only cost evaluation?
> 2. How to include that contingency cost in runopf objective, so output power 
> of all generators are adjusted optimally under given load 
> curtailment/contingency?
> Thanks in advance. 
> 
> Regards,
> Aamir Nawaz.
> 
> On Sat, Dec 22, 2018 at 7:08 AM Ray Zimmerman <[email protected] 
> <mailto:[email protected]>> wrote:
> I don’t think you need to change any of the MATPOWER files. Simply add 
> additional generators to represent load curtailment and then compute the 
> costs of each separately after the fact.
> 
>     Ray
> 
> 
>> On Dec 19, 2018, at 8:38 AM, Aamir Nawaz <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Dear Dr. Ray,
>> I want to include contingency cost (load curtailment cost) in total cost 
>> calculation of RUNOPF. So my task is to get two cost, one for cost of 
>> generation only and other cost for cost of generation plus cost of load 
>> curtailed. Please share your suggestion what changes should i made in files 
>> like totcost.m and opf_costfcn.m. Thanks in advance.
>> 
>> Regards,
>> Aamir Nawaz.
> 
> 
> 

Reply via email to