<div><div>Hello.</div><div>I try to use the class CbcEventHandler to add cuts to solve my problem, but it doesn't work.</div><div>for example :</div><div>min: x2</div><div>s.t. x0 + x1 >= 1;</div><div>      x1 + x2 >= 1;</div><div>x0,x1,x2 in {0,1}</div><div>Add the question normally. I get x0 = 1, x1 = 1 and x2 = 0. But when I try to add a cut x0 = 0 with codes:</div><div><\code</div><div>        auto refSolver = model->referenceSolver(); </div><div>        CoinPackedVector solution_cut;</div><div>        solution_cut.setVector(len, &cols[cols.size()-len], &values[values.size()-len]);</div><div>        refSolver->addRow(solution_cut, rhs_lower.back(), rhs_upper.back());</div><div>        model->resetToReferenceSolver();</div><div>code\> </div><div>But failed. I save the model as mps file and it can be read as:</div><div> TITLE BLANK;</div><div> [ OBJROW] MIN =  C0000002;</div><div> [ R0000000]  C0000000 +  C0000001 >= 1;</div><div> [ R0000001]  C0000001 +  C0000002 >= 1;</div><div> [ R0000002]  C0000000 = 0;</div><div> @BND( 0, C0000000, 0); @BND( 0, C0000001, 0);</div><div> @BND( 0, C0000002, 0);</div><div>Thanks.</div></div>