<div dir="ltr">Hello Edson,<div><br></div><div>First of all, thank you very much for your prompt reply. I am sorry for the delay in answering you, but I have been trying several possible solutions and I still have the same problem.</div>
<div><br></div><div style>As you adviced me, I tried to use the alternative constructor, but I always keep getting the same NoClassDefFoundError in org/coinor/Ipopt. I don&#39;t really know how to approach this problem now, so any possible solution would be more than welcome.</div>
<div style><br></div><div style>Many thanks,</div><div style><br></div><div style>Alberto</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 30 December 2012 14:26, Edson Cordeiro do Valle <span dir="ltr">&lt;<a href="mailto:edsoncv@enq.ufrgs.br" target="_blank">edsoncv@enq.ufrgs.br</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">   Hello Alberto<br>
<br>
If you run HS71 without any issue, that can be a problem of your search path.<br>
Notice the &quot;alternative&quot; ipopt constructor (Ipopt.java):<br>
        public Ipopt(String path, String DLL){<br>
            // Loads the library<br>
            File file = new File(path, System.mapLibraryName(DLL));<br>
            System.load(file.<u></u>getAbsolutePath());<br>
        }<br>
and<br>
    public static final String DLLNAME = &quot;jipopt&quot;;<br>
    /** The relative path where the native DLL is found */<br>
    public static final String DLLPATH = &quot;lib&quot;;<br>
so, you need to use this second constructor and send the jipopt.dll path appropriatelly. Or create a &quot;lib&quot; folder in your project and place the .dll there. This is probably the source of your problem.<br>
<br>
Your second problem (get the final values) you can get it with the &quot;getState()&quot; method.<br>
<br>
Regards<br>
Edson<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send Ipopt mailing list submissions to<br>
        <a href="mailto:ipopt@list.coin-or.org" target="_blank">ipopt@list.coin-or.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/ipopt</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:ipopt-request@list.coin-or.org" target="_blank">ipopt-request@list.coin-or.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:ipopt-owner@list.coin-or.org" target="_blank">ipopt-owner@list.coin-or.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Ipopt digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
    1. Some issues about JIpopt usage (Alberto Calzada)<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>----------<br>
<br>
Message: 1<br>
Date: Fri, 28 Dec 2012 15:20:33 +0000<br>
From: Alberto Calzada &lt;<a href="mailto:albertocalsa@gmail.com" target="_blank">albertocalsa@gmail.com</a>&gt;<br>
To: <a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br>
Subject: [Ipopt] Some issues about JIpopt usage<br>
Message-ID:<br>
        &lt;<a href="mailto:CAOtPDdA-X2fazQ8vqvGSnkPBeWw43RByavejpsoCjtu6AedEyg@mail.gmail.com" target="_blank">CAOtPDdA-<u></u>X2fazQ8vqvGSnkPBeWw43RByavejps<u></u>oCjtu6AedEyg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Dear List,<br>
<br>
First of all, many thanks for providing this great tool to solve non-linear<br>
constrained optimisation problems in Java. I have found the use of this<br>
interface easy and even enjoyable! Good job!<br>
<br>
However, I have found a couple of issues...<br>
<br>
The first one: I am working in a big project Eclipse and I really don&#39;t<br>
know why (even if I execute the hs071.java class without any issue at all)<br>
I can&#39;t execute my class, which has been already implemented!<br>
I keep on having the runtime error &quot;java.lang.<u></u>NoClassDefFoundError:<br>
org/coinor/Ipopt&quot;. I have checked it and both the DLL file (for Win32) and<br>
also the JIpopt JAR are included in the JAR of my project so I don&#39;t know<br>
what can I do! I have cleaned my project, restated Eclipse and I always get<br>
this error... Any ideas?<br>
I am working on a Windows7 64-bits computer. Could that be the problem?<br>
<br>
My second issue is regarding how can I get the optimal solution for my<br>
problem variables retrieved by JIpopt. I need to assign those values to my<br>
decision making scheme, but I haven&#39;t found any method in the Ipopt class<br>
or in the hs071 example.<br>
<br>
I hope to hear from you soon,<br>
Many thanks,<br>
Best regards,<br>
<br>
Albe<br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/ipopt</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><i><font face="arial, helvetica, sans-serif" color="#666666">-- <br></font></i><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<i><font face="arial, helvetica, sans-serif" color="#666666"><span style="background-image:initial;background-color:white">Mr Alberto Calzada<br>Full-time PhD Candidate</span><u></u><u></u></font></i></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<i><font face="arial, helvetica, sans-serif" color="#666666"><span style="background-image:initial;background-color:white">Room 16J25</span> </font></i>
</p></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><i><font face="arial, helvetica, sans-serif" color="#666666"><span style="background-image:initial;background-color:white">School of Computing and Mathematics<br>
Faculty of Computing and Engineering</span></font></i></p></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><i><font face="arial, helvetica, sans-serif" color="#666666"><span style="background-image:initial;background-color:white">University of Ulster at Jordanstown Campus<br>
Northern Ireland, UK<br>Email: </span><span style="background-image:initial;background-color:white;background-repeat:initial initial"><a href="mailto:Calzada-A@email.ulster.ac.uk" target="_blank">Calzada-A@email.ulster.ac.uk</a></span></font></i></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><i><font face="arial, helvetica, sans-serif" color="#666666"><span style="background-image:initial;background-color:white">Tel: </span>
<span style="background-color:rgb(255,255,255)">+44 28 90361114</span> </font></i></p></div>
</div>