Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX error 1464

    Posted 09/26/08 03:15 AM

    Originally posted by: SystemAdmin


    [cuongtv81 said:]

    Hi everyone,

    I have a question regarding error code 1464 (identifier/name too long to process). I have a toy program as follows:

    maximize x1 + x2 + ... + x2000
    subject to
    x1 + x2 <= 3<br />binaries
    x1 x2 ... x2000

    Of course, the maximum value is 2000, when all variables are one. However, CPLEX ouputs error 1464 when it reads the program. I do not know what is wrong with the program, and how to get around it. Or is there any limit on the number of binary/integer variables CPLEX can handle? I would greatly appreciate any help.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX error 1464

    Posted 09/26/08 02:10 PM

    Originally posted by: SystemAdmin


    [oussedik said:]

    Hi,

    There is no limit in CPLEX on the number of constraints and variables, the only limit is the memory that CPLEX can use on your machine.

    This error is due to the fact that an LP file has a maximum length of any line (560):

    ILOG CPLEX 11.0 File Formats > > ILOG CPLEX File Formats > LP File Format: Matrix Models

    modifying that should fix the issue.

    Maximize
    x1 + x2 + ... + x100 +
    x101 + …. +
    x201 + …

    Sofiane
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX error 1464

    Posted 09/27/08 12:37 AM

    Originally posted by: SystemAdmin


    [cuongtv81 said:]

    Thanks, Sofiane! This solves the problem.
    #CPLEXOptimizers
    #DecisionOptimization