<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
at least you must define the independent and dependent variables.<br>
<br>
So you have to write<br>
<br>
trace_on();<br>
start_values[0] <<= 100;<br>
start_values[1] <<= 150;<br>
start_values[2] <<= 75;<br>
<br>
adouble ascore = obj(start_values);<br>
double score;<br>
ascore >>= score;<br>
trace_off();<br>
<br>
The rest looks good, but I did not test it.<br>
<br>
Christian<br>
<div class="de2"> <br>
</div>
<br>
<div class="moz-cite-prefix">Am 14.11.2014 um 03:15 schrieb Scott
Rasmussen @ Zaita:<br>
</div>
<blockquote cite="mid:546565CD.5040309@zaita.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<font size="-1">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:<br>
<br>
ADOL-C error: forward sweep on tape 0 aborted!<br>
Number of dependent(1) and/or independent(3) variables passed to
forward is<br>
inconsistent with number recorded on tape (zu, zu)<br>
terminate called after throwing an instance of 'FatalError'<br>
what(): errorcode=-1 function=zos_forward file=./uni5_for.c
line=1066 what=<br>
<br>
This application has requested the Runtime to terminate it in an
unusual way.<br>
Please contact the application's support team for more
information.<br>
<br>
Code can be found at: <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://pastebin.com/sSXBuzLR">http://pastebin.com/sSXBuzLR</a><br>
<br>
I am trying to base this code on an implementation of a
minimiser that was done on ADOLC18 (for CASAL).<br>
<br>
Any help with this would be hugely appreciated.<br>
<br>
Regards,<br>
Scott.<br>
</font> <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ADOL-C mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ADOL-C@list.coin-or.org">ADOL-C@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/adol-c">http://list.coin-or.org/mailman/listinfo/adol-c</a></pre>
</blockquote>
<br>
</body>
</html>