AMPL API Unrecognized license format

20 views
Skip to first unread message

Lorenzo Magnolfi

unread,
Apr 27, 2016, 10:58:11 PM4/27/16
to AMPL Modeling Language
Hi,

I am trying to run AMPL api in Matlab 2016a, and after installation, upon running firstExample, I get the following error message:

Error using AMPL (line 21)
Java exception occurred:
com.ampl.LicenseException: Unrecognized license format. AMPL
version:
AMPL Version 20141216 (Intel icl EMT64 10.1.029, 64-bit)


at com.ampl.AMPL.<init>(AMPL.java:201)

at com.ampl.AMPL.<init>(AMPL.java:140)


Error in firstExample (line 3)
  ampl = AMPL;

I have an AMPL academic license.

Any idea of what goes wrong? Thanks.

Best,
Lorenzo

Robert Fourer

unread,
Apr 29, 2016, 2:12:54 PM4/29/16
to am...@googlegroups.com
If you have a license file "ampl.lic" on your system then please send it to us at lice...@ampl.com, and we will investigate why the API is reporting an "unrecognized license format".

If you do not have this license file, then you may by using an AMPL program obtained from one of our distributors who uses a different license manager. I noticed in particular, from one of your earlier posts, that you are using the solver "knitroampl" which is the version of Knitro for AMPL that is distributed by Artelys; thus it might be that you are also using an AMPL program obtained from Artelys, If so, then you will not have our standard license file and you will need to contact Artelys AMPL support (suppor...@artelys.com) for help in connecting to the AMPL API.

Bob Fourer
am...@googlegroups.com

=======

Lorenzo Magnolfi

unread,
Apr 29, 2016, 2:27:37 PM4/29/16
to AMPL Modeling Language, 4...@ampl.com
Thank you for your answer, it is indeed the case that I am using AMPL with a license obtained from Artelys. I will be in touch with them as you suggest.

Best,
Lorenzo
Reply all
Reply to author
Forward
0 new messages