<div dir="ltr"><div>Hi Gerald,</div>Thank you for the reply. <div>It is true, the time() function gives me the wallclock time. So I changed and used the clock() function instead, but the difference (even if smaller) is still there. </div><div>From what I've seen, saving my model as an lp file and solving it with CPLEX afterwards, it seems that <span style="font-size:12.8px">SCIPgetTotalTime() does not take into account the time spent to build the model (that is, the time spent to create the variables and the constraints). Is it possible?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Best regards,</span></div><div><span style="font-size:12.8px">Veronica</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-03 23:29 GMT+01:00 Gerald Gamrath <span dir="ltr"><<a href="mailto:gamrath@zib.de" target="_blank">gamrath@zib.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi Veronica,<br>
      <br>
      you are right, SCIPgetTotalTime() returns the time passed since
      the creation of your SCIP instance.<br>
      <br>
      However, the default clock type in SCIP is measuring CPU time.
      There is a parameter "timing/clocktype" to change it to wallclock
      time (which is what time() from time.h measures, if I am not
      mistaken). However, since this clock is started as soon as SCIP is
      built, there is unfortunately no chance to change its type, unless
      you change the define<br>
      #define SCIP_DEFAULT_TIME_CLOCKTYPE  SCIP_CLOCKTYPE_CPU<br>
      to<br>
      #define SCIP_DEFAULT_TIME_CLOCKTYPE  SCIP_CLOCKTYPE_WALL<br>
      in set.c<br>
      <br>
      CPU and Wallclock time can return quite different values, for
      example if you have other jobs running on your computer with which
      SCIP needs to share the CPU.<br>
      <br>
      Best,<br>
      Gerald<div><div class="h5"><br>
      <br>
      On 01.02.2016 15:26, Veronica Dal Sasso wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hello everybody!
        <div>I am implementing my LP and column generation algorithm in
          C++ and I would like to ask some further explanation on how
          the function SCIPgetTotalTime() works. In the documentation it
          is written that it returns "the current total SCIP time in
          seconds, ie. the total time since the SCIP instance has been
          created".</div>
        <div>Now, my program is made of, more or less, the following
          steps:</div>
        <div><br>
        </div>
        1) read data from file & store useful info<br>
        2) initialize the solver class - in here, there is an initScip()
        function where the SCIP problem is created (SCIPcreate())
        <div>3) setup the problem and configure the pricer<br>
          <div>4) solve the problem </div>
          <div><br>
          </div>
          <div>I was pretty sure the time given by SCIPgetTotalTime()
            would include the computational time for steps 2,3 and 4,
            but if I use the C++ function time() from the time.h library
            to compute the time passed just for steps 3 and 4, it is
            already larger.</div>
        </div>
        <div><br>
        </div>
        <div>Am I missing something?</div>
        <div>Thanks you all in advance,</div>
        <div>Veronica</div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><span class=""><pre>_______________________________________________
Scip mailing list
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a>
<a href="http://listserv.zib.de/mailman/listinfo/scip" target="_blank">http://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
    </span></blockquote>
    <br>
  </div>

</blockquote></div><br></div>