Syntax Error

180 views
Skip to first unread message

Glory Alozie

unread,
Oct 20, 2017, 7:45:21 AM10/20/17
to Gurobi Optimization
I have just installed Gurobi Optimizer 7.5.1 and followed the "solving a simple model" example on the "Quick Start Guide" using the Gurobi command Line but it returns the error message highlighted in read. What could be wrong.


Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
Academic license - for non-commercial use only
Gurobi Interactive Shell (win32), Version 7.5.1
Copyright (c) 2017, Gurobi Optimization, Inc.
Type "help()" for help



gurobi> gurobi_cl c:\gurobi751\win32\examples\data\coins.lp
  File "<stdin>", line 1
    gurobi_cl c:\gurobi751\win32\examples\data\coins.lp
              ^
SyntaxError: invalid syntax

Sonja Mars

unread,
Oct 20, 2017, 7:50:38 AM10/20/17
to gur...@googlegroups.com
Hi,

It looks like you are in the Gurobi Interactive Shell (which is a Python shell). Please take a look here for an introduction on how to getting started:
http://www.gurobi.com/documentation/7.5/quickstart_windows/interactive_shell.html

You cannot run gurobi_cl (which is a command line program) inside a Python shell. Please see here for more details:
http://www.gurobi.com/documentation/7.5/quickstart_windows/solving_a_simple_model_the.html

Best regards,
Sonja


----
Dr. Sonja Mars
Gurobi Optimization - Technical Support
Reply all
Reply to author
Forward
0 new messages