<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Matt,<br>
<br>
If line 1 is actually <br>
<br>
OsiClpSolverInterface o;<br>
<br>
you are in trouble anyway - OsiClpSolverInterface:branchAndBound()
was only written to satisfy requirements. OsiCbcSolverInterface
is also not so good.<br>
<br>
So many things will have changed in a CbcModel after search -
cutoffs, number of nodes etc. I would set up whatever cuts,
heuristics and initial model in CbcModel baseModel and then<br>
<br>
baseModel.solver()-.addRow();<br>
CbcModel workingModel = baseModel;<br>
workingModel.branchAndBound();<br>
<br>
On another of your questions - for flexibility I would pass in a
Derived message handler (see for example Clp/examples/driver2.cpp)
and then do exactly what you want in "print".<br>
<br>
You can get timings for cut generators, but for strong branching
you are going to have to use profiling e.g. gprof.<br>
<br>
John Forrest<br>
<br>
On 10/02/15 22:23, Matthew Galati wrote:<br>
</div>
<blockquote
cite="mid:CAMjmidzwU6pawr4_vGB5seedg91ZogR8mm820mcrbviOaO8k7Q@mail.gmail.com"
type="cite">
<div dir="ltr">The following workflow is not doing what I
expected.
<div><br>
</div>
<div>1 OsiClp o;</div>
<div>2 o.loadProblem(...)</div>
<div>3 o.branchAndBound();</div>
<div>4 o.addRow();</div>
<div>5 o.branchAndBound();</div>
<div><br>
</div>
<div>After 3, the model seems to be changed - for example, a
bunch of columns are fixed to 0 and some are fixed to 1.
Presumably presolve or the reduced model in the tree at the
end of solve.</div>
<div><br>
</div>
<div>So, when I add my row, I am no longer working with the
original model.</div>
<div><br>
</div>
<div>Bug? Expected behavior? </div>
<div><br>
</div>
<div>How does one go about doing what I want - which is: solve,
add a row, solve again.</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Coin-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Coin-discuss@list.coin-or.org">Coin-discuss@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/coin-discuss">http://list.coin-or.org/mailman/listinfo/coin-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>