[Ipopt] Ipopt Digest, Vol 96, Issue 18

Edson Cordeiro do Valle edsoncv at enq.ufrgs.br
Sun Dec 30 09:26:03 EST 2012


    Hello Alberto

If you run HS71 without any issue, that can be a problem of your search 
path.
Notice the "alternative" ipopt constructor (Ipopt.java):
         public Ipopt(String path, String DLL){
             // Loads the library
             File file = new File(path, System.mapLibraryName(DLL));
             System.load(file.getAbsolutePath());
         }
and
     public static final String DLLNAME = "jipopt";
     /** The relative path where the native DLL is found */
     public static final String DLLPATH = "lib";
so, you need to use this second constructor and send the jipopt.dll path 
appropriatelly. Or create a "lib" folder in your project and place the 
.dll there. This is probably the source of your problem.

Your second problem (get the final values) you can get it with the 
"getState()" method.

Regards
Edson



> Send Ipopt mailing list submissions to
> 	ipopt at list.coin-or.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://list.coin-or.org/mailman/listinfo/ipopt
> or, via email, send a message with subject or body 'help' to
> 	ipopt-request at list.coin-or.org
>
> You can reach the person managing the list at
> 	ipopt-owner at list.coin-or.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ipopt digest..."
>
>
> Today's Topics:
>
>     1. Some issues about JIpopt usage (Alberto Calzada)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 28 Dec 2012 15:20:33 +0000
> From: Alberto Calzada <albertocalsa at gmail.com>
> To: Ipopt at list.coin-or.org
> Subject: [Ipopt] Some issues about JIpopt usage
> Message-ID:
> 	<CAOtPDdA-X2fazQ8vqvGSnkPBeWw43RByavejpsoCjtu6AedEyg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear List,
>
> First of all, many thanks for providing this great tool to solve non-linear
> constrained optimisation problems in Java. I have found the use of this
> interface easy and even enjoyable! Good job!
>
> However, I have found a couple of issues...
>
> The first one: I am working in a big project Eclipse and I really don't
> know why (even if I execute the hs071.java class without any issue at all)
> I can't execute my class, which has been already implemented!
> I keep on having the runtime error "java.lang.NoClassDefFoundError:
> org/coinor/Ipopt". I have checked it and both the DLL file (for Win32) and
> also the JIpopt JAR are included in the JAR of my project so I don't know
> what can I do! I have cleaned my project, restated Eclipse and I always get
> this error... Any ideas?
> I am working on a Windows7 64-bits computer. Could that be the problem?
>
> My second issue is regarding how can I get the optimal solution for my
> problem variables retrieved by JIpopt. I need to assign those values to my
> decision making scheme, but I haven't found any method in the Ipopt class
> or in the hs071 example.
>
> I hope to hear from you soon,
> Many thanks,
> Best regards,
>
> Albe
>



More information about the Ipopt mailing list