[ADOL-C] Trying to build a simple
Christian Wolf
ChristianLupus at gmx.de
Fri Nov 14 07:32:17 EST 2014
Hello,
at least you must define the independent and dependent variables.
So you have to write
trace_on();
start_values[0] <<= 100;
start_values[1] <<= 150;
start_values[2] <<= 75;
adouble ascore = obj(start_values);
double score;
ascore >>= score;
trace_off();
The rest looks good, but I did not test it.
Christian
Am 14.11.2014 um 03:15 schrieb Scott Rasmussen @ Zaita:
> I am trying to build a simple proof of concept function minimiser that
> uses ADOLC (2.5.2) as it's auto differentiation library. I've written
> some simple code to start working with ADOLC but I am getting this error:
>
> ADOL-C error: forward sweep on tape 0 aborted!
> Number of dependent(1) and/or independent(3) variables passed to
> forward is
> inconsistent with number recorded on tape (zu, zu)
> terminate called after throwing an instance of 'FatalError'
> what(): errorcode=-1 function=zos_forward file=./uni5_for.c
> line=1066 what=
>
> This application has requested the Runtime to terminate it in an
> unusual way.
> Please contact the application's support team for more information.
>
> Code can be found at: http://pastebin.com/sSXBuzLR
>
> I am trying to base this code on an implementation of a minimiser that
> was done on ADOLC18 (for CASAL).
>
> Any help with this would be hugely appreciated.
>
> Regards,
> Scott.
>
>
> _______________________________________________
> ADOL-C mailing list
> ADOL-C at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/adol-c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/adol-c/attachments/20141114/46efa63e/attachment.html>
More information about the ADOL-C
mailing list