MATPOWER / matpower

MATPOWER – steady state power flow simulation and optimization for MATLAB and Octave
https://matpower.org
Other
419 stars 151 forks source link

Pre-Release Test Error in R2023b on Apple Silicon and Windows #209

Closed sergio-dorado closed 5 months ago

sergio-dorado commented 10 months ago

Hi. Now that MATLAB runs natively on Apple Silicon, I decided to try it with MATPOWER. While setting up the pre-release, I ran into the following test error (on R2023b). I did the same experiment with a Windows computer (Intel processor) on R2023b and got the same error.

Do you have any ideas of what might be causing this (other than linprog not accepting the given x0 argument)?

image
rdzman commented 10 months ago

Yes, this is a known issue due to an incompatible change made by MATLAB to linprog() in R2023a. It was fixed in the master branch of MP-Opt-Model, but I have not done a full MP-Opt-Model or MATPOWER release since the fix. I know. Both are long overdue.

The easiest fix is to grab the latest MP-Opt-Model from GitHub and use it to replace the mp-opt-model subdirectory in your MATPOWER installation. That should fix the problem.

FWIW, I’m running everything on the Apple Silicon native MATLAB R2023b without issues … except some of the solvers aren’t available yet (e.g. Gurobi, Knitro, and I haven’t yet gotten a working IPOPT MEX file).