Skip to content

GurobiDirect does not save logfiles when requested #3589

Open
@bknueven

Description

@bknueven

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions