MATPOWER / MATPOWER/matpower

make OPF automatically supply missing gencost

Open
#59 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
MATLAB
Stars
592
Forks
184
PR merge metrics
No merged PRs in 30d

Description

If a user tries to run an OPF with a case that does not define the gencost matrix, it would be nice if MATPOWER (warned and) created a default gencost that used equal linear costs to minimize system active power losses.

It would also make sense to add an option opf.objective that would allow the user to request loss minimization instead of using gencost even when it is provided. There may be other "auto-generated" objective options that could be useful as well.

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

Begin at the OPF entry point and trace how the gencost matrix is handled. Test a case without gencost, then define the behavior for warning and creating equal linear costs that minimize active power losses. Also determine how opf.objective should request loss minimization when gencost is present; done requires both behaviors to be specified and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.