sir
when converting fixed loads to dispatchable we need to save with some fname
from below code.
 MPC = load2disp(MPC0);
    MPC = load2disp(MPC0, FNAME);
    MPC = load2disp(MPC0, FNAME, IDX);
    MPC = load2disp(MPC0, FNAME, IDX, VOLL);

for that i am writng as below

 mpc=loadcase(case6ww);
mpc1=load2disp(mpc);
mpc1=load2disp(mpc,'dispatch');
Error using savecase (line 156)
savecase: Permission denied

Error in load2disp (line 98)
    savecase(fname, mpc, '2');
this is the error i am getting.what to do


On Thu, Feb 18, 2016 at 10:32 PM, Ray Zimmerman <r...@cornell.edu> wrote:

> You are attempting to save a file named ‘mouni’ to your current working
> directory, where you apparently have no write permissions. Either change
> directory to somewhere where you have write permissions, or specify the
> full path in the file name you pass to load2disp().
>
> I’m not sure what you think you are doing with the path you are providing
> in the ‘file’ variable, but your code doesn’t use any of that information.
>
>    Ray
>
>
>
> On Feb 18, 2016, at 11:52 AM, VANJARAPU VENKATARAONAIDU <
> venkataraovanjar...@gmail.com> wrote:
>
> sir
> whatever the path i am setting the same error i am getting.
>  file='E:\project\matpower\mouni.txt';
> >> [pathstr,name,ext]=fileparts(file)
>
> pathstr =
>
> E:\project\matpower
>
>
> name =
>
> mouni
>
>
> ext =
>
> .txt
>
> >> mpc=loadcase(case6ww);
> >> mpc1=load2disp(mpc);
> >> mpc1=load2disp(mpc,'mouni');
> Error using savecase (line 156)
> savecase: Permission denied
>
> Error in load2disp (line 98)
>     savecase(fname, mpc, '2');
> what is the solution
>
> On Thu, Feb 18, 2016 at 9:56 PM, Ray Zimmerman <r...@cornell.edu> wrote:
>
>> The error is “Permission denied”, so it looks like you are attempting to
>> save the file to a location where you do not have write permissions.
>>
>>     Ray
>>
>>
>>
>> On Feb 18, 2016, at 8:38 AM, VANJARAPU VENKATARAONAIDU <
>> venkataraovanjar...@gmail.com> wrote:
>>
>> i tried like this but i am getting as below.what i have to do.
>> >> file='D:\matpower\mouni.txt';
>> >> [pathstr,name,ext]=fileparts(file)
>>
>> pathstr =
>>
>> D:\matpower
>>
>>
>> name =
>>
>> mouni
>>
>>
>> ext =
>>
>> .txt
>>
>> >> mpc=loadcase('case9');
>> >> mpc1=load2disp(mpc);
>> >> mpc1=load2disp(mpc,'mouni');
>> Error using savecase (line 156)
>> savecase: Permission denied
>>
>> Error in load2disp (line 98)
>>     savecase(fname, mpc, '2');
>>
>> >>
>>
>> On Wed, Feb 17, 2016 at 2:57 AM, Abhyankar, Shrirang G. <abhy...@anl.gov>
>> wrote:
>>
>>> The file name needs to be a string.
>>>
>>> mpc = load2disp(mpc0,’mo’);
>>>
>>>
>>> From: VANJARAPU VENKATARAONAIDU <venkataraovanjar...@gmail.com>
>>> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
>>> Date: Tuesday, February 16, 2016 at 7:47 AM
>>> To: "MATPOWER-L@cornell.edu" <MATPOWER-L@cornell.edu>
>>> Subject: price sensitive loads
>>>
>>>  when i tried to use load2disp function using fname.i am getting like
>>> this.how to use fname and savecase.please quote with a small example.i
>>> tried somany times but i didn't get.
>>>
>>>
>>> file='D:\matpower\mo.txt';
>>> >> [pathstr,fname,ext]=fileparts(file)
>>>
>>> pathstr =
>>>
>>> D:\matpower
>>>
>>>
>>> fname =
>>>
>>> mo
>>>
>>>
>>> ext =
>>>
>>> .txt
>>>
>>> >> mpc0=loadcase(case14);
>>> >> mpc=load2disp(mpc0);
>>> >> mpc=load2disp(mpc0,mo);
>>> Undefined function or variable 'mo'.
>>>
>>> Did you mean:
>>> >> mpc=load2disp(mpc0,mod);
>>>
>>>
>>
>>
>
>

Reply via email to