Unfortunately, setting up these profiles is a little more complex than I would 
like.

First of all, setting rows to 0 will make the profile apply to every unit in 
the final gen matrix, including non-wind generators and even dispatchable 
loads. So that’s probably not what you want.

However, there is a subtlety in how rows is interpreted, depending on whether 
you are calling the getprofiles() function with an idx argument or not. If not, 
then rows refers to the row index in the final gen matrix, i.e. gen(rows, …). 
If so, then rows is an index into the idx vector provided to getprofiles(), so 
it applies to gen(idx(rows), …). This allows you to add wind generators using 
add_wind() and then set up your profile with rows that address them 
consecutively as 1, 2, 3 …

Hope this helps,

    Ray



On Jul 7, 2021, at 3:56 PM, MALIHA SHAH 
<mshaheep19....@student.nust.edu.pk<mailto:mshaheep19....@student.nust.edu.pk>> 
wrote:

thankyou for the suggestion.
Another question is how to use wind profile provided in example code for more 
than 1 generator. I changed the rows value from 1 to 0 in order to apply for 
all but the results indicate as the other generators are off( profile does not 
work for all generators). Secondly,  from the discussion list I got an answer 
explaining the row and values field of wind_profile function for 3 generators. 
But it did not work. You can check the photos attached, showing the results and 
the answer from discussion list which I tried in my code.

thanking you for your time.

Maliha Shah
________________________________
From: 
bounce-125732211-89272...@list.cornell.edu<mailto:bounce-125732211-89272...@list.cornell.edu>
 
<bounce-125732211-89272...@list.cornell.edu<mailto:bounce-125732211-89272...@list.cornell.edu>>
 on behalf of Ray Daniel Zimmerman <r...@cornell.edu<mailto:r...@cornell.edu>>
Sent: Thursday, 24 June 2021 11:20 PM
To: MATPOWER-L <matpowe...@list.cornell.edu<mailto:matpowe...@list.cornell.edu>>
Subject: Re: How to load Pd in a loadprofile ,when load buses are approximately 
30 .

The example in 
most/lib/t/ex_load_profile.m<https://matpower.org/docs/ref/matpower7.1/most/lib/t/ex_load_profile.html>
 will apply to all loads, whether fixed (PD/QD columns of bus) or dispatchable 
(negative gen). The profiles in MOST use the 
apply_changes()<https://matpower.org/docs/ref/matpower7.1/lib/apply_changes.html>
 function described in Section 9.3.5 of the User’s 
Manual<https://matpower.org/docs/MATPOWER-manual-7.1.pdf>. See Table 9-4 for 
the details of how to make your changes apply to only fixed, or only 
dispatchable, etc.

Hope this helps,

    Ray



On Jun 24, 2021, at 1:08 AM, MALIHA SHAH 
<mshaheep19....@student.nust.edu.pk<mailto:mshaheep19....@student.nust.edu.pk>> 
wrote:

Respected Ray,
How can I make a varying loadprofile, which contains 30 load buses 
approximately.  As in the example most , there was one load bus which was coded 
negative generation . How can the Pd given in case 30 included in profiles in 
order to run it smoothly like in the example.

Will be thankful.
Maliha


Get Outlook for Android<https://aka.ms/AAb9ysg>

<all 3 are zero.JPG><followed suggestion.JPG><profile values.JPG>


Reply via email to