# http://www.gurobi.com/documentation/7.5/refman/mipgap2.html
opt.options['MIPGap'] = 0.1 # does not work
opt.options['mipgap'] = 0.1 # works
# http://www.gurobi.com/documentation/6.0/refman/outputflag.html#parameter:OutputFlag
opt.options['OutputFlag'] = 0 # does not work
opt.options['outputflag'] = 0 # does not work
# http://www.gurobi.com/documentation/6.0/refman/logfile.html#parameter:LogFile
opt.options['LogFile'] = '' # does not work
opt.options['logfile'] = '' # does not work
# http://www.gurobi.com/documentation/6.0/refman/logtoconsole.html#parameter:LogToConsole
opt.options['LogToConsole'] = 0 # does not work
opt.options['logtoconsole'] = 0 # does not work
results = opt.solve(model)
--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Do I understand it right from the docs that if a solver provides a Python-interface, this would be the faster solution as it does not create any LP-files?
File "/home/cord/.anaconda3/lib/python3.6/site-packages/pyomo/solvers/plugins/solvers/direct_solver.py", line 68, in solve
self.available(exception_flag=True)
File "/home/cord/.anaconda3/lib/python3.6/site-packages/pyomo/solvers/plugins/solvers/direct_or_persistent_solver.py", line 277, in available
"plugin").format(type(self)))
pyutilib.common._exceptions.ApplicationError: No Python bindings available for <class 'pyomo.solvers.plugins.solvers.gurobi_direct.GurobiDirect'> solver plugin
Hi Gabe,
it took me a while but now I want to test the gurobi Python interface against the persistent option you have implemented recently.
When I switch from calling solver = SolverFactory('gurobi', solver_io=‘lp’) to solver = SolverFactory('gurobi', solver_io=‘python’) I get an error:
File "/home/cord/.anaconda3/lib/python3.6/site-packages/pyomo/solvers/plugins/solvers/direct_solver.py", line 68, in solve
self.available(exception_flag=True)
File "/home/cord/.anaconda3/lib/python3.6/site-packages/pyomo/solvers/plugins/solvers/direct_or_persistent_solver.py", line 277, in available
"plugin").format(type(self)))
pyutilib.common._exceptions.ApplicationError: No Python bindings available for <class 'pyomo.solvers.plugins.solvers.gurobi_direct.GurobiDirect'> solver plugin
What am I missing here? Do I have to adapt the solver name to gurobi_python or something similar?
File "/home/cord/.anaconda3/lib/python3.6/site-packages/pyomo/solvers/plugins/solvers/direct_solver.py", line 68, in solve
self.available(exception_flag=True)
File "/home/cord/.anaconda3/lib/python3.6/site-packages/pyomo/solvers/plugins/solvers/direct_or_persistent_solver.py", line 277, in available
"plugin").format(type(self)))
pyutilib.common._exceptions.ApplicationError: No Python bindings available for <class 'pyomo.solvers.plugins.solvers.gurobi_direct.GurobiDirect'> solver plugin