Thank you for the suggestion.
I applied this way but the getprofile for solar is giving an error.
As I have used the following lines of code for wind, solar and load profiles.
"
[iwind, mpc, xgd] = addwind('ex_wind_three', mpc, xgd);
[isolar, mpc, xgd] = addwind('ex_solar_uc', mpc, xgd);
nt=24;
nj=3;
transmat = ex_transmat(nt);
profiles = getprofiles('ex_wind_profile_edit1', iwind);
profiles = getprofiles('ex_solar_profile',profiles,isolar);
profiles = getprofiles('ex_load_profilenew',profiles);
"

And it didn't work, the results give zero solar power dispatched and the solar 
seams off throughout 24 hours
After that I changed it to :
"
profiles = getprofiles('ex_wind_profile_edit1', iwind);
profiles = getprofiles('ex_solar_profile',isolar,profiles);
profiles = getprofiles('ex_load_profilenew',profiles);
"

but this code gives an error of' 'Conversion to double from struct is not 
possible .
How should I use getprofiles for solar, wind and load consecutively.


maliha.
________________________________
From: [email protected] 
<[email protected]> on behalf of Ray Daniel Zimmerman 
<[email protected]>
Sent: Thursday, September 30, 2021 9:05:58 PM
To: MATPOWER-L <[email protected]>
Subject: Re: Stochastic optimal scheduling of Solar PV (in most)

Yes. You can use exactly the same mechanism, including the unmodified addwind 
function to handle solar PV, or any other stochastic generation source, for 
that matter.

If you like, you could even make a copy of the addwind.m function and call it 
addsolar.m and change “wind” to “solar” everywhere (matching capitalization) in 
that file. Then you could have both wind and solar units in your system and 
they would be separate in the genfuel, iwind, and isolar fields of the mpc, 
which might be useful.

   Ray

On Sep 29, 2021, at 1:05 AM, MALIHA SHAH 
<[email protected]<mailto:[email protected]>> 
wrote:

Hay Ray ,

As wind profile and adding wind generation were defined in most manual with 
detailed explanation. Can we use the same method for modelling solar PV by 
using profile and addwind function and only changing the gen matrix for solar 
pv function (changings in the same ex_wind file)?
If not, please guide me through details, how to model stochasticity of solar pv 
and how to call them in order to add into main file ?

Will be very grateful for your response.

Maliha

Reply via email to