<div dir="ltr">Never mind.  I was using the wrong setBestSolution.  Sorry to be annoying.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 13, 2014 at 1:27 PM, David Einstein <span dir="ltr">&lt;<a href="mailto:deinst@gmail.com" target="_blank">deinst@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have a not very good integer solution, that I would like to start the MIP off with.  I have tried<div>
<br></div><div><div>  CbcModel cbc(osi);</div><div>  CbcMain0(cbc);</div><div>  cbc.setDblParam(CbcModel::CbcMaximumSeconds, maxseconds);</div>
<div>  cout &lt;&lt; &quot; about to set solution &quot; &lt;&lt; endl;</div><div>  if (allint) {</div><div>    cbc.setBestSolution(CBC_ROUNDING, obj, goodsol);</div><div>  }</div><div>  cout &lt;&lt; &quot;set solution&quot; &lt;&lt; endl;</div>

<div>  const char *argv2[] = {&quot;schedulemip&quot;, &quot;-solve&quot;, &quot;-quit&quot;};</div><div>  CbcMain1(3, argv2, cbc); </div></div><div><br></div><div><br></div><div>where goodsol is an integer solution if allint is true, and obj is the value of the objective at goodsol.  When I try this, I get</div>

<div><br></div><div><div>(gdb) backtrace</div><div>#0  0x00000000005c6ef8 in OsiBabSolver::solutionAddsCuts (this=0x0) at /home/deinst/projects/coin-Cbc/Osi/src/Osi/OsiAuxInfo.hpp:121</div><div>#1  0x00000000005b0d74 in CbcModel::setBestSolution (this=0x7fffcade08a0, how=CBC_ROUNDING, objectiveValue=@0x7fffcade0848: 151088.41499999998, solutionIn=0x7ae6640, fixVariables=0) at ../../../coin-Cbc/Cbc/src/CbcModel.cpp:11907</div>

<div>#2  0x0000000000484886 in CbcFrame::run_mip(std::vector&lt;Constraint, std::allocator&lt;Constraint&gt; &gt;, std::vector&lt;Variable, std::allocator&lt;Variable&gt; &gt; const&amp;, int, int) ()</div><div>#3  0x000000000047b44e in solveprob7(std::vector&lt;worker, std::allocator&lt;worker&gt; &gt; const&amp;, std::vector&lt;task_t, std::allocator&lt;task_t&gt; &gt; const&amp;, std::set&lt;int, std::less&lt;int&gt;, std::allocator&lt;int&gt; &gt; const&amp;, std::vector&lt;int, std::allocator&lt;int&gt; &gt; const&amp;, Switches const&amp;, Cost const&amp;, std::vector&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::allocator&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; const&amp;, Model_Parameters const&amp;, MinComp const&amp;, std::string const&amp;) ()</div>

<div>#4  0x00000000004074c2 in main ()</div><div><br></div></div><div>We seem to be querying a nonexistent OsiBabSolver.  I suspect that I am using either the wrong function, or the wrong message.</div></div>
</blockquote></div><br></div>