Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

CPLEX Error 1422: Could not open file '%s' for writing.

  • 1.  CPLEX Error 1422: Could not open file '%s' for writing.

    Posted Sat June 09, 2018 04:05 AM

    Originally posted by: Rayfel


    Hello everyone

     

    Is there any solution for this problem "CPLEX Error  1422: Could not open file '%s' for writing."

    This always happen when I try to solve my model in large number of variables and constraint

    But never happen when I try to solve in small number of data

     

    Thank you

     

    Regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX Error 1422: Could not open file '%s' for writing.

    Posted Sat June 09, 2018 04:21 PM

    Is this a MIP model? If so, the problem may be that CPLEX is trying to write part of the node tree to a disk file (because the tree exceeded the size limit for retaining it in memory) but did not have write permission in the chosen directory. If that is the problem, then one of the following might solve it: increase the in-memory tree size limit (assuming you have enough RAM to fit the largest possible tree); tell CPLEX to compress the tree in memory (if not already doing so); change the directory where the tree is written; or change the user account running the program to one that has write permission in the specified directory. All those (except the last) are done by changing CPLEX parameter settings. See the parameters manual for details.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX Error 1422: Could not open file '%s' for writing.

    Posted Tue June 12, 2018 02:55 AM

    Can you please provide more context? What are the non-default parameter settings that you are running with? Have you maybe set some parameters like CPX_PARAM_WORKDIR to a location for which you don't have write permission? Is your disk full? Is your quota or the quota for the output directory exceeded?


    #CPLEXOptimizers
    #DecisionOptimization