[Ipopt] Doubt at hs071_nlp.cpp

Carlos Okubo cmojr1 at gmail.com
Sat Apr 28 18:44:25 EDT 2018


Hello!

I am trying to use IPOPT, but I am having problems with the examples. When
I try to reproduce this example: https://www.coin-or.
org/Ipopt/documentation/node23.html#SECTION00053200000000000000

I have errors at the compilation step. After typing "make", I get:

g++   -c -o hs071_nlp.o hs071_nlp.cpp
In file included from hs071_nlp.cpp:9:0:
hs071_nlp.hpp:12:22: fatal error: IpTNLP.hpp: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'hs071_nlp.o' failed
make: *** [hs071_nlp.o] Error 1

Got this solved by:

export CPATH=/home/okubo/CoinIpopt/build/include/coin/

But then, after "make", I have:

g++   -c -o hs071_nlp.o hs071_nlp.cpp
g++   -c -o MyExample.o MyExample.cpp
bla=;\
for file in hs071_nlp.o MyExample.o; do bla="$bla ` $file`"; done; \
g++   -o my_example $bla
/bin/sh: 1: hs071_nlp.o: not found
/bin/sh: 1: MyExample.o: not found
g++: fatal error: no input files
compilation terminated.
Makefile:37: recipe for target 'my_example' failed
make: *** [my_example] Error 1

Then I am not being able to reproduce the example. I think IPOPT is working
well, because it is working with FEniCS and Dolfin Adjoint (
http://www.dolfin-adjoint.org/en/latest/).

Can anybody help?

Regards,

Okubo


-- 
Carlos Massaiti Okubo Júnior - (11) 98463 8579
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20180428/3fd38f28/attachment-0001.html>


More information about the Ipopt mailing list