Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Get presolve time

    Posted 08/21/09 12:33 AM

    Originally posted by: SystemAdmin


    [vitorlmatos said:]

    Hi there,

    I developed a program in C/C++ that use CPLEX to solve several Linear Programming problems.
    I would like to know how much time CPLEX is spending on the presolve without letting CPLEX to print the information on the screen.

    Does anybody know how can I get the presolve time?

    Regards,
    Vitor
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Get presolve time

    Posted 09/18/09 06:29 PM

    Originally posted by: SystemAdmin


    [johncui said:]

    Please try like this: 
    status = CPXgettime (env, &t1);
    status = CPXpresolve (env, lp, CPX_ALG_DUAL);
    status = CPXgettime (env, &t2);
    printf("presolve time: %f\n", t2 - t1);
    #CPLEXOptimizers
    #DecisionOptimization