I am creating my log file under the following setup
Model.Params.LogToConsole = 0
Model.Params.LogFile = ''filepath.txt''
, so there is no log on the console but have a separate text file saved.
Now, I want to make some changes to that text file (e.g., delete the file or change the name of the file), but since the text file is not closed (like how the text file object is closed after writing) I cannot do such actions before I end Python.
Is there a way to access the Gurobi log text file object?
Please sign in to leave a comment.