It looks to me like either you didn’t restart Matlab (or at least clear
classes) after upgrading from MATPOWER 4.1 to 5.1, or you have a corrupted
install of MATPOWER (e.g. files from multiple versions in your Matlab path).
Ray
> On Sep 16, 2015, at 8:58 AM, Gamze Dogan <[email protected]> wrote:
>
> Dear all,
>
> To complete my previous e-mail (see below) , I also get the following message:
>
> Warning: Element(s) of class 'opf_model' do not match the current constructor
> definition. The element(s) have been converted to structures
>
> If anybody can help me resolve the problem I would really appreciate it,
>
> Thank you,
>
> Gamze
>
> From: [email protected]
> To: [email protected]
> Subject: Opf convergence problem
> Date: Mon, 14 Sep 2015 11:14:15 +0000
>
> Dear all,
>
> I have a convergence problem when running the OPF. When I used the Matpower
> vesion 4.1 my casefile converged in pf but not in opf. I have recently
> installed the new version of Matpower 5.1 and when running the opf I get the
> following message which I do not understand:
>
> ??? Error using ==> class
> Cannot change the number of fields of class 'opf_model' without first typing
> 'clear
> classes'.
> Error in ==> opf_model.opf_model at 66
> om = class(s, 'opf_model', om);
> Error in ==> opf_setup at 202
> om = opf_model(mpc);
> Error in ==> opf at 200
> om = opf_setup(mpc, mpopt);
> Error in ==> uopf at 117
> [results, success] = opf(mpc, mpopt);
> Error in ==> runuopf at 78
> [r, success] = uopf(casedata, mpopt);
>
> Could someone explain to me what the problem is? Thank you for any
> suggestion. You can find attached the case file (mpz) the results of the pf
> (resultsLF) and the results of the opf (resultsOPF) when using Matpower 4.1
>
> Any suggestion on how not to get that error message and/or how to reach
> convergence is welcome,
>
> Thank you,
>
> Gamze
> <case5998.mat>