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

Error when run MOST test #49

Open
MercuryYang opened this issue Dec 7, 2024 · 3 comments
Open

Error when run MOST test #49

MercuryYang opened this issue Dec 7, 2024 · 3 comments

Comments

@MercuryYang
Copy link

Hi, I just installed the matpower and the matpower test runs fine. However, when I run the test_most. The program reports: Unrecognized field name "Rrp" when runs to t_most_uc. I would like to ask if there is a specific setup or configuration I might have missed for MOST, or if there is a recommended solution to resolve this issue.

@rdzman
Copy link
Member

rdzman commented Dec 7, 2024

Are you using MATLAB R2024b with the Optimization Toolbox as your default solver?

If so, the issue is a due to a bug in the new HiGHS-based intlinprog that requires turning of the presolve option to get the correct answer for some of these tests. The tests have been updated in the latest master branch on GitHub.

You can either update to the latest master branch for MOST. That will allow the tests to pass, but you may still have to disable presolve for your own cases if they run into this particular bug.

mpopt = mpoption(mpopt, 'intlinprog.Presolve', 'off');

Or, if you have access, you can install another solver like Gurobi. That should allow all tests to pass and avoid the buggy intlinprog for your own cases.

@MercuryYang
Copy link
Author

Thank you for your response, sir.

Yes, I am using the MATLAB R2024b with the Optimization Toolbox as my default solverI. I tried with the example case in the manualand the it works.

Currently, I am trying to analyze the provided case, c118swf. However, after reviewing the manual, I noticed that running MOST on such a case typically requires additional .m files, such as xgd.m and transmat.m. As I am a beginner with MOST, I would like to ask if we need to manually create these required files for the c118swf case, or there are provided related files for run that case.

@rdzman
Copy link
Member

rdzman commented Dec 30, 2024

It turns out that c118swf is used by one of the test scripts, namely t_most_w_ds. Unfortunately, it looks like that test script assembled the input mdi manually for that case, rather than by supplying the other input files and simply calling loadmd(). I don't think it should be too difficult to translate those inputs into the equivalent input files for loadmd(). If you have time to do that, I'd be happy to include them and modify this test to use the simpler standard way to create the mdi.

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