PyPSA / PyPSA/linopy

Question about support for Non-Linear Programs

Open
#384 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

discussion model formulation question
Dominant language
Python
Stars
257
Forks
87
Avg merge
1d 3h
Merged PRs (30d)
29

Description

Thanks for your efforts with linopy, they are much appreciated :)
I know this project has linear in its name, but it does support some non-linearity in programs. I would really like to use linopy to replace the gams dependency of message_ix over the medium term, but I was recently made aware that parts of our code supply the NLP option to the gams solver (for which we mostly use cplex at the moment, I think):

    SOLVE MESSAGE_MACRO MAXIMIZING UTILITY USING NLP ;

So I'm now wondering: is this already supported in linopy using either cplex or highs as the solver? If not, do you have any plans to add support?

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 message_ix/model/MACRO/macro_solve.gms section and the referenced GAMS solver-model documentation to define the NLP requirement. Then inspect linopy's solver support for CPLEX and HiGHS. Done means establishing whether the required non-linear programs are supported and, if not, documenting a concrete support plan or scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.