I wrote that guide.<div>Is it possible you are building your program in "Debug" mode? If the lib files are large, it suggests they are being built with debugging information...</div><div>Changing to "Release" mode could create speed ups of that order.</div>
<div><br></div><div>Cheers,</div><div>Iain<br><br><div class="gmail_quote">On Wed, Oct 10, 2012 at 4:39 AM, Christos <span dir="ltr"><<a href="mailto:chtsolak@gmail.com" target="_blank">chtsolak@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 bgcolor="#FFFFFF" text="#000000">
<div>In order to help you help me i compiled
my code with this method:<a href="https://projects.coin-or.org/Cbc/wiki/VSSetup" target="_blank">https://projects.coin-or.org/Cbc/wiki/VSSetup</a><br>
<br>
And as i can see lib files from repository are much smaller then
these created with the above method.<br>
<br>
Is this matter?<div><div class="h5"><br>
<br>
On 9/10/2012 23:00, Christos wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div>Very useful info!<br>
<br>
I downloaded Cbc-2.7.5-win64-intel11.1 and run cbc.exe in the
bin folder. <br>
I used 2 methods-commands for solving, branchAndBound and solve.<br>
<br>
They both solved it almost 10 times faster!!!<br>
<br>
Now, to come to a solution, i need to know what's the differnece
between solving with stand alone and simply by calling the
solver via my code which was implemented in MS visual studio
2010..<br>
<br>
If you can help me with this, i would have find the solution to
my big problem!<br>
I am waiting impatiently for your words.<br>
<br>
Thank you!<br>
<br>
On 9/10/2012 22:26, David Ibarra Gómez wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"> You can find the CBC binaries here: <a href="https://projects.coin-or.org/CoinBinary" target="_blank">https://projects.coin-or.org/CoinBinary</a> or
(here <a href="http://www.coin-or.org/download/binary/Cbc/" target="_blank">http://www.coin-or.org/download/binary/Cbc/</a>).
You can test different versions
<div><br>
</div>
<div>From the shell you can call the executable binary. Then
you just:</div>
<div><br>
</div>
<div>1. Import MPS file by just typing "import
mpsfilename.mps" </div>
<div>2. and then you can solve it just typing "branchAndCut"</div>
<div><br>
</div>
<div>Then compare the time to solve with the API.</div>
<div><br>
</div>
<div>A random google search to find a "recipe" could be (at
the end of page 6): <a href="http://wpweb2.tepper.cmu.edu/fmargot/coin/proj5.pdf" style="font-size:10pt" target="_blank">http://wpweb2.tepper.cmu.edu/fmargot/coin/proj5.pdf</a></div>
<div><br>
</div>
<div>Regards</div>
<div>
<div><br>
</div>
<div><br>
<br>
<div>
<hr>Date: Tue, 9 Oct 2012 20:50:04
+0300<br>
From: <a href="mailto:chtsolak@gmail.com" target="_blank">chtsolak@gmail.com</a><br>
To: <a href="mailto:dibarra21@hotmail.com" target="_blank">dibarra21@hotmail.com</a><br>
CC: <a href="mailto:cbc@list.coin-or.org" target="_blank">cbc@list.coin-or.org</a><br>
Subject: Re: [Cbc] solving time in C++ >> time in
Gams<br>
<br>
<div>i have the latest
version, 2.7.7....<br>
<br>
I solve it by using the default cbc solver, (i am not
getting involved in the solver) with this way:<br>
<br>
<i><small>solver1.loadProblem(numcols, numrows, start,
index, value, collb, colub, obj, rowlb, rowub);<br>
CbcModel model(solver1);<br>
CbcMain0(model);<br>
const char * argv2[]={"DAS","-solve","-quit"}; </small></i><i><small><br>
CbcMain1(3,argv2,model); </small></i><br>
<br>
So, i do not think that it's ommiting the presolve
step, am i wrong?<br>
<br>
Where can i find the latest version, and how can i
load an mps file?<br>
<br>
Thank you<br>
<br>
On 9/10/2012 20:42, David Ibarra Gómez wrote:<br>
</div>
<blockquote>
<div dir="ltr"> Hi,
<div><br>
</div>
<div>there are several things that can cause this:</div>
<div><br>
</div>
<div>
<ul>
<li>different solvers version,</li>
<li>solving is a complex task: <span style="font-size:10pt">presolve (cuting
planes, heuristics, ...) and then b</span><span style="font-size:10pt">ranch and bound
(cut). If you omit the first part or you do
not do exactly the same steps result could
be different.</span></li>
</ul>
<div><br>
</div>
Did you try to solve using CBC CLI (stand alone
executable) ?</div>
<div><br>
</div>
<div>Regards<br>
<br>
<div>
<hr>Date: Tue, 9 Oct 2012
12:16:49 +0300<br>
From: <a href="mailto:chtsolak@gmail.com" target="_blank">chtsolak@gmail.com</a><br>
To: <a href="mailto:cbc@list.coin-or.org" target="_blank">cbc@list.coin-or.org</a><br>
Subject: [Cbc] solving time in C++ >> time
in Gams<br>
<br>
Hi all again,<br>
<br>
I have 1 question for you, if i solve it, i
won't bother you again <span><span> :-P </span></span><br>
<br>
I am using cbc in order to make an executable
via MS visual studio which solves a model.<br>
In order to solve it, takes 60 mins<br>
<br>
I have made the same problem with GAMS and
solved it in 30 secs, 120 times faster!!<br>
<br>
Is it because of an error in modeling or due to
the different interface? (exe-GAMS)<br>
<br>
Why is there this enormous difference?<br>
<br>
<br>
Thank you in advance.<i><small><i><small><br>
</small></i></small></i><br>
<i><small><i><small><br>
</small></i><br>
</small></i> <br>
_______________________________________________
Cbc mailing list <a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a></div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'courier new', monospace"><b>Iain Dunning</b></font><div><font face="'courier new', monospace"><a href="http://orc.scripts.mit.edu/people/student.php?name=idunning" target="_blank">PhD Student</a> / </font><span style="font-family:'courier new',monospace"><a href="http://web.mit.edu/orc/www/" target="_blank">MIT Operations Research Center</a></span></div>
<div><div><font face="'courier new', monospace"><a href="http://www.iaindunning.com/" target="_blank">www.iaindunning.com</a></font></div></div><br>
</div>