How to save a file with the log of Gurobi solver in JuMP

Set the LogFile attribute: LogFile - Gurobi Optimization

using JuMP, Gurobi
model = Model(Gurobi.Optimizer)
set_optimizer_attribute(model, "LogFile", "my_log_file.txt")
2 Likes