Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Question about old .sol Format using CPLEX Interactive Solver

  • 1.  Question about old .sol Format using CPLEX Interactive Solver

    Posted Mon May 07, 2018 04:24 PM

    Originally posted by: Carlos_Socarras


    Hello,

    We have an application developed several years ago, this application generate a .mps file after that solve the model using Interactive Optimizer, write the solution .sol file and then that .sol file is readed by the application.

    The problem is that we had an old version of CPLEX that write .sol file in a different format, now the CPLEX that we are using write the .sol in a XML format and the application can't read it. What option do we have in order to use the newest CPLEX version and to write the .sol in the old format?

    Attached the the screenshot of the .sol 2 formats

    Thank for your help

    Carlos Socarrás

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Question about old .sol Format using CPLEX Interactive Solver

    Posted Tue May 08, 2018 06:46 AM

    The code that writes out solution in this text format has been removed from the CPLEX code base. So I'm afraid there is no way to get this format with modern versions of CPLEX.

    One obvious fix is to rewrite your application so that it can read XML files as well.

    Another option would be to add an intermediate step to convert the XML file into a TXT file that your application can read. This can be done for example using XSLT. Would that work for you? Do you need all fields in the TXT file or only some?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Question about old .sol Format using CPLEX Interactive Solver

    Posted Wed May 09, 2018 02:43 PM

    Originally posted by: Carlos_Socarras


    Hi Daniel,

    At the end I think that the better option would be to rewrite the application.

    Thank you for your help.

    Carlos S


    #CPLEXOptimizers
    #DecisionOptimization