Skip to content

feat: add pyoptinterface io_api#597

Open
coroa wants to merge 15 commits intoPyPSA:masterfrom
coroa:feat/pyointerface
Open

feat: add pyoptinterface io_api#597
coroa wants to merge 15 commits intoPyPSA:masterfrom
coroa:feat/pyointerface

Conversation

@coroa
Copy link
Member

@coroa coroa commented Feb 28, 2026

Changes proposed in this Pull Request

Adds an alternative io_api="poi" option, which uses pyoptinterface to communicate the optimisation problem directly to the solvers.

Initial testing is quite promising for gurobi, comparable speed on large instances, faster on small ones (for highs the effects are limited).

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in doc.
  • Unit tests for new features were added (if applicable).
  • A note for the release notes doc/release_notes.rst of the upcoming release is included.
  • I consent to the release of this PR's code under the MIT license.

@coroa coroa force-pushed the feat/pyointerface branch from aed9652 to abd3bad Compare March 1, 2026 01:23
@metab0t
Copy link

metab0t commented Mar 2, 2026

For highs, you can also use set_raw_parameter: https://github.com/metab0t/PyOptInterface/blob/b3e1f455885de5734f42ccdfbd70827b638110fb/src/pyoptinterface/_src/highs.py#L419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants