Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX Error 1423:could not open lp file for reading

    Posted 03/14/12 12:07 PM

    Originally posted by: X7S6_Lan_Wang


    I listed the pre-generated file "A.lp" in the same folder. After release the c++ code, and input the command "XXXX\test.exe A.lp", it always comes out an error message like this:CPLEX Error 1423:could not open lp file for reading. Would someone help me on this? Thanks a lot!!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX Error 1423:could not open lp file for reading

    Posted 03/14/12 05:32 PM

    Originally posted by: SystemAdmin


    Is the file A.lp in the same folder from which you run the program (which is not necessarily the colder that contains test.exe)?
    Could you tell us
    • which folder contains the file A.lp?
    • which folder contains test.exe?
    • from which folder do you start test.exe?
    If you do
    FILE *tmp = fopen(argv[1], "r");
    if ( tmp ) {
       printf ("Could open file '%s'\n", argv[1]);
       fclose (tmp);
    }
    else {
       printf ("Could not open file '%s'\n", argv[1]);
    }
    

    right before the call to CPXreadcopyprob(), what does this print?
    #CPLEXOptimizers
    #DecisionOptimization