Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Persistently store data from CPLEX in Java

    Posted 12/13/16 05:05 PM

    Originally posted by: abhzap


    Hi All,

         I have a model written in Java CPLEX API 12.2.

         I require multiple runs of the model and would like all the data returned by CPLEX to be stored persistently in Java.

         I know that CPLEX returns XML-based .sol files.

         But I find persistent storage in Java to much helpful as I can query the data parameters I need easily and plot the required graphs. This seems much easier than parsing XML files.

         Is there any way that CPLEX returns a solution object? In that case, I save the complete solution of each solution and more importantly, it becomes easier  to read the data later.

    Thanks,

    abhzap

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Persistently store data from CPLEX in Java

    Posted 12/14/16 05:32 PM

    This post is related to your question.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Persistently store data from CPLEX in Java

    Posted 01/04/17 04:59 AM

    CPLEX does not return a solution object. All solution information is returned by individual functions.

    However, you can easily construct such a solution object yourself and then just use the Java serialization facilities for persistence.

    Just create a class that gathers all the information you want to store, fill it from the IloCplex instance, and finally write it to disk.


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Persistently store data from CPLEX in Java

    Posted 01/06/17 02:58 PM

    Originally posted by: abhzap


    Thanks!

    -abhzap


    #CPLEXOptimizers
    #DecisionOptimization