Decision Optimization

Decision Optimization

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


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

Save CPLEX screen output to a text file [Callable Lib]

  • 1.  Save CPLEX screen output to a text file [Callable Lib]

    Posted 09/18/19 08:25 PM

    Originally posted by: ziczyq


    Hi,

     

    How do I save the screen output into a text file? i.e., the screen output is 

    -----------------------------------------------------------------------

    Root node processing (before b&c):
      Real time             =    0.02 sec. (3.43 ticks)
    Parallel b&c, 16 threads:
      Real time             =    0.00 sec. (0.00 ticks)
      Sync time (average)   =    0.00 sec.
      Wait time (average)   =    0.00 sec.
                              ------------
    Total (root+branch&cut) =    0.02 sec. (3.43 ticks)
    solution status = 102
    Extensive formulation with cuts objective value = 7100.16
    Extensive formulation with cuts solution time = 0.009
    Extensive formulation relative MIP gap = 7.01316e-05
    Default row names c1, c2 ... being created.

    --------------------------------------------------

     

    I want to save it in a text file using callable library. Thanks!


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Save CPLEX screen output to a text file [Callable Lib]

    Posted 09/19/19 09:34 AM

    You can use CPXsetlogfilename for that. See also the admipex3.c example that is included when you install CPLEX. Finally, the Controlling Output in the CPLEX Callable Library (C API) section of the documentation has additional functions which may be of interest to you.

     


    #CPLEXOptimizers
    #DecisionOptimization