How can I pass the environment parameters, like the time_limit or optimality gap for GUROBI solver in cvxpy?
Here is what I tried according to cvxpy documentation which gives this error: AttributeError: 'dict' object has no attribute '_cenv'
import cvxpy as cp
problem = cp.Problem(objective, constraints)
...
env = {
"time_limit": 1
}
problem.solve(solver='GUROBI', env=env)
The process for CPLEX is more straightforward I guess. I couldn't find a solution for GUROBI though.