Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Python Error reading LP file

    Posted 07/23/12 06:50 PM

    Originally posted by: Eumpfenbach


    Works fine in Matlab for me. Trying to use Python and getting this error. Any ideas?

    >>> problem = cplex.Cplex("mymodel_pre.lp")
    CPLEX Error  1464: Line 434642: Identifier/name too long to process.
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "cplex/__init__.py", line 713, in __init__
        _internal._procedural.readcopyprob(env._e, self._lp, filename, filetype)
      File "cplex/_internal/_procedural.py", line 372, in readcopyprob
        check_status(env, status)
      File "cplex/_internal/_procedural.py", line 88, in __call__
        raise CplexSolverError(error_string, env, status)
    cplex.exceptions.CplexSolverError: CPLEX Error  1464: Line 434642: Identifier/name too long to process.
    

    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Python Error reading LP file

    Posted 07/23/12 07:08 PM

    Originally posted by: Eumpfenbach


    And obviously the error code says a lot. I am asking why the LP file works fine in Matlab but not here and why a file generated in ILOG IDE would create a file with this problem.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Python Error reading LP file

    Posted 07/23/12 07:18 PM

    Originally posted by: Eumpfenbach


    Also, this is line 434642

    0 <= x9#3015#1#1#0 <= 918

    I need all the indices. I could realistically cut the name down by one character (ie "z" instead of "x9"). What's the limit I am hitting?
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Python Error reading LP file

    Posted 07/24/12 01:43 AM

    Originally posted by: SystemAdmin


    That identifier looks short enough. Can you read in the LP file with the interactive optimizer? Can you attach the offending LP file here?
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Python Error reading LP file

    Posted 07/24/12 03:06 PM

    Originally posted by: Eumpfenbach


    Biggish file:

    http://www.mediafire.com/?lb329w7i93073a2

    Works fine in ILOG and Matlab. Not in Python.
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Python Error reading LP file

    Posted 07/25/12 03:49 AM

    Originally posted by: SystemAdmin


    I could read the file in Python without any issue here.
    What OS do you use? What version of CPLEX?
    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: Python Error reading LP file

    Posted 07/25/12 09:50 AM

    Originally posted by: Eumpfenbach


    Linux 64 bit V12.2

    I guess I should upgrade and try again. Will post the result.
    #CPLEXOptimizers
    #DecisionOptimization