I think it is an issue with your MATLAB path. Did you follow the directions 
exactly as spelled out in the MATPOWER installation instructions? Did you maybe 
add all subdirectories of the MATPOWER directory? You don't want to have the 
@opf_model directory in your MATLAB path, only it's parent directory.

And just to be clear the comment from José about using older versions of Matlab 
appears to be related to PSAT. It certainly does not apply to MATPOWER, which 
should work just fine on all recent versions of Matlab (and Octave, for that 
matter).

-- 
Ray Zimmerman
Senior Research Associate
419A Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645




On Dec 17, 2012, at 8:06 AM, José Roberto Camacho <[email protected]> wrote:

> Dear Sir,
> 
> It seems you have a problem on the matlab optimization toolbox. Make sure you 
> have
> optimization toolbox installed correctly and be aware that PSAT does not run
> properly
> on newer versions of Matlab. Use a Matalab version 2009 or below.
> 
> Sincerely yours,
> 
> -- 
> Prof. José Roberto Camacho (PhD)
> NUPEA - Center for Research and Extension in Alternative Energy
> UFU - Electrical Engineering, Uberlandia, MG, Brazil
> e.mail e msn: [email protected], skype:jrcamacho
> Phone:+55.34.3239.4734
> 
> Em Seg, Dezembro 17, 2012 9:43 am, Amal Elramly escreveu:
>> I can not run optimal power flow and this error message appears during
> execting
>> test_mapower file:
>>  
>>>> test_matpower
>> t_loadcase..........ok
>> t_ext2int2ext.......ok
>> t_jacobian..........ok
>> t_hessian...........ok
>> t_totcost...........ok
>> t_modcost...........ok
>> t_hasPQcap..........ok
>> t_mips..............ok
>> t_qps_matpower......ok (180 of 288 skipped)
>> t_pf................ok
>> t_opf_fmincon.......??? Error using ==> class
>> The CLASS function must be called from a class constructor.
>> Error in ==> opf_model at 216
>>     om = class(om, 'opf_model');
>> Error in ==> opf_model at 220
>>     om = opf_model;
>> Error in ==> opf_setup at 218
>> om = opf_model(mpc);
>> Error in ==> opf at 219
>> om = opf_setup(mpc, mpopt);
>> Error in ==> runopf at 96
>> [r, success] = opf(casedata, mpopt);
>> Error in ==> t_opf_fmincon at 82
>>     [baseMVA, bus, gen, gencost, branch, f, success, et] = runopf(casefile,
> mpopt);
>> Error in ==> t_run_tests at 79
>>     feval( test_names{k}, ~verbose );
>> Error in ==> test_matpower at 135
>> t_run_tests( tests, verbose );
>> 
>> which file is needed as a class constructor??
>> 
>> Regards,
>> Amal Elramly
> 
> 
> 
> 
> 
> 
> 

  • error Amal Elramly
    • Re: error José Roberto Camacho
      • Re: error Ray Zimmerman

Reply via email to