Decision Optimization

Decision Optimization

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


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

about extract time

  • 1.  about extract time

    Posted 12/08/13 03:15 AM

    Originally posted by: qtbgo


    Hi, I build a CP model using OPL. When solving big problems, it takes a long time to extract the model. Pls see the attached, 59% of time is spent on extract.

    My questions are:

    1  cp.info.SolveTime doesn't include extract time, how to output all times(including extract time) needed to solve a problem? Do I need to report extract time in academic papers?

    2 what is extract time? If I use c++ concert instead of OPL, can extract time be reduced?

    Thanks in advance. 

     


    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: about extract time

    Posted 12/09/13 08:30 AM

    Hi

    1)

    you could do

    float time0;

    float time1;

    and then in your code

    
    execute
    {
    time0 = 
    
    new Date();
    }
    
    and later 
    
    
    execute
    {
    time1 = 
    
    new Date();
    
    writeln(
    "total time is ", time1-time0);
    } 
    For academic papers, I would use total time.
    

     

    2) Extraction means building the constraints out of concert or OPL. If you have a working model with data, you could attach it here so that someone can have a look and tell you how to improve.

     

    Regards


    #DecisionOptimization
    #OPLusingCPOptimizer