MATPOWER / MATPOWER/mips

Use KLU mex interface in mplinsolve for GNU Octave support

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.