Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Python and Pycharm CPLEX Error 1016: Promotional version. Problem size limits exceeded

    Posted 05/21/18 10:53 AM

    Originally posted by: SGrogan


    So I am trying to use CPLEX with Python and Pycharm.  I got the sample projects to work, but when it came to running a large lp, I get the error : 

    Default row names c1, c2 ... being created.
    CPLEX Error  1016: Promotional version. Problem size limits exceeded.
    Traceback (most recent call last):
      File "C:/Users/seang/PycharmProjects/cplex_test/cplex_test.py", line 68, in <module>
        main()
      File "C:/Users/seang/PycharmProjects/cplex_test/cplex_test.py", line 23, in main
        cpx.solve()
      File "C:\Program Files\Python35\lib\site-packages\cplex\__init__.py", line 1110, in solve
        _proc.lpopt(self._env._e, self._lp)
      File "C:\Program Files\Python35\lib\site-packages\cplex\_internal\_procedural.py", line 687, in lpopt
        check_status(env, status)
      File "C:\Program Files\Python35\lib\site-packages\cplex\_internal\_procedural.py", line 303, in __call__
        raise CplexSolverError(error_string, env, status)
    cplex.exceptions.errors.CplexSolverError: CPLEX Error  1016: Promotional version. Problem size limits exceeded.
    

    The error is obvious, but when I try to do the same lp in C++ api in VisualStudio and calling CPLEX in the command prompt and reading the LP, there is no error.  

     

    Does promotional version apply to python?  am I calling something incorrectly?  

     

    Using CPLEX 12.8.0, Python 3.5.4 64 bit, and PyCharm 2018.1.2

     

    Python 3.5.4 (v3.5.4:3f56838, Aug  8 2017, 02:17:05) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

    Welcome to IBM(R) ILOG(R) CPLEX(R) Interactive Optimizer 12.8.0.0 with Simplex, Mixed Integer & Barrier Optimizers

    PyCharm 2018.1.2 (Professional Edition) Build #PY-181.4668.75, built on April 25, 2018


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Python and Pycharm CPLEX Error 1016: Promotional version. Problem size limits exceeded

    Posted 05/21/18 11:29 AM

    The CPLEX Python API "Community Edition" is now available on PyPI (see here). This means that it is very easy to install it using "pip install". Or, perhaps you had previously installed CPLEX Optimization Studio Community Edition? Regardless of how it got there, you can remove it by deleting the "C:\Program Files\Python35\lib\site-packages\cplex" folder. Then, just install the full version of the CPLEX Python API following the directions here.

     

    Alternately, is it possible that you only have the Community Edition installed and you just happened to formulate the model differently with the C++ API? It's possible that you fall just under the limits with one API, but not the other....

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Python and Pycharm CPLEX Error 1016: Promotional version. Problem size limits exceeded

    Posted 05/21/18 11:36 AM

    Originally posted by: SGrogan


    Pretty sure I have a full version, I deleted and re - installed and it looks like it works now.  

     

    thanks.


    #CPLEXOptimizers
    #DecisionOptimization