<div dir="ltr">Thank you Stefan,<div><br></div><div>When I try it, I get the following error:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">calling subnlp heuristic
</span><br>Exception of type: OPTION_INVALID in file "IpAlgBuilder.cpp" at line 404:
<br> Exception message: Support for HSL_MA97 has not been compiled into Ipopt<br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">Have you compiled IpOpt from sources? (I have installed from my package manager as well)</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">Thanks!</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 7, 2021 at 8:30 AM Stefan Vigerske <<a href="mailto:svigerske@gams.com">svigerske@gams.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">Hi,<br>
<br>
there is a way, depending on how the ipopt in this scip debian package <br>
was build.<br>
Try setting<br>
<br>
heuristics/subnlp/nlpoptfile = "ipopt.opt"<br>
heuristics/subnlp/nlpverblevel = 1<br>
<br>
and create a file ipopt.opt with content<br>
<br>
linear_solver ma27<br>
<br>
<br>
With the SCIP 7 that I found installed somewhere, this gives me the output<br>
<br>
  time | node  | left  |LP iter|LP it/n|mem/heur|mdpt |vars |cons |rows <br>
|cuts |sepa|confs|strbr|  dualbound   | primalbound  |  gap   | compl.<br>
   0.0s|     1 |     0 |   128 |     - |  1050k |   0 |  47 |  40 | 108 <br>
|   0 |  0 |   0 |   0 |-1.879054e+00 |      --      |    Inf | unknown<br>
calling subnlp heuristic<br>
Exception of type: OPTION_INVALID in file <br>
"/nfs/optimi/usr/sw/Ipopt-3.13.2-src/Ipopt/src/Algorithm/IpAlgBuilder.cpp" <br>
at line 268:<br>
  Exception message: Selected linear solver MA27 not available.<br>
Tried to obtain MA27 from shared library "libhsl.so", but the following <br>
error occured:<br>
libhsl.so: cannot open shared object file: No such file or directory<br>
[nlpi_ipopt.cpp:1167] ERROR: Ipopt returned with application return <br>
status -12<br>
<br>
<br>
So the information that Ipopt should use MA27 is received, but it fails <br>
because Ipopt has been build without the HSL codes. Unless it has been <br>
disabled in this build of Ipopt, Ipopt then tried to load a library <br>
libhsl.so with the HSL codes at runtime <br>
(<a href="https://coin-or.github.io/Ipopt/INSTALL.html#LINEARSOLVERLOADER" rel="noreferrer" target="_blank">https://coin-or.github.io/Ipopt/INSTALL.html#LINEARSOLVERLOADER</a>). So if <br>
you have such a library around, then you just need to make sure that it <br>
can be found.<br>
<br>
<br>
This only applies to Ipopt called by the subnlp primal heuristic. Other <br>
heuristics that call Ipopt do not have a "nlpoptfile" option (or I <br>
forgot that they have), but subnlp should be the most important one.<br>
<br>
If you work with the C API, then you can use function <br>
SCIPsetModifiedDefaultSettingsIpopt() <br>
(<a href="https://www.scipopt.org/doc-7.0.3/html/group__NLPIS.php#gaf626a99a6be56ab52994fe11e6ac440f" rel="noreferrer" target="_blank">https://www.scipopt.org/doc-7.0.3/html/group__NLPIS.php#gaf626a99a6be56ab52994fe11e6ac440f</a>) <br>
to set option "linear_solver ma27" for all calls to Ipopt.<br>
<br>
<br>
With the next major release, things will change and there will be a SCIP <br>
  option nlpi/ipopt/linear_solver to set the linear solver of Ipopt for <br>
all calls to Ipopt.<br>
<br>
Stefan<br>
<br>
<br>
On 10/6/21 18:04, Marco Correia wrote:<br>
> Hi,<br>
> <br>
> Is it possible to install SCIP with IPOPT with support for the HSL<br>
> libraries (the latter already installed) using the scip debian package, or<br>
> do I need to install SCIP from source? If so, do I also need to install<br>
> IPOPT from source?<br>
> <br>
> Thanks<br>
> Marco<br>
> <br>
> <br>
> _______________________________________________<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>
> <br>
<br>
</blockquote></div>