<div dir="ltr">Hi,<div><br></div><div>I could use a little help better understanding how Cbc works.  I trying to solve many small integer problems.  Between solves, I change some of the row bounds and objective coefficients but the number of rows and columns remain the same.  I've tried the pattern in modify.cpp but I am incurring too much overhead re-initializing the CbcModel object (and it's crashing when I set a strategy).  Is there a faster pattern?</div><div><br></div><div>Thank you!</div><div><br></div><div>Chase</div><div><br></div><div><br></div><div>Psuedo code:</div><div><br></div><div>// ---- do this stuff once! --- </div><div>CoinModel build;</div><div>// .setColumnBounds, .setObjective, .setInteger, .addRow, etc.</div><div>OsiClpSolverInterface solver;</div><div>solver.loadFromCoinModel(build)</div><div>CbcModel model = CbcModel(solver);</div><div>CbcStrategyDefault strategy();</div><div>strategy.setupPreProcessing(1, 10);</div><div>model.setStrategy(strategy); // default strategy</div><div>model.branchAndBound();</div><div><br></div><div>// --- do this stuff many times ---</div><div>model.solver()->setRowUpper(i, value);</div><div>model.solver()->setObjCoeff(i, value);</div><div>model.branchAndBound(); // this part does not work because the model has already been solved? Can I avoid reallocating the entire CbcModel object?</div></div>