PyPSA / linopy

Linear optimization with N-D labeled arrays in Python
https://linopy.readthedocs.io
MIT License
165 stars 51 forks source link

io: allow setting progress=False in solver to disable stdout even for larger models #375

Closed maurerle closed 1 day ago

maurerle commented 2 weeks ago

This was unnecessary when solving a lot of problems programatically.

The log param of the solve function does have three states:

For better usage, the log param is renamed to progress on all occurrences

maurerle commented 1 week ago

Looks good from my side now, @lkstrp can you take another look please? :)

maurerle commented 1 week ago

If you add the remarks yourself, that would be great! You should be able to push to my branch

From my point of view, the deprecation is not really necessary as there did not exist a public api to set log before anyway.

lkstrp commented 1 day ago

Agreed, thank you @maurerle !