From kiendc at gmail.com Thu May 1 12:46:06 2008 From: kiendc at gmail.com (Cong Kien Dang) Date: Thu, 1 May 2008 12:46:06 -0400 Subject: [DFO] DFO and IPOPT Message-ID: Hi, I have a problem when compiling DFO with IPOPT ========= Error Message ============== dfotest.o:(.data+0x0): undefined reference to `gennor_' ./libdfo_ipopt.a(mintr_ipopt.o): In function `mintr_': mintr_ipopt.f:(.text+0x6e7): undefined reference to `ev_hcv_dummy__' mintr_ipopt.f:(.text+0x6f3): undefined reference to `ev_hov_dummy__' mintr_ipopt.f:(.text+0x6ff): undefined reference to `ev_hlv_dummy__' mintr_ipopt.f:(.text+0x7f2): undefined reference to `ipopt_' ./libdfo_ipopt.a(mintr_ipopt.o):(.data+0x0): undefined reference to `ev_hcv_dummy__' ./libdfo_ipopt.a(mintr_ipopt.o):(.data+0x8): undefined reference to `ev_hlv_dummy__' ./libdfo_ipopt.a(mintr_ipopt.o):(.data+0x38): undefined reference to `ev_hov_dummy__' make: *** [dfotest_ipopt] Error 1 ================================== I verify the code of mintr_ipopt.f and find the call to ipopt solver is --------------------------------------------------------------------------------------------- CALL IPOPT(NIPOPT, X, MIPOPT, NLB, ILB, BNDS_L, NUB, IUB, * BNDS_U, V_L, V_U, LAM, C, LRW, RW, LIW, IW, ITER, IERR, * EVAL_F, EVAL_C, EVAL_G, EVAL_A, EVAL_H, EV_HLV_DUMMY, * EV_HOV_DUMMY, EV_HCV_DUMMY, DAT, IDAT, NARGS, ARGS, CARGS) --------------------------------------------------------------------------------------------- but an example of IPOPT doesn't use this call, il use ----------------------------------------------------------------------- IPROBLEM = IPCREATE(N, X_L, X_U, M, G_L, G_U, NELE_JAC, NELE_HESS, * IDX_STY, EV_F, EV_G, EV_GRAD_F, EV_JAC_G, EV_HESS) if (IPROBLEM.eq.0) then write(*,*) 'Error creating an Ipopt Problem handle.' stop endif .... IERR = IPSOLVE(IPROBLEM, X, G, F, LAM, Z_L, Z_U, IDAT, DAT) ----------------------------------------------------------------- I think that the mintr_ipopt code is not updated to the changes of IPOPT. Is it right? Someone can help me ? Thanks Kien -------------- next part -------------- An HTML attachment was scrubbed... URL: http://list.coin-or.org/pipermail/dfo/attachments/20080501/5fcf7b73/attachment.html