[Ipopt] IPOPT on Mac OSX 10.6 with MATLAB R2011b
Marco Rozgic
marco.rozgic at hsu-hh.de
Wed Feb 8 13:43:56 EST 2012
Thanks for that! It worked perfectly and you made this week at least a
small success for me ;-). The MATLAB output for examplelasso is now:
******************************************************************************
This program contains Ipopt, a library for large-scale nonlinear
optimization.
Ipopt is released as open source code under the Eclipse Public License
(EPL).
For more information visit http://projects.coin-or.org/Ipopt
******************************************************************************
This is Ipopt version 3.10.1, running with linear solver ma57.
Number of nonzeros in equality constraint Jacobian...: 0
Number of nonzeros in inequality constraint Jacobian.: 32
Number of nonzeros in Lagrangian Hessian.............: 36
Total number of variables............................: 16
variables with only lower bounds: 0
variables with lower and upper bounds: 0
variables with only upper bounds: 0
Total number of equality constraints.................: 0
Total number of inequality constraints...............: 16
inequality constraints with only lower bounds: 16
inequality constraints with lower and upper bounds: 0
inequality constraints with only upper bounds: 0
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du
alpha_pr ls
0 2.0362309e+03 0.00e+00 3.39e+01 0.0 0.00e+00 - 0.00e+00
0.00e+00 0
1 1.2058144e+03 0.00e+00 2.54e+01 -6.0 3.86e+00 - 2.12e-01
2.56e-01f 1
2 7.1857478e+01 0.00e+00 5.91e-01 0.1 7.22e+00 - 7.18e-01
1.00e+00f 1
3 6.7127651e+01 0.00e+00 6.28e-07 -1.2 7.90e-01 - 1.00e+00
1.00e+00f 1
4 5.6437844e+01 0.00e+00 2.21e-03 -2.0 1.86e+00 - 1.00e+00
9.53e-01f 1
5 5.5727100e+01 0.00e+00 3.43e-03 -7.8 1.88e-01 - 9.91e-01
8.26e-01f 1
6 5.5643835e+01 0.00e+00 1.31e-02 -4.4 3.30e-02 - 1.00e+00
7.77e-01f 1
7 5.5629288e+01 0.00e+00 5.37e-03 -5.1 1.07e-02 - 1.00e+00
8.69e-01f 1
8 5.5626581e+01 0.00e+00 7.28e-05 -6.2 5.04e-03 - 1.00e+00
9.97e-01f 1
9 5.5626338e+01 0.00e+00 1.02e-12 -7.0 1.46e-03 - 1.00e+00
1.00e+00f 1
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du
alpha_pr ls
10 5.5626323e+01 0.00e+00 5.04e-06 -11.0 2.14e-04 - 1.00e+00
9.95e-01f 1
11 5.5626323e+01 0.00e+00 3.14e-15 -11.0 5.81e-06 - 1.00e+00
1.00e+00h 1
Number of Iterations....: 11
(scaled) (unscaled)
Objective...............: 1.0812288368600216e+01 5.5626323096279428e+01
Dual infeasibility......: 3.1363800445660672e-15 1.6135833947827088e-14
Constraint violation....: 0.0000000000000000e+00 0.0000000000000000e+00
Complementarity.........: 1.4262828910720418e-10 7.3378428525709309e-10
Overall NLP error.......: 1.4262828910720418e-10 7.3378428525709309e-10
Number of objective function evaluations = 12
Number of objective gradient evaluations = 12
Number of equality constraint evaluations = 0
Number of inequality constraint evaluations = 12
Number of equality constraint Jacobian evaluations = 0
Number of inequality constraint Jacobian evaluations = 1
Number of Lagrangian Hessian evaluations = 1
Total CPU secs in IPOPT (w/o function evaluations) = 0.053
Total CPU secs in NLP function evaluations = 0.020
EXIT: Optimal Solution Found.
Solution:
0.0320
0.0047
1.9496
-4.0713
-0.0060
0.0000
-0.7854
3.0662
On 08.02.12 18:03, Ray Zimmerman wrote:
> Looks like it is trying to dynamically link to ...
>
> libipopt.1.dylib
> libcoinhsl.1.dylib
> libcoinmetis.1.dylib
>
> ... when it should be statically linking to them. In fact, these files
> shouldn't even exist ... maybe they are still around from a previous
> build?
>
> Try deleting those libraries (or starting with a clean Ipopt build
> directory) and rebuilding Ipopt and the MEX file, then hopefully it
> will link to the static files and Matlab will be able to load
> everything it needs to run properly.
>
> --
> Ray Zimmerman
> Senior Research Associate
> 419A Warren Hall, Cornell University, Ithaca, NY 14853
> phone: (607) 255-9645
>
>
>
>
> On Feb 8, 2012, at 10:55 AM, Marco Rozgic wrote:
>
>> Hello.
>>
>>
>> On 08.02.12 16:43, Ray Zimmerman wrote:
>>> 1. Double-check the MATLAB is trying to load the MEX file you just
>>> created by typing at the Matlab prompt: which ipopt
>> This gives:
>> >> which ipopt
>> /Users/marcorozgic/Documents/MATLAB/ipopt.mexmaci64
>>> 2. See what libraries it is linked to by typing in the Terminal:
>>> otool -L ipopt.mexmaci64
>> This gives:
>> otool -L ~/Documents/MATLAB/ipopt.mexmaci64
>> /Users/marcorozgic/Documents/MATLAB/ipopt.mexmaci64:
>> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
>> (compatibility version 1.0.0, current version 268.0.1)
>>
>> /Users/marcorozgic/Documents/HSU/Optimierung/Ipopt-3.10.1/build64/lib/libipopt.1.dylib
>> (compatibility version 10.0.0, current version 10.1.0)
>> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
>> version 125.2.11)
>>
>> /Users/marcorozgic/Documents/HSU/Optimierung/Ipopt-3.10.1/build64/lib/libcoinhsl.1.dylib
>> (compatibility version 5.0.0, current version 5.1.0)
>>
>> /Users/marcorozgic/Documents/HSU/Optimierung/Ipopt-3.10.1/build64/lib/libcoinmetis.1.dylib
>> (compatibility version 4.0.0, current version 4.1.0)
>> @rpath/libmx.dylib (compatibility version 0.0.0, current version
>> 0.0.0)
>> @rpath/libmex.dylib (compatibility version 0.0.0, current version
>> 0.0.0)
>> @rpath/libmat.dylib (compatibility version 0.0.0, current version
>> 0.0.0)
>> /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
>> version 7.9.0)
>> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
>> version 830.0.0)
>>
>> Executing otool -L ipopt.mexmaci64 in any other directory gives the
>> 'file or directory not found' message.
>>
>> Best,
>> Marco
>>>
>>> --
>>> Ray Zimmerman
>>> Senior Research Associate
>>> 419A Warren Hall, Cornell University, Ithaca, NY 14853
>>> phone: (607) 255-9645
>>>
>>>
>>>
>>>
>>> On Feb 7, 2012, at 2:26 AM, Marco Rozgic wrote:
>>>
>>>> <snip>
>>>
>>>> Fatou:src marcorozgic$ cp ipopt.mexmaci64 ~/Documents/MATLAB/
>>>>
>>>> This is why I assume that this worked. After doing this I want to
>>>> try if IPOPT works in MATLAB. For this purpose I try running
>>>> examplelasso in in /contrib/MatlabInterface/examples. As soon as I
>>>> arrive the line
>>>> [x info] = ipopt(x0,funcs,options);
>>>>
>>>> MATLAB crashes without further error messages. Does anybody has any
>>>> suggestion what to try next?
>>>> Best,
>>>> Marco Rozgic
>>>
>>>
>>>
>>> _______________________________________________
>>> Ipopt mailing list
>>> Ipopt at list.coin-or.org
>>> http://list.coin-or.org/mailman/listinfo/ipopt
>>
>> _______________________________________________
>> Ipopt mailing list
>> Ipopt at list.coin-or.org <mailto:Ipopt at list.coin-or.org>
>> http://list.coin-or.org/mailman/listinfo/ipopt
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20120208/9f3ef5d8/attachment-0001.html>
More information about the Ipopt
mailing list