Hello!
I am running Windows 7 x64, Anaconda 2 with Python 2.7.
I have the pyomo and the gurobipy packages installed. I have the GUROBI_PATH variable, and the gurobi folder in the path. In the python files, all the includes are working.
However, I cannot make SolverFactory to find Gurobi. I tried it from a console without PyDev, too, I always get the following error:
RuntimeError: Attempting to use an unavailable solver.
The SolverFactory was unable to create the solver "gurobi"
and returned an UnknownSolver object. etc etc
I tried specifying the path manually, with no success. This is my code:
from pyomo.core.base.PyomoModel import AbstractModel
from pyomo.opt import SolverFactory
model = AbstractModel()
opt = SolverFactory("gurobi", executable='c:/Programs/gurobi650/win64/bin/gurobi_cl.exe')
I have pyomo.extras and openopt packages installed, but the error is the exact same with "nlp", "nlpopt" or any other solvers. Strangely, if and only if I put "ipopt", I get the following error message:
RuntimeError: The asl solver plugin was not registered as a valid solver plugin - cannot construct solver plugin with IO mode=nl
Am I doing something completely wrong? How should I give the exact address to the .exe file to make it work? Should the SolverFactory always give UnknownSolver objects?
Thank you very much for any help, I am stuck here for 2 days now.