Use KLU mex interface in mplinsolve for GNU Octave support
Nobody has claimed this yet.
- Dominant language
- MATLAB
- Stars
- 15
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
The lu function in GNU Octave uses UMFPACK as a solver. As previously discussed on the mailing lists, there are performance benefits to be found using KLU:
https://www.mail-archive.com/matpower-dev-l@cornell.edu/msg00006.html
https://www.mail-archive.com/matpower-l@cornell.edu/msg03040.html
GNU Octave doesn't follow the same rules as MATLAB for switching to the Gilbert-Peierls algorithm when lu is called with a certain number of arguments. However, KLU includes a mex interface that could be called explicitly if installed. This would make the improvements that were introduced in https://github.com/MATPOWER/matpower/pull/7 available when running Octave.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked mailing-list discussions and the mplinsolve entry point, then review the KLU MATLAB mex interface and the changes from PR #7. Done means Octave can use KLU explicitly when it is installed, while preserving the existing solver behavior otherwise.
Written by the indexing model from the issue text.
Assessment
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100