<div dir="ltr">Dear Yankai<div><br></div><div>We already investigated a possible memory leak. Please check</div><div><a href="https://github.com/SCIP-Interfaces/SCIP.jl/issues/33">https://github.com/SCIP-Interfaces/SCIP.jl/issues/33</a><br></div><div><br></div><div>Please reopen the issue or create a new one there with this problem.<br></div><div><br></div><div>Best,</div><div>Felipe</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 11:22 PM, Yankai Cao <span dir="ltr"><<a href="mailto:yankai.cao@gmail.com" target="_blank">yankai.cao@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi, <div><br></div><div><span style="background-color:rgb(255,255,255)"><font color="#222222" face="Helvetica, Arial, sans-serif"><span style="font-size:14px">I am using </span></font></span>scipoptsuite-4.0.0 <span style="font-size:14px;color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;background-color:rgb(255,255,255)">with julia interface SCIP.jl. I  find that if I create and solve models in a for loop using SCIP with models built with JuMP, then the peak memory usage increases dramatically as the number of iterations increases. I would expect the peak memory usage keeps almost constant.</span></div><div><span style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">Here is the test code test.jl: </span></div><div><span style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px">using JuMP, Gurobi, SCIP</span></div><div><p style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px">function test(iter)<br>for i = 1:iter<br>     m= Model()<br>     nvar = 1000<br><span class="m_9183297217534967823mention">     @variable</span>(m, 0<=x[1:nvar]<=1)<br><span class="m_9183297217534967823mention">     @constraint</span>(m, con[i in 1:(nvar-2)], x[i]+x[i+1]<=1)<br><span class="m_9183297217534967823mention">     @objective</span>(m, :Min, sum{(x[i]+x[i+2])^2, i in 1:(nvar-2)})<br>     m.solver=SCIPSolver("display/<wbr>verblevel", 0)<br><span class="m_9183297217534967823hashtag">     #m</span>.solver=GurobiSolver(<wbr>LogToConsole=0,OutputFlag=0)<br>     solve(m)<br>end<br>end<br>test(10)</p><div><br></div><div>I <span style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">monitored the peak memory usage using /usr/bin/time -v julia test.jl</span></div><div><p style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px">For SCIP, I got <br>test(1) <br>Maximum resident set size (kbytes): 234312<br>test(10)<br>Maximum resident set size (kbytes): 803168<br>test(100)<br>Maximum resident set size (kbytes): 6441800</p><p style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px">For Gurobi, I got<br>test(1) <br>Maximum resident set size (kbytes): 174972<br>test(10)<br>Maximum resident set size (kbytes): 187388<br>test(100)<br>Maximum resident set size (kbytes): 263780</p><div><span style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">So for Gurobi, the result is as expected, but for SCIP the peak memory usage do increases dramatically. Can anyone check this issue? Thanks.</span></div></div><div><span style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:Helvetica,Arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><br></span></div><div><br></div></div><div><br></div><div><br></div></div><br>______________________________<wbr>_________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de">Scip@zib.de</a><br>
<a href="https://listserv.zib.de/mailman/listinfo/scip" rel="noreferrer" target="_blank">https://listserv.zib.de/<wbr>mailman/listinfo/scip</a><br>
<br></blockquote></div><br></div>