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

Matpower case21k. AssertionError: occursin(".", matrix_assignment) #854

Open
DimaLPorNLP opened this issue Feb 21, 2023 · 4 comments
Open

Comments

@DimaLPorNLP
Copy link

Dear all,
trying to run some Matpower large cases such as case21k I get the error:
ERROR: AssertionError: occursin(".", matrix_assignment).

I tried to check out the latest code in PowerModels git repo, and repeated the process (include("PowerModels.jl", etc) until I got again a more detailed error:
[warn | InfrastructureModels]: assignments are expected to be made to "mpc" but given: ijs = [
ERROR: AssertionError: occursin(".", matrix_assignment)

1] _parse_matlab_data(lines::Vector{SubString{String}}, index::Int64, start_char::Char, end_char::Char)
    @ InfrastructureModels C:\Users\Dima\.julia\packages\InfrastructureModels\CfX6b\src\io\matlab.jl:135
  [2] _parse_matlab_matrix(lines::Vector{SubString{String}}, index::Int64)
    @ InfrastructureModels C:\Users\Dima\.julia\packages\InfrastructureModels\CfX6b\src\io\matlab.jl:123
  [3] parse_matlab_string(data_string::String; extended::Bool)
    @ InfrastructureModels C:\Users\Dima\.julia\packages\InfrastructureModels\CfX6b\src\io\matlab.jl:43

Any ideas? Do you need the case file to debug?

@ccoffrin
Copy link
Member

This looks like a bug in the parser. I need an exact file name for the data file from the Matpower distribution for testing. I do not see a 21k case. The closest matches I can find are case_ACTIVSg25k.m, which has no issues parsing in PowerModels.

@DimaLPorNLP
Copy link
Author

Thank you Carleton,
for the quick response. How can I send you this case? Is there somewhere I could upload it?

Thanks again!

@ccoffrin
Copy link
Member

I presume this case came from some where online, point me to that place where I can download it.

@DimaLPorNLP
Copy link
Author

DimaLPorNLP commented Feb 21, 2023

I presume this case came from some where online, point me to that place where I can download it.

No unfortunately this is not the case. I got it from somebody else. It is many years ago and there are also other large case cases. I just noticed one can also upload files right here. I have uploaded it as an attachment.
case21k.zip

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants