Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error in opf_setup with case33bw on older Matlab #53

Closed
rdzman opened this issue Nov 26, 2018 · 0 comments
Closed

fatal error in opf_setup with case33bw on older Matlab #53

rdzman opened this issue Nov 26, 2018 · 0 comments
Assignees
Labels

Comments

@rdzman
Copy link
Member

rdzman commented Nov 26, 2018

Thanks to to Jane Cheung for reporting this on Nov 21, 2018 on the MATPOWER-L mailing list (direct link not currently available to due to issues with the MATPOWER-L archive).

Running runopf('case33bw') results in the following fatal error in Matlab versions prior to R2016b (9.1).

>> runopf('case33bw')
Error using +
Matrix dimensions must agree.

Error in opf_setup (line 212)
    cpg(ip1) = cpg(ip1) + pcost(ip1, COST) * baseMVA;

Error in opf (line 225)
om = opf_setup(mpc, mpopt);

Error in runopf (line 75)
[r, success] = opf(casedata, mpopt);

This appears to be a caused by a bug in Matlab where it throws an error when adding empty matrices if any of the dimensions do not match.

@rdzman rdzman added the bug label Nov 26, 2018
@rdzman rdzman self-assigned this Nov 26, 2018
@rdzman rdzman closed this as completed in bbe289b Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant