Skip to content

Commit

Permalink
Merge pull request #305 from aszekMosek/patch-1
Browse files Browse the repository at this point in the history
Forward Mosek log to stdout
  • Loading branch information
FabianHofmann authored Jul 9, 2024
2 parents b75a36f + 82ca73d commit a2e556d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions linopy/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import os
import re
import subprocess as sub
import sys
from pathlib import Path
from typing import TYPE_CHECKING, Callable, Dict, Union

Expand Down Expand Up @@ -977,6 +978,8 @@ def run_mosek(

if log_fn is not None:
m.linkfiletostream(mosek.streamtype.log, path_to_string(log_fn), 0)
else:
m.set_Stream(mosek.streamtype.log, sys.stdout.write)

if warmstart_fn is not None:
m.putintparam(mosek.iparam.sim_hotstart, mosek.simhotstart.status_keys)
Expand Down

0 comments on commit a2e556d

Please sign in to comment.