Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

writeMIPStarts in flow control (ILOG script) throws errors

  • 1.  writeMIPStarts in flow control (ILOG script) throws errors

    Posted 07/23/15 05:54 AM

    Originally posted by: JonasVolland


    Dear all,

     

    I would like to warm-start a MIP using a solution that I know from a heuristic. Therefore, I would like to use the CPLEX-method

    "readMIPStarts(name)"

    "name" correstponds to the file name where the solution is stored. From what I learned, the file is of the type *.mst. In order to understand how the *.mst file looks like, I would like to generate one file "result.mst" after solving an easy MIP with the CPLEX method.

    "writeMIPStarts(name, start, nb)".

    However, both methods are not working and the following error messages are thrown:

    "MIPCplex.writeMIPStarts("result.mst",0, 1000);" --> CPLEX error 1422: Could not open file 'result.mst' for writing

    "MIPCpex.readMIPStarts("result");" --> CPLEX error 1423: Could not open file 'result.mst' for reading

    The file "result.mst" is located in the working directory of the model.

     

    I have created the result.mst file as a text file (result.txt) and renamed it to result.mst manually.

     

    Why am I getting the error messages?

     

    Any help is highly appreciated!

     

    Thank you & best regards,

    Jonas

     

    My ILOG CPLEX Optimization Studion version is 12.6.1.0 and I work with ilog script.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: writeMIPStarts in flow control (ILOG script) throws errors

    Posted 07/23/15 08:57 AM

    Hi,

    for the write part first,

    can you try with an absolute path like C:/mst.mst ?

    Maybe you have an access right issue.

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: writeMIPStarts in flow control (ILOG script) throws errors

    Posted 07/23/15 09:19 AM

    Originally posted by: JonasVolland


    Dear Alex,

     

    thank you very much for your reply! Indeed, it worked when I used the following code: MIPCplex.writeMIPStarts("C:/test/result.mst", 0, 1000).

     

    How can I grant access to my working directory then?

     

    Thanks again!! Best regards,

    Jonas


    #DecisionOptimization
    #OPLusingCPLEXOptimizer