[FRB logo]
[AIM logo]
The Anderson-Moore Algorithm
AIM index


Instructions for Downloading and Running Preprocessors


Downloading Preprocessors:

  1. To download preprocessor executables (in both UNIX and Windows NT environments), simply click on the desired hyperlink. Your browser should prompt you to save the file.

  2. Choose to save the file in the directory from which you will be running the preprocessor.

  3. If your browser displays the file instead of propmting you to save, click your mouse on the frame displaying the file and choose "Save Frame As" under the File menu.


Running Preprocessors:

  1. All model preprocessors are invoked by typing the name of the preprocessor on the command line followed by the MDLEZ file (*.mdl) you have created. For example, if you have created the file mymodel.mdl and are using the C code preprocessor on UNIX, you should type:

    % mdlezAimC mymodel.mdl


  2. The preprocessors differ in the type of output they produce. The C code preprocessor produces a C code file (written to standard output), which is usually redirected to a *.c file. You will want to save the output to a file, which will later be used to run the code which will solve your model. Continuing the example, you would type:

    % mdlezAimC mymodel.mdl > mymodel.c


    Note: The syntax for running the C code preprocessor remains the same in the Windows NT environment.

  3. If you are running the Mathematica preprocessor, the syntax is the same as for the C code preprocessor. Simply change the .c suffixes to .m suffixes. For example, if you are running the Mathematica preprocessor for mymodel.mdl and wish to save the output Mathematica code to a file, mymodel.m, you would type:

    % mdlezAimMath mymodel.mdl > mymodel.m


    Note: The Mathematica preprocessor is currently only available in UNIX.

  4. The Matlab preprocessor produces slightly different output. Instead of producing a Matlab file, it produces two functions using Matlab code, compute_aim_data.m and compute_aim_matrices.m, which will be called later in the algorithm. These functions are stored in files in the directory in which you run the preprocessor, so it is not necessary to redirect them. To run the Matlab preprocessor on mymodel.mdl, you would type:

    % mdlezAimMatlab mymodel.mdl


    Note: The syntax for running the Matlab preprocessor remains the same in the Windows NT environment.



Top of page
About | Papers | Code | Model preprocessors | Examples | Contact info | FAQ


Home | OSS | AIM index

To comment on this site, please fill out our feedback form.
Last update: September, 2000