<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style id="owaParaStyle" type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style><style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle18
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
-->
</style>
</head>
<body aria-label="Corpo del messaggio" fpstyle="1" id="" tabindex="0" dir="ltr">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
Hello Jonathan, thanks to you and to William for the replies.<br>
<br>
Regarding FORTRAN, I have a sound knowledge about how to interface it with C/C&#43;&#43;, what I needed were the names of the functions that you guys pointed me to, regarding how to build a problem using addColumns and the other functions declared in the C interface
 file. Thanks for that!<br>
<br>
Coming to afiro, I had it solved with the two methods I told you about, then using Simpo and despite the objective value being the same with all the three solvers, the values of the solutions differ slightly:<br>
<img rszimgcmd="fitToWindow" originalheight="859" originalwidth="1803" title="Fai clic per ridimensionare" height="480.7160288408208" width="1009" src="cid:482185ea-37e3-4464-9371-43b6208082ee"><br>
<p>On the left, afiro solved with the ClpMinimum program; on the right, solved with ClpTestBarrier (therefore using the dual algorithm).</p>
<p>I then compared the solution from the simple algorithm, on the left, with that from Simpo solver, which as you can see gives a solution that is the same as what is the correct solution:</p>
<img rszimgcmd="fitToWindow" originalheight="856" originalwidth="1804" title="Fai clic per ridimensionare" height="478.7716186252772" width="1009" src="cid:332ae16c-975f-45a8-859d-cd23a1df460a"><br>
<p>In the browser window, the solution given by the Mathematica software matches that from Simpo. And afaik, this is the correct solution.</p>
<p><br>
</p>
<p>Therefore, I'm really looking forward to using Clp in my project, but I'm concerned that for some tough problems it may give incorrect results.</p>
<p><br>
</p>
<p>Thanks in advance,<br>
</p>
<p><br>
</p>
<p>Andrea<br>
</p>
<p><br>
</p>
<div style="color:rgb(40,40,40)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Da:</b> Jonathan Currie &lt;jonathan.currie@aut.ac.nz&gt;<br>
<b>Inviato:</b> gioved&igrave; 19 settembre 2013 22:51<br>
<b>A:</b> Andrea Bertoldo; clp@list.coin-or.org<br>
<b>Oggetto:</b> RE: [Clp] Questions about CLP (which I couldn't find in the FAQ, possibly because they're super-outdated)</font>
<div>&nbsp;</div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Hi Andrea,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Have a look at some of the examples in Clp/examples. Specifically addColumns.cpp might be of assistance. I&#8217;m not sure about calling C&#43;&#43; code from Fortran
 however, you may need to experiment with the C interface (see driverC.c).</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Re afiro, I obtain an objective of -464.7531 using Clp, OOQP, SCIP and linprog. I assume this is the correct answer? I used Clp v1.15.2 with presolve on and
 the Dual Simplex algorithm. The barrier algorithm also obtains the same solution for me.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Jonathan</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang="EN-US">From:</span></b><span style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" lang="EN-US"> clp-bounces@list.coin-or.org [mailto:clp-bounces@list.coin-or.org]
<b>On Behalf Of </b>Andrea Bertoldo<br>
<b>Sent:</b> Thursday, 19 September 2013 8:21 p.m.<br>
<b>To:</b> clp@list.coin-or.org<br>
<b>Subject:</b> [Clp] Questions about CLP (which I couldn't find in the FAQ, possibly because they're super-outdated)</span></p>
</div>
</div>
<p class="MsoNormal">&nbsp;</p>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper">
<p class="MsoNormal"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:black">Hello everyone,<br>
<br>
I have been trying out CLP a little bit to see how well it works, and I've got a couple of questions:<br>
- is it possible to work without passing through a MPS file? I'm looking for a library that works with data in memory, and I would like to be able to call it from Fortran, and the documentation for this project is quite vast and if there's a mention about calling
 CLP by passing matrices instead of reading a MPS, well, I've missed it;<br>
- I've found the notorious afiro problem inside the Data/Samples folder, and I've tried to feed it to the CLP Minimum and CLP TestBarrier projects (inside the Clp solution provided for the users to test), but the results are different from what the real solution
 should be. Is there a more robust algorithm in your library that is able to solve this problem? CLP Minimum uses a bare ClpSimplex object, whereas CLP TestBarrier switches from an interior to a simplex method.<br>
<br>
Thanks in advance for your time and congratulations to all the people involved in COIN-OR for what you have achieved! I was really impressed when I found out how much stuff you have going on :)<br>
<br>
Kind regards,<br>
<br>
Andrea</span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>