Error in Running Gurobi Optimizer 9.5
AnsweredHello Everyone,
I have installed Gurobi Optimizer 9.5 and managed to obtain an academic license of ID. After installation for the first time, I could see that a folder named 'Gurobi 950' is created. The 'bin' folder inside it contains a lot of executables. I need an executable to run my data in python 3.8. The executable gurobi file to which I am currently setting the path is 'gurobi_cl.exe' which is unable to optimize the problem. Please find the attached screenshot of the error in detail.
The query in priority which I request you to address is whether 'gurobi_cl.exe' is the appropriate solver executable file that needs to be set path to or do I need to undergo any other procedures for the successful operation of the gurobi solver. Please also let me know if you can also see the error screenshot and help me rectify it.
I would be extremely grateful if you can help me out on this
Thank You.
Regards,
Debanjan Mukherjee
-
Hi Debanjan,
The gurobi_cl executable is Gurobi's command line tool and should always be used as such. It seems like you are calling the gurobi_cl executable from within your program. The error you get occurs because the call to Gurobi's command line tool does not solve any model and it does not populate any data objects you use.
You state that you are constructing and solving your model in Python. To achieve this, you should use Gurobi's Python model \(\texttt{gurobipy}\). To install Gurobi's Python module, please follow the instructions in How do I install Gurobi for Python? You can then have a look at our Python webinars and Python examples to get a better understanding of model creation and solution.
Best regards,
Jaromił0
Please sign in to leave a comment.
Comments
1 comment