Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Question about support for Non-Linear Programs

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

Nobody has claimed this yet.

Assessment

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

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.

Description

discussion model formulation question

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?

Dominant language
Python
Stars
257
Forks
87
Avg merge
1d 15h
Merged PRs (30d)
32

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.

More from PyPSA/linopy

All issues in PyPSA/linopy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.