<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"><<a href="mailto:deinst@gmail.com" target="_blank">deinst@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 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 << " about to set solution " << endl;</div><div> if (allint) {</div><div> cbc.setBestSolution(CBC_ROUNDING, obj, goodsol);</div><div> }</div><div> cout << "set solution" << endl;</div>
<div> const char *argv2[] = {"schedulemip", "-solve", "-quit"};</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<Constraint, std::allocator<Constraint> >, std::vector<Variable, std::allocator<Variable> > const&, int, int) ()</div><div>#3 0x000000000047b44e in solveprob7(std::vector<worker, std::allocator<worker> > const&, std::vector<task_t, std::allocator<task_t> > const&, std::set<int, std::less<int>, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, Switches const&, Cost const&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&, Model_Parameters const&, MinComp const&, std::string const&) ()</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>