<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas",serif;
color:black;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hello Matthias:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank you for your answers. My objective is to get the final SCIP solution to a MIP problem I am solving, and do an LP to get “some” dual variables from the LP. I do this right after the SCIP solution and managed
to get it done along the lines of Soplex example.cpp. I used all variables and constraints as already determined for SCIP and that saves time. However, entering the same into Soplex via addRealVar, etc., seems to be very expensive. The LP solution is fast
once you have the problem set, but entering vars and constraints seems slow. Is it possible the lpi/lp API would not be any faster (maybe not since they are related, of course), unless there is a better way to connect the SCIP/Soplex. Is there a better way?
I am using SCIP 4.0.0 and Soplex 3.0.0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks again for your advise and help!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Guillermo<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> Matthias Miltenberger [mailto:miltenberger@zib.de]
<br>
<b>Sent:</b> Wednesday, March 22, 2017 2:19 PM<br>
<b>To:</b> Guillermo Irisarri <Guillermo.Irisarri@oati.net>; scip@zib.de<br>
<b>Subject:</b> Re: [SCIP] Example of usage of LP Interface to Soplex<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Dear Guillermo,<br>
<br>
the answer to your question depends on your use case. If you only want to interface SoPlex as an LP solver than you don't need the LPi or even SCIP in general. A very short example code is in example.cpp in the SoPlex distribution.<br>
<br>
If you want to interface using the LPi, though, there is no real example code for this - you would have to look at the available methods in lpi_spx2.cpp or in any other of the available LPis or look at their header file lpi.h.<br>
<br>
The advantage of the second method is that you can swap the LP solver without having to change your code. I would still recommend avoiding the additional overhead of the LP interface and going with option 1.<br>
<br>
cheers<br>
Matthias <span style="font-size:12.0pt"><o:p></o:p></span></p>
<div>
<p class="MsoNormal">On 22 Mar 2017 16:41, Guillermo Irisarri wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello Dear SCIP:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Is there an example showing the basics of using the lpi_spx2 interface routines? I looked into the Soplex example to interface from C++ and all is good. However it seems better to try to use the lpi/lp interface. Iis this true? If so, are
there any examples?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Guillermo <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:navy">Guillermo D. Irisarri</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#244061">Open Access Technology International, Inc.<br>
e-mail: Guillermo.Irisarri</span></i><a href="mailto:P@oati.net" title="mailto:Pierre.Ruiz@oati.net"><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#244061">@oati.net</span></i></a><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#244061">3660 Technology Drive NE</span></i><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#244061">Minneapolis, MN 55418</span></i><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#244061"> </span></i><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#244061">Office: (763) 201 2030</span></i><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#244061">Cell: (612) 360 1630</span></i><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#244061">CONFIDENTIAL INFORMATION: This email and any attachment(s) contain confidential and/or proprietary
information of Open Access Technology International, Inc. Do not copy or distribute without the prior written consent of OATI. If you are not a named recipient to the message, please notify the sender immediately and do not retain the message in any form,
printed or electronic.</span></i><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:navy">-----</span></i><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Scip mailing list<o:p></o:p></pre>
<pre><a href="mailto:Scip@zib.de">Scip@zib.de</a><o:p></o:p></pre>
<pre><a href="http://listserv.zib.de/mailman/listinfo/scip">http://listserv.zib.de/mailman/listinfo/scip</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>\__________________<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Matthias Miltenberger<o:p></o:p></pre>
<pre>Zuse Institute Berlin<o:p></o:p></pre>
<pre>Takustr. 7, 14195 Berlin<o:p></o:p></pre>
<pre><a href="http://www.zib.de/miltenberger">www.zib.de/miltenberger</a><o:p></o:p></pre>
<pre><a href="mailto:miltenberger@zib.de">miltenberger@zib.de</a><o:p></o:p></pre>
<pre>+49 (30) 841 85-245<o:p></o:p></pre>
</div>
</body>
</html>