PyPSA / PyPSA/linopy

More control over solver logs and printing to console

Open
#504 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement solver interface
Dominant language
Python
Stars
257
Forks
87
Avg merge
1d 3h
Merged PRs (30d)
29

Description

I would appreciate an easy way to not only set the log file for a solver to write into, but also to deactivate the stdout print during a solve process.
This would remove the clutter when solving multiple small models.

On top of that, a way to kook into the text stream of the solving progress could be nice, but that's less important.

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 locating the solver logging configuration and the solve entry point. Check how log files and stdout output are currently controlled, then define completion as allowing stdout printing to be disabled while retaining solver logs; exposing the solving-progress text stream is an optional extension mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
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.