Notes on installing evaluation copy
The following is intended to provide some guidance for users interested in evaluating ADModel Builder. The evaluation copy is designed for use with Windows 95 or Windows NT. Note that the registered licensed versions are available under Linux and Unix as well for a variety of platforms.
Step 1a. Download the admbor55.exe file from our web site This is the evaluation version of ADMB. After the download is completed click on the CARRY-ON link to get back here.
Step 2. You will need to download the Borland C++ compiler version 5.5 which is available from http://www.borland.com
Step 3. The files for ADMB are in a self extracting executable, admbor55.exe. Create a new directory called c:\admodel, copy admbor55.exe to it and run the program by typing admbor55.exe -d (you need the -d option to create the necessary subdirectories).
Step 4. You must ensure that the compiler and linker can find the header and library files for ADMB. This can be accomplished by setting the INCLUDE and LIB lines in the file bcc32.cfg (this file is found in the bin subdirectory where you have the Borland compiler.) to the correct values. This can be accomplished with commands like
Step 5. You must ensure that the operating system can find the files in c:\admodel\bin. This can be accomplished by putting the directory c:\admodel\bin on your PATH.
Step 6. Download an example file to test evaluation library and compiler, e.g., simple.tpl:
DATA_SECTION> init_int nobs init_vector Y(1,nobs) init_vector x(1,nobs) PARAMETER_SECTION init_number a init_number b vector pred_Y(1,nobs) objective_function_value f PROCEDURE_SECTION pred_Y=a*x+b; f=regression(Y,pred_Y);
# number of observations
1.4 4.7 5.1 8.3 9.0 14.5 14.0 13.4 19.2 18
# observed x values
-1 0 1 2 3 4 5 6 7 8 9
Step 7. Remove the files simple.cpp, simple.obj, and simple.exe from the directory so you will know can they have been recreated properly. Translate/compile/link simple.tpl file by typing:
Step 8. If there is a new simple.exe file it appears that everything works. Type simple to run the program. You can skip the following steps. Otherwise follow the instructions in steps 9-11.
Step 9. The makeadm command consists of three parts. If you are here one or more of these parts is not functioning properly.Test the tpl2cpp translator by typing:
Step 10. Now you are ready to test the compiler by typing:
command bcc32.exe not foundthen you have failed to put the directory which contains the file bcc32.exe on your path. correct this problem and try again.
If the compiler complains about not being able to find a file named
admodel.h then you have not put the directory containing
this file in the environment string
If the compiler complains about not being able to find a number of other
files with names like
then you have not put the directories containing those files in
the environment string
Correct that. When this step works you should get a file named
Step 11. Now you are ready to test the linker by typing:
ADO32.libthen you have failed to put the directory containing the library in the environment string LIBRARY. Fix that. Eventually you should get everything working and the file simple.exe will be created. Now delete the files simple.exe, simple.obj, and simple.cpp and type:
Other example files (for fishery models) can be found at:
Information on a list-serve for modeling (with emphasis on approaches using ADModel Builder can be found at: