<div dir="ltr"><div>Dear SCIP developers,</div><div>can you recommend some way to convert solution in CIP format to AMPL SOL-file (in the presence of corresponding NL-file in AMPL format)?</div><div><br></div><div>I found that the following trick helps, but may be there is another way?</div><div>Suppose we have: <a href="http://problem.nl">problem.nl</a>, appropriate problem.nl.cip and problem.cip.sol (returned, e.g. by FiberSCIP, for problem.nl.cip as an input model).</div><div>1. Start SCIPAMPL console and load <a href="http://problem.nl">problem.nl</a> as model</div><div>$ scipampl <a href="http://problem.nl">problem.nl</a> -i</div><div>2. Read problem.cip.sol from SCIPAMPL console (outputs presented below)<br></div><div>SCIP> read problem.cip.sol</div><div>primal solution from solution file <problem.cip.sol> was accepted as candidate, will be checked when solving starts</div><div>3. Load some limits to stop optimization process just after beginning, e.g.</div><div>SCIP> set limits nodes 2</div><div>4. Start optimization and wait a few seconds<br></div><div>SCIP> optimize</div><div>5. Write AMPL SOL-file</div><div>SCIP> write amplsol</div><div>Now we get problem.sol containing the solution in AMPL format. <br></div><div>The only drawback is the first string with solver status "node limit reached" in problem.sol, but it may be "manually" replaced with "optimal solution found" to get correct SOL-file with appropriate status.</div><div><br></div><div><div>See some additional notes below.<br></div><div>We use Pyomo Python package to prepare optimization model and write it to NL-file (AMPL format). Usually we use SCIPAMPL to read NL-file and to get solution as SOL-file (AMPL format), which may be loaded "back" to the model by Pyomo tools to analyse  results.<br></div><div>But for hard problems we need to use ParaSCIP or FiberSCIP. For that we use SCIPAMPL console to convert NL-file to CIP-file, <a href="https://scip.zib.de/doc-6.0.2/html/reader__cip_8h.php">https://scip.zib.de/doc-6.0.2/html/reader__cip_8h.php</a>, because ParaSCIP and FiberSCIP does not accept AMPL-formats. So, we get solutions also in CIP-format, but Pyomo does not provide tool to load solutions from CIP.sol !</div><div>Up to now,  for special cases, homebred "readers" have been used, but we need more universal approach.</div><div><br></div></div><div>Sincerely yours,</div><div>Vladimir.</div><div><br></div></div>