Topic
  • 1 reply
  • Latest Post - ‏2013-12-09T13:29:34Z by AlexFleischer
qtbgo
qtbgo
116 Posts

Pinned topic about extract time

‏2013-12-08T08:14:48Z |

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. 

 

Attachments

Updated on 2013-12-08T08:17:22Z at 2013-12-08T08:17:22Z by qtbgo
  • AlexFleischer
    AlexFleischer
    77 Posts

    Re: about extract time

    ‏2013-12-09T13:29:34Z  

    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