Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
Expand all | Collapse all

CPLEX license file error

  • 1.  CPLEX license file error

    Posted Wed April 28, 2010 03:08 PM

    Originally posted by: willrecker


    I installed the Full version of CPLEX12.1 and downloaded the license file "access.ilm" in C:\ILOG\ILM. I am getting the following error when I try to run cplex.
    Error 32201 ILM Error 16: CPLEX: license file not found or unreadable.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX license file error

    Posted Wed April 28, 2010 03:11 PM

    Originally posted by: mlapp007


    Hi,

    You need to set the following environmental variable in your system.

    ILOG_LICENSE_FILE

    and set to the location of your license file.

    Cheers,

    Marcial
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX license file error

    Posted Wed April 28, 2010 07:15 PM

    Originally posted by: willrecker


    I had already done that. It still doesn't work.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: CPLEX license file error

    Posted Wed April 28, 2010 07:22 PM

    Originally posted by: GuangFeng


    Can you try to follow the instructions in the FAQ below

    http://www-01.ibm.com/support/docview.wss?uid=swg21400365

    and see if that solves your problem?
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: CPLEX license file error

    Posted Wed April 28, 2010 08:37 PM

    Originally posted by: willrecker


    Thanks. That solved it. My text editor must not have saved it as a txt file.
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: CPLEX license file error

    Posted Sat July 03, 2010 02:43 PM

    Originally posted by: MLJ


    Hello,
    I followed the instructions indicated at:
    http://www.ibm.com/developerworks/university/support/ilog.html
    http://download.boulder.ibm.com/ibmdl/pub/software/dw/university/support/ILOGQuickStart.pdf

    Everything is fine: My access file access.ilm has no .txt extension. The environment variable points to the good folder.

    However, I am still getting the error message:
    cplex: CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable
    (see http://support.ilog.com/faqmsg?m=ILM-16&v=2.62f).

    Whatb should I do?
    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: CPLEX license file error

    Posted Sat July 03, 2010 04:25 PM

    Originally posted by: SystemAdmin


    What operating system are you using?

    Does this happen when you run the CPLEX interactive optimizer from a terminal/DOS prompt, or when you run code that uses one of the APIs, or both?

    /Paul
    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: CPLEX license file error

    Posted Fri July 09, 2010 03:37 AM

    Originally posted by: Lexzy


    I happen to have the similar problem.
    The CPLEX interactive optimizer works properly, whileas the API (concert technology with C++) method fails all the way, with the license error same as above.
    #CPLEXOptimizers
    #DecisionOptimization


  • 9.  Re: CPLEX license file error

    Posted Fri July 09, 2010 04:02 AM

    Originally posted by: Lexzy


    update: CPLEX now functions as expected. Didn't change anything but the license error suddenly disappear. No idea.
    #CPLEXOptimizers
    #DecisionOptimization


  • 10.  Re: CPLEX license file error

    Posted Wed June 22, 2011 01:15 PM

    Originally posted by: Hosna


    I have a similar problem.
    My Cplex works fine interactively but when I submit a cplex job to the cluster I am getting the license file not found error message!

    echo $ILOG_LICENSE_FILE
    /cs/public/lib/pkg/cplex/ILM/access.ilm

    which cplex
    /cs/public/lib/pkg/cplex/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_sles10_4.1/cplex

    Any suggestions?

    Thanks,
    Hannah
    #CPLEXOptimizers
    #DecisionOptimization


  • 11.  Re: CPLEX license file error

    Posted Wed June 22, 2011 01:20 PM

    Originally posted by: SystemAdmin


    Are you sure that the environment in which your application runs on the cluster has the ILOG_LICENSE_FILE variable set?
    What job do you submit to the cluster? Is that a program written by you (in which API) or is it the interactive optimizer?
    #CPLEXOptimizers
    #DecisionOptimization


  • 12.  Re: CPLEX license file error

    Posted Wed June 22, 2011 03:57 PM

    Originally posted by: Hosna


    I am trying to run someone else's code to optimize my big set of parameters (~750 parameters).
    I am writing a script, which sets the variables and connects to the cluster and runs cplex then.

    I tried writing the following lines in the script that calls cplex on the cluster to make sure the cluster environment is the same as mine.
    "ILOG_LICENSE_FILE=/cs/public/lib/pkg/cplex/ILM/access.ilm/access.ilm\n"
    "PATH=/cs/public/lib/pkg/cplex/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_sles10_4.1/:\$PATH\n";

    but it did not work.
    I even tried:
    "export =/cs/public/lib/pkg/cplex/ILM/access.ilm/access.ilm\n";
    "PATH=/cs/public/lib/pkg/cplex/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_sles10_4.1/:\$PATH\n";

    and it did not work either!
    any suggestions?
    #CPLEXOptimizers
    #DecisionOptimization


  • 13.  Re: CPLEX license file error

    Posted Wed June 22, 2011 10:59 PM

    Originally posted by: SystemAdmin


    As a first test I would try to launch a script that echos $ILOG_LICENSE_FILE instead of the CPLEX binary on the cluster. This will then show you if the environment variable is set up correctly.
    #CPLEXOptimizers
    #DecisionOptimization


  • 14.  Re: CPLEX license file error

    Posted Thu June 23, 2011 12:48 PM

    Originally posted by: Hosna


    Thanks! I found the problem!
    The path to the license file had a slight error in it.
    #CPLEXOptimizers
    #DecisionOptimization


  • 15.  Re: CPLEX license file error

    Posted Thu July 21, 2011 09:37 PM

    Originally posted by: DP6T_Eddy_Parkinson


    Solution to the error "license file not found or unreadable". Worked for me.
    http://www.farshidhassani.net/2010/09/ibm-ilog-cplex-and-python-nightmare/

    Good clear instructions (am using window 7 not mac)
    #CPLEXOptimizers
    #DecisionOptimization


  • 16.  Re: CPLEX license file error

    Posted Mon February 06, 2012 07:33 PM


  • 17.  Re: CPLEX license file error

    Posted Fri April 06, 2012 12:12 AM

    Originally posted by: RahulPandya


    Sir, I am also facing the same error. Please let me know where do I download the license file. Would you please send me a link. Thanks Rahul.
    #CPLEXOptimizers
    #DecisionOptimization


  • 18.  Re: CPLEX license file error

    Posted Mon October 22, 2012 01:01 PM

    Originally posted by: SystemAdmin


    I use Linux system and Eclipse to program in Java. I am getting license error as follows

    Error 32201: ILM Error 16: CPLEX: licene file not found or unreadable (see http://support.ilog.com/faqmsg?m=ILM-16&v=2.61c).

    I can see that environment has been set up correctly from inside Java program, and I can even read the text in the license file.

    Any ideas?
    #CPLEXOptimizers
    #DecisionOptimization


  • 19.  Re: CPLEX license file error

    Posted Mon October 22, 2012 01:31 PM

    Originally posted by: SystemAdmin


    Just to be sure, these two lines both print "true" from inside your application:
    System.out.println(new java.io.File(System.getenv("ILOG_LICENSE_FILE")).isFile());
    System.out.println(new java.io.File(System.getenv("ILOG_LICENSE_FILE")).canRead());
    

    If they do, how did you obtain your license file? Did you copy/download the file from somewhere or did you copy-and-paste its content from somewhere? Copy-and-paste is a bad idea since this may introduce unwanted characters like DOS line breaks etc.
    #CPLEXOptimizers
    #DecisionOptimization


  • 20.  Re: CPLEX license file error

    Posted Mon October 22, 2012 05:45 PM

    Originally posted by: SystemAdmin


    Thanks for reply.

    I didn't even copy the license file - it is the file used by our currently running system. This license file has to be good otherwise our program shouldn't be running.

    As for the Java file reading, I can see that it works correctly because my program dumps the content of the license file by reading it.

    This is puzzling to me. Any idea is appreciated
    #CPLEXOptimizers
    #DecisionOptimization


  • 21.  Re: CPLEX license file error

    Posted Tue October 23, 2012 06:12 AM

    Originally posted by: SystemAdmin


    Did you double check that your ILOG_LICENSE_FILE environment variable is set correctly (for example using the two statements I provided)?
    When you open your file for dumping it from the application, how do you specify the filename? Do you explicitly give it or do you use the ILOG_LICENSE_FILE variable? Does this dump the file correctly
    final BufferedReader br = new BufferedReader(new FileReader(System.getenv("ILOG_LICENSE_FILE")));
    for (String line = br.readLine(); line != null; line = br.readLine())
       System.out.println(line);
    

    Do you have multiple versions of CPLEX installed on your machine? If so, are you sure the license file is for the CPLEX library you are using with your Java application?
    #CPLEXOptimizers
    #DecisionOptimization


  • 22.  Re: CPLEX license file error

    Posted Tue October 23, 2012 03:00 PM

    Originally posted by: SystemAdmin


    Hey

    Thanks it works now.

    The mistakes that I made are

    1) Using -DILOG_FILE_NAME as JVM parameter to specify the environment variable

    I should use Linux/Bash export ILOG_FILE_NAME=...

    2) Using System.getProperty(,) for testing.

    I should use System.getenv() for testing

    Thanks again, Jeff
    #CPLEXOptimizers
    #DecisionOptimization


  • 23.  Re: CPLEX license file error

    Posted Tue November 08, 2016 10:07 AM

    Originally posted by: Mannai


    quel est la solution SVP
    CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 24.  Re: CPLEX license file error

    Posted Wed November 09, 2016 03:23 AM

    Hi,

    which cplex version do you use ? Are you academic ?

    regards


    #CPLEXOptimizers
    #DecisionOptimization