[ADMB Users] code to check for uninitialized variables

dave fournier davef at otter-rsch.com
Mon Feb 18 13:38:58 PST 2013


I modified the code in derch.cpp
so that it can be used for checking for unitilialized variables.

run this example with -dd 0  as in

    ./xx -dd 0

to check it out.  you use a stepsize of 0.0 to get this option
-------------- next part --------------
A non-text attachment was scrubbed...
Name: derch.cpp
Type: text/x-c++src
Size: 5248 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20130218/25dc85c5/attachment.cpp>
-------------- next part --------------

DATA_SECTION
PARAMETER_SECTION
  init_vector x(1,5)
  number ssum
  objective_function_value f
PROCEDURE_SECTION
  ssum+=norm2(x-1.0);
  f=ssum;


More information about the Users mailing list