Windows Command Line

Setting up and using Gurobi on a Windows system sometimes requires you to type command-line commands. This can be unfamiliar to Windows users, so this section provides a bit of help.

Windows provides a few different options for inputting commands. For simple commands, you can open a Run window, by pressing the Start key and the letter R simultaneously:

\scalebox{1.0}{\includegraphics[width=4in]{graphics/runwindow}}
A command can be typed or pasted directly into this window.

You can also type or paste commands directly into the Search box (towards the bottom left of the desktop on Windows 10):

\scalebox{1.0}{\includegraphics[width=4in]{graphics/startrun}}
While these two interfaces are useful for issuing simple commands, they aren't suited for extensive interactive usage. If you want to launch Gurobi command-line commands and see the resulting output, for example, you'll need a Console window (also known as a Command Prompt window or just a cmd window). To launch a Console window, type cmd into either the Run window or the Search box (as described above).
\scalebox{1.0}{\includegraphics[width=6in]{refman_misc/codedraw8.png}}

This window will remain open, displaying the output from the previous command and waiting for the next command, until you close it.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search