Re: Adding Wind Generation to Profiles

2017-09-21 Thread Joshua Sebben
By the way, I have also tried setting the row count to [1 2 3 4 5 6 7] for my 7 extra generators that I want to add, however when I run my code I get an error: Error using apply_profile (line 148) apply_profile: third dimension of profile.values should match length of pro= file.rows Erro

Re: Adding Wind Generation to Profiles

2017-09-21 Thread Stephen Suffian
I also couldn't figure it out, but I got around it by adding a separate profile for each generator and changing the rows value. So if a wind generator is in row 5, you would have the struct look like this below. windprofile = struct( ... 'type', 'mpcData', ... 'table', CT_TGEN, ... 'r

Re: Adding Wind Generation to Profiles

2017-09-21 Thread Joshua Sebben
Stephen, Thank you for your reply. casefile = 'case30_modified_MedPen'; mpc = loadcase(casefile); xgd = loadxgendata('xgd_uc_30_MedPen', mpc); [iwind, mpc, xgd] = addwind('wind_uc_30_MedPen', mpc, xgd); profiles = getprofiles('wind_profile1', iwind); profiles = getprofiles('wind_profile2', iwind)

Re: Adding Wind Generation to Profiles

2017-09-22 Thread Stephen Suffian
Check out the 'help get_profile'. Much like you pass the previous profiles object on the load profile line, you can pass the previous profiles object on the other lines: profiles = getprofiles('wind_profile1',iwind); profiles = getprofiles('wind_profile2',profiles,iwind); profiles = getprofiles('l

RE: Adding Wind Generation to Profiles

2017-09-23 Thread Joshua Sebben
Stephen, Thank you so much! That works a treat! Regards, Josh From: Stephen Suffian Sent: Saturday, 23 September 2017 3:03 AM To: MATPOWER discussion forum Subject: Re: Adding Wind Generation to Profiles Check out the 'help get_profile'. Much like you pass the previous profiles

Re: Adding Wind Generation to Profiles

2017-09-27 Thread Ray Zimmerman
To: MATPOWER discussion forum <mailto:matpowe...@list.cornell.edu> > Subject: Re: Adding Wind Generation to Profiles > > Check out the 'help get_profile'. Much like you pass the previous profiles > object on the load profile line, you can pass the previous profiles object on > the