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() uses the load profile from ex_load_profile() 
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]> 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

<<attachment: matlab.zip>>

Reply via email to