[ADOL-C] [SOLVED] Mismatched free() / delete / delete [] in documentation examples..

Antonello Lobianco antonello at lobianco.org
Thu Aug 30 05:45:25 EDT 2012


SOLVED :-)

I used the slightly modified generate_tape() and deallocation part of
finalize_solution() of the bocop package (http://www.bocop.org, file
bocop-1.0.3-beta/new_nlp/BOCOP_Problem.cpp) .. no more valgrind errors and
problem that solve indipendently from HPOFF and the number of times it is
run...

So for anyone trying to use Ipopt/Adol-C/ColPack together they should use
that version as the one in the adol-c documentation has the reported issues.

Thanks everyone :-)

Antonello

2012/8/30 Andrea Walther <andrea.walther at uni-paderborn.de>

> Hi,
>
> HPOFF stands for Hessian Pattern Offset
>
> it is used to merge the sparsity pattern of the target funtion
> with the sparsity pattern of the constraints.
>
> > And then I noticed that increasing HPOFF (defined in
> > ADOL-C_sparseNLP.hpp) from 30 to 60 I was ok.
>
> Then you have probably really large problems ;-)
>
> >
> > So, basically what is HPOFF ? is there a way to get it automatically
> > size depending on the dimensions of the problem, so it never crash
> > whatever the data ?
>
> So it has been a while since I programmed it. Therefore, if I remeber it
> right, the following should be true:
>
> One could use in the allocation
>
> instead of
>
> (HP_g[i][0]+HPOFF)
>
> probably
>
> (HP_g[i][0]+HP_f[i][0]+1)
>
> this should provide enough space but might be
> a considerable overestimation.
>
> Best regards
>
> Andrea
>
> --
> Prof. Dr. Andrea Walther
> Lehrstuhl fuer Mathematik und ihre Anwendungen
> Institut fuer Mathematik
> Universitaet Paderborn
> Warburger Str. 100
> 33098 Paderborn
>
> Email: andrea.walther at uni-paderborn.de
> Phone: ++49 5251 602721
> Fax:   ++49 5251 603728
>
> **********
>
>


-- 
Antonello Lobianco
INRA, Laboratoire d'Economie Forestière
14 Rue Girardet - 54000 Nancy, France
Tel: +33.652392310
Email: antonello.lobianco at nancy-engref.inra.fr
http://antonello.lobianco.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/adol-c/attachments/20120830/638305e1/attachment.html>


More information about the ADOL-C mailing list