lanl-ansi / PowerModels.jl

A Julia/JuMP Package for Power Network Optimization
https://lanl-ansi.github.io/PowerModels.jl/stable/
Other
395 stars 148 forks source link

Matlab Data Compatibility #134

Open ccoffrin opened 7 years ago

ccoffrin commented 7 years ago

All .m files should work with Matlab, but this is not regularly tested; So errors my arise. Fixes are always welcome.

The data files may include features that are not supported by Matpower.

Based on the comment in #131, it seems that,

    'Area 1'    123 987 'Slack \'Bus\' 1'   1.23    ;

from case3.m does not parse in Matlab because the quotes are not escaped properly? I was just guessing when I wrote this one.

frederikgeth commented 7 years ago

Indeed, we renamed it to "'Slack Bus 1'" for the case3_dc.m as well.

ccoffrin commented 7 years ago

It looks like two single quotes is the correct Matlab escape character?

https://www.mathworks.com/matlabcentral/newsreader/view_thread/31522

If so, I can update the parser to support this.