Please enable JavaScript to view this site.

ModelMuse Help

Navigation: » No topics above this level «

Working with PEST

Scroll Prev Top Next More

PEST (Doherty, 2015, www.pesthomepage.org) is a model-independent program for parameter estimation.  Before starting to work with any model, it is important to have a clear goal for the model (Anderson et al., 2015): What question should the model to answer? What decision will need to be made and how will the model aid in making that decision? For example, if a farmer applies for a permit to pump additional groundwater for irrigation, a regulator might grant or deny the permit by using a model to predict how the pumping will affect other users. A city might want to have a new well to supply drinking water but is concerned about sea water intrusion. A model might be used to help predict whether a proposed location for the well is suitable. In each case, the model purpose determines which features of the natural system are needed to be retained and which can be omitted, which in term determines how the model is constructed and calibrated (Anderson and others, 2015).

A groundwater model needs to incorporate the processes that govern groundwater flow in the area of interest. Gordan Bennett expressed this well. "When you started to have that problem, when you couldn't get a solution, you could get help with that. You could not get any help if you had a conceptual screw-up in your understanding of the regional hydrology. If you didn't have a rough idea of what the evapotranspiration was, of what the big streams were doing, and how the stream flow was related to groundwater, there's where you could get into trouble…." (Bennett, personal communication, Feb. 21, 2019.)

Before starting to calibrate the model with PEST, the modeler will typically attempt to manually modify the model to get as good a fit as possible. Manual calibration typically involves many types of model modification that are not available in automated calibration programs such as PEST. For example, the modeler might make modifications such as

Changing the delineation of the study area.

Changing the number of layers.

Changing the horizontal extent of some layers.

Changing the locations of boundary conditions.

Changing the type of boundary conditions.

Adjusting the number of stress periods or the number of time steps.

Modifying input values that are poorly constrained by the data.

A brief discussion of using parameter estimation is provided here but is necessarily only a small subset of an expansive subject; those interested in more encompassing discussions of using PEST for groundwater model calibration are referred to Doherty and Hunt (2010) and Anderson and others (2015). PEST assists model calibration by varying selected inputs to the model (parameters) so that the simulated values generated by the model more closely approach comparable observed values. The hope is that by more closely matching the observations, the model will reduce prediction uncertainty. At the same time, overfitting the model is a danger that the modeler needs to avoid (Anderson and others,2015). PEST will run the model many times during this process. For that reason, it is important for the model to run well; it should not terminate prematurely because of problems with the input or because of convergence failure. It is also important that the model not take too long to run, or it may be impractical to calibrate it with PEST without parallel computing. For many parameter estimation algorithms, the larger the number of parameters to be estimated, the longer it will take to calibrate the model and the more advantageous the shorter run time. Recent advances in calibration algorithms, however, have been shown to appreciably reduce the computational burden of calibration (Hunt et al., 2021), so the relation between parameter number and estimation runtime becoming less coupled.  

Installing PEST

To install PEST, download the distribution file and extract it to an empty directory. ModelMuse also uses PLPROC and some of the groundwater utilities for PEST both or which can be downloaded from www.pesthomepage.org. ModelMuse assumes that PEST, PLPROC, and the groundwater utilities are all installed in the same directory. You will need to specify the directory in which PEST is installed in the Basic pane of the PEST Properties dialog box.

There are alternate versions of the PEST executable that can be downloaded. For example, with PEST version 17.3, you can install PEST from pest17.zip or from i64execs.zip. The executables in i64execs.zip mostly have "i64" as a prefix to the file name. When running PEST or its utility programs ModelMuse will look for all versions of the executable name in the PEST directory and will use the first one it finds. If it does not find an appropriate executable, it will generate an error message.

There is no "i64" version of one of the utilities used by ModelMuse: PSTCLEAN. Be sure to install it from pest17.zip or from a more recent version of PEST if one exists.

To use PEST with a model, PEST must be activated in the Basic pane of the PEST Properties dialog box.

When PEST is calibrating a model, it does so by changing some of the model inputs. You must decide which model inputs PEST is allowed to vary. You do that by first defining parameters in the Manage Parameters dialog box or for some MODFLOW packages in the MODFLOW Packages and Programs dialog box and then using the parameters in the Data Sets dialog box or the Object Properties dialog box.

For more information about PEST see the PEST home page at www.pesthomepage.org. See the PEST help pages at help.pesthomepage.org for extensive guidance in the use of PEST and supporting software (as well as some guidance on decision-support modeling in general).

Is it Practical to Use PEST?

Using Parameters with Data Sets

Using PEST Parameters with Model Features

PEST Calibration Observations

PEST Control Variables

Running PEST

Using SVD Assist

Visualizing Residuals

Visualizing Modified Model Input

Unsupported PEST Capabilities

Limitations