Sorry, that was supposed to be …
loadprofile.values(:, 1, :) = [
100 120 110;
120 140 125;
150 150 135;
140 155 130;
…
]
> On Mar 17, 2017, at 8:45 PM, 田其生 <[email protected]> wrote:
>
> Dear Ray
> thanks for your help. I may know the direction about how to set the
> load profiles.yet,there may be something wrong in the example which provied
> in the e-mail. In the example,the dimension of loadprofile.values(:, 1,
> 1)(it is 1) doesn't match the dimension of load-martrix(it is 2). when I
> change the loadprofile.values(:, 1, 1) to loadprofile.values(:, :, 1) or
> loadprofile.values(:, :, 1 ,1),although the dimension matched,the MOST alos
> will give me an eeror(loadmd: scenarios dimension of profiles(1).values (2)
> must be 1 or nj_max = 1).
> Is there anything I forget to set?
> the attachment is the program which i rewrited.
>
> thanks
> Tian
> March 18, 2017
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Ray Zimmerman";<[email protected]>;
> 发送时间: 2017年3月17日(星期五) 晚上11:05
> 收件人: "MATPOWER Discussion List"<[email protected]>;
> 主题: Re: Question about how to set load-profile in dynamic optimal power fow
>
> The example in most_ex5_mpopf()
> <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/most/t/most_ex5_mpopf.html>
> uses the load profile from ex_load_profile()
> <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/most/t/ex_load_profile.html>
> which scales all loads at the same time (since rows is set to 0). If you
> want to scale loads individually, you need to set rows to a vector of bus
> indices and add columns for each to the values field. For example, a load
> profile with something like the following, would scale loads at buses 1, 3
> and 5 according to the values in the 3 columns of the values field ...
>
> loadprofile = struct( ...
> 'type', 'mpcData', ...
> 'table', CT_TLOAD, ...
> 'rows', [1 3 5], ...
> 'col', CT_LOAD_ALL_PQ, ...
> 'chgtype', CT_REP, ...
> 'values', [] );
> loadprofile.values(:, 1, 1) = [
> 100 120 110;
> 120 140 125;
> 150 150 135;
> 140 155 130;
> ...
> ]
>
> You can also scale the load by areas, as opposed to by individual load, by
> setting table to 'CT TAREALOAD’.
>
> Hope this helps,
>
> Ray
>
>
>> On Mar 14, 2017, at 9:57 PM, 田其生 <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> Dear all
>> I need help about dealing with the dynamic optimal power flow through
>> most. if there are not only one bus load which are varying with time,how to
>> set the load-profile (for example in ex_load_profile).It will be much
>> better and clearer,if i get a simple example.
>>
>> thanks
>>
>> Qisheng Tian
>>
>> March 15, 2017
>
> <matlab.zip>