"Cannot find 'solver'" and other Errors

807 views
Skip to first unread message

Nic Woyak

unread,
Jun 28, 2016, 2:42:09 PM6/28/16
to AMPL Modeling Language
I am using AMPL on a university machine and no matter the solver I option to use (minos, cplex, gurobi) I get the "Cannot find 'solve'" error.

I told this to the AMPL support team and they replied:
The solver executable needs to be in the same folder or directory as the AMPL executable, or else in the system search path.  For Linux and MacOS installations, you may need to specify . for the current directory explicitly -- for example,
    option solver "./gurobi";

After trying this I now get the following:
Cannot invoke ./cplex: Permission denied
exit code 4
<BREAK>

What might cause this kind of issue?

Robert Fourer

unread,
Jun 30, 2016, 1:51:09 PM6/30/16
to am...@googlegroups.com
This error message indicates the file "cplex" is installed on your system in your AMPL folder or directory, but that it is not a file that can be executed. This can happen for various reasons; "cplex" may actually be a directory or some kind of non-executable file, or it may have been copied without the executable bit turned on, or it may be in a directory where you do not have execution privileges

You may be able to resolve this problem by asking the administrator of the university machine to check that file. Also we may be able to help you if you can provide some additional information:

-- The type of machine you are trying to use (Windows, Linux, or MacOS)

-- A screenshot or directory listing of the folder/directory where AMPL and the solvers are installed. Under Linux "ls -l" should be used for the listing.

-- If on Linux or MacOS, a copy of the output from the command "file cplex" when run in the folder/directory where the "cplex" files is located.

Bob Fourer
am...@googlegroups.com

=======
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages