<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi</div><div>I am working on a simple MILP problem in SCIP's c++ interface using CPLEX as the LP solver.</div>I have to disable presolving in my original problem 'scip'. So I have:<br></div><div dir="ltr">SCIP_CALL( SCIPsetPresolving(scip, SCIP_PARAMSETTING_OFF, true) );</div><div>after creating scip. Then, I need to solve a copy of the problem by creating a second problem 'scip2':</div><div>SCIP* scip2;</div><div>SCIP_CALL( SCIPcreate(&scip2) );<br>SCIP_CALL( SCIPcopyOrig(scip, scip2, nullptr, nullptr, "copyProb", false, false, nullptr) );<br>SCIP_CALL( SCIPsetIntParam(scip2, "display/verblevel", 2) );</div><div><br></div><div>And I can turn on presolving procedure in this problem. So I have:<br></div><div>`SCIP_CALL( SCIPsetPresolving(scip2, SCIP_PARAMSETTING_DEFAULT, true) );`<br></div><div dir="ltr"><div><br></div><div>Next, I want to add the solution of scip2 as an initial feasible solution to the original problem. Hence:</div><div>```</div><div>SCIP_CALL( SCIPsolve(scip2) );<br>auto sol2 = SCIPgetBestSol(scip2);<br>SCIP_Bool stored;<br>SCIP_CALL( SCIPaddSolFree(scip, &sol2, &stored) );</div><div>```<br></div><div>However, when I solve the original scip by calling `SCIPsolve(scip)`, I get the following message in the output:</div><div>```<br></div><div>violation: right hand side is violated by <a_number><br>all 1 solutions given by solution candidate storage are infeasible</div><div>```<br></div><div>Next, it ignores the solution, solves the problem, and finds an "optimal solution" which is inferior to sol2 (hence, not optimal indeed).</div><div><br></div><div>I understand that something may be wrong with the transformation. But I do not know how to fix this.<br></div><div>(OS: Linux 4.15, SCIP ver.: 6.0.0, CPLEX ver.: 12.8.0, gcc ver.: 7.3.0)<br></div><div><br></div><div>Bests,<br><div dir="ltr" class="m_-1887873641005988722gmail-m_-4202621538027297685m_8836857469212455087m_-4500597847004404067gmail_signature"><div dir="ltr"><br></div></div></div><div>Saleh<br></div></div></div></div></div></div></div></div></div></div>