Open
Description
Summary
The logfile
keyword argument to solve
does not work correctly for GurobiDirect
.
Steps to reproduce the issue
from pyomo.environ import *
m = ConcreteModel()
m.x = Var()
m.c = Constraint(expr=(0.0, m.x, 1.0))
m.o = Objective(expr=m.x)
s = SolverFactory("gurobi_direct")
s.solve(m, logfile="gurobilog.out")
gurobilog.out
is nowhere to be found. This seems to work correctly for other solvers, e.g., xpress, ipopt, cbc,..
Information on your system
Pyomo version: 32591c1
Python version: 3.12.9
Operating system: macOS
How Pyomo was installed (PyPI, conda, source): source
Solver (if applicable): Gurobi