<div dir="ltr"><div>Hi Johannes,</div><div><br></div><div>There is a function doing roughly this in the SCIP Julia wrapper:</div><div><a href="https://github.com/scipopt/SCIP.jl/blob/master/src/MOI_wrapper.jl#L313">https://github.com/scipopt/SCIP.jl/blob/master/src/MOI_wrapper.jl#L313</a></div><div><br></div><div>The idea is to create a partial solution, assign the variables you want to set (your design variables, which I assume are in the context of a network design problem?), and add the solution.</div><div><br></div><div>I roughly translated the solution to something C-like below, except for the for loop but they key ideas should be there.<br></div><div><br></div><div><div style="color:rgb(204,204,204);background-color:rgb(31,31,31);font-family:"Droid Sans Mono","monospace",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(204,204,204)"></span><span style="color:rgb(78,201,176)">SCIP_SOL** </span><span style="color:rgb(204,204,204)">sol__ </span><span style="color:rgb(204,204,204)">NULL;</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(220,220,170)">SCIP_CALL</span><span style="color:rgb(204,204,204)">( </span><span style="color:rgb(220,220,170)">SCIPcreatePartialSol</span><span style="color:rgb(204,204,204)">(scip, sol__, C_NULL) );</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(220,220,170)">@assert</span><span style="color:rgb(204,204,204)"> sol__[] </span><span style="color:rgb(212,212,212)">!=</span><span style="color:rgb(204,204,204)"> C_NULL;</span></div><br><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(106,153,85)"># set all given values</span></div><div><span style="color:rgb(204,204,204)"> sol_ </span><span style="color:rgb(212,212,212)">=</span><span style="color:rgb(204,204,204)"> *sol__;</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(197,134,192)">for</span><span style="color:rgb(204,204,204)"> idx in variable_indices</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(220,220,170)">SCIP_CALL</span><span style="color:rgb(204,204,204)">( </span><span style="color:rgb(220,220,170)">SCIPsetSolVal</span><span style="color:rgb(204,204,204)">(scip, sol_, my_design_variables[idx]</span><span style="color:rgb(204,204,204)">, my_design_values[idx]) );</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(197,134,192)">end</span></div><br><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(106,153,85)"># submit the candidate</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(78,201,176)">SCIP_Bool </span><span style="color:rgb(204,204,204)">stored = FALSE;</span></div><div><span style="color:rgb(204,204,204)"> </span><span style="color:rgb(220,220,170)">SCIP_CALL</span><span style="color:rgb(204,204,204)">( </span><span style="color:rgb(220,220,170)">SCIPaddSolFree</span><span style="color:rgb(204,204,204)">(o, sol__, &stored) );</span></div><div><span style="color:rgb(204,204,204)"><br></span></div></div></div><div>Best,</div><div>Mathieu<br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 2, 2023 at 10:50 AM Johannes Jordaan <<a href="mailto:jordaan.johannes@gmail.com">jordaan.johannes@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi<div>How does one specify a starting point for design variables in SCIP?</div><div>Regards</div><div>Johannes Jordaan</div></div>
_______________________________________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
<a href="https://listserv.zib.de/mailman/listinfo/scip" rel="noreferrer" target="_blank">https://listserv.zib.de/mailman/listinfo/scip</a><br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mathieu Besançon</div></div>