Thanku very much sir. On Thu, Mar 23, 2017 at 10:18 PM, Marwan Ahmed Al_asali <[email protected]> wrote:
> Hello sir, > I just want to ask you for optimization by matlab > > > On 23 March 2017 at 21:56, Ray Zimmerman <[email protected]> wrote: > >> The savecase() function is used to create a MATPOWER case file from a >> case struct. For example, suppose you want to take an existing case file, >> say case30.m, and apply a set of changes to it using apply_changes() and >> save the result as a new MATPOWER case file called case30new.m. You >> could do it with the following code … >> >> mpc0 = loadcase('case30'); >> mpc = apply_changes(label, mpc0, chgtab); >> savecase('case30new', mpc); >> >> Now you can use case30new as you would any of the included cases. E.g. >> >> r = runopf('case30new'); >> >> Hope this helps, >> >> Ray >> >> >> On Mar 22, 2017, at 1:41 AM, Akash Tyagi <[email protected]> >> wrote: >> >> Hello sir, >> I just want to ask you a silly question.. >> I tried a lot, but i m not able to understand, hoe the savecase function >> work.? >> Can you please explain with an appropriate exapmle.? >> >> On Tue, Mar 21, 2017 at 9:29 PM, Ray Zimmerman <[email protected]> wrote: >> >>> At the moment, there is only the MATPOWER >>> <http://www.pserc.cornell.edu/matpower/docs/MATPOWER-manual-6.0.pdf> >>> and MOST User’s Manuals >>> <http://www.pserc.cornell.edu/matpower/docs/MOST-manual-1.0.pdf>, the >>> built-in help for each function (also available in the Online Function >>> Reference <http://www.pserc.cornell.edu/matpower/docs/ref/>), and >>> finally the code itself, especially the examples and tests. >>> >>> I realize this is sometimes still inadequate, and I welcome >>> contributions from others to improve the documentation. >>> >>> Were you able to get your load profile working as you expect? Section >>> 5.1.6 in the MOST User’s Manual should have the details, but you’ll also >>> need to be familiar with MATPOWER's apply_changes() >>> <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/apply_changes.html> >>> function, described in Section 9.3.5 of the MATPOWER User’s Manual. >>> >>> Feel free to continue to ask specific questions here. And once you >>> understand how it works, if you have suggestions for changes to the >>> documentation that would help point others in the right direction, that’d >>> be appreciated. >>> >>> Ray >>> >>> >>> >>> On Mar 21, 2017, at 7:48 AM, Akash Tyagi <[email protected]> >>> wrote: >>> >>> Hello sir, >>> Is there any other reference book of MATPOWER, in which the detailed >>> information is given...? >>> Thanks. >>> >>> On Mon, Mar 20, 2017 at 9:00 PM, Ray Zimmerman <[email protected]> wrote: >>> >>>> 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]> 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> >>>> >>>> >>>> >>> >>> >> >> >
