Integrating HGS Models with PEST for Automated Parameter Estimation

This post introduces a detailed tutorial on integrating PEST (Parameter ESTimation) with HydroGeoSphere (HGS) for automated parameter estimation. The tutorial walks through the structure of PEST input files and guides you on how to incorporate them into your HGS models. It's designed to help you run parameter estimation using PEST, though it doesn't cover advanced PEST modes like Tikhonov regularization or predictive analysis. The tutorial is based on the Abdul verification problem and includes all necessary input files. By following the steps outlined, you can run PEST to optimize parameters in your HGS model with ease.


We’re pleased to provide a fully documented tutorial on how to integrate the automated parameter estimation processes offered by PEST into your HydroGeoSphere models. This document carefully reviews the structure of PEST input files and discusses how you would integrate these PEST files with your HydroGeoSphere model. Please note that this tutorial is primarily geared toward the parameter estimation mode, and does not cover more advanced PEST modes such as Tikhonov regularization, Singular Value Decomposition (SVD assist), predictive analysis mode, or pareto mode.

If you find this tutorial helpful and are interested in further information regarding the advanced methods listed above please provide feedback to help guide me toward more useful topics.

Download the tutorial documentation here: Using PEST to Calibrate a HydroGeoSphere Model.pdf
Download the example problem here: PEST_tutorial.zip

This example problem is based on the Abdul verification problem (of course!) and includes all the necessary PEST input files. Strictly speaking, all you need to do to run the PEST parameter estimation is:

  1. Download the example files

  2. Run the Abdul_PEST model through HGS (i.e. run grok.exe then phgs.exe)

  3. Copy all files from the 'PEST Input files' folder into the model folder

  4. Open the command line and type 'pest.exe Abdul_PEST.pst' and hit enter

PEST will then initiate the optimization algorithm, which may take a while to run (it depends on your computer specs; on my 16-core machine it only took 30-35 minutes). The optimization algorithm will run through >75 model runs over the course of 7 optimization iterations.

The tutorial documentation provides additional insights on the structure of PEST input files and how you can modify this ready-made example project to your own HGS models (as well as tips/tricks/best practices). Images below come from the tutorial file itself, and illustrate the key variables in the PEST control file (Figure 1&2), input template files (Figure 3) and output reading instruction files (Figure 4). For more detailed information see the tutorial documentation.

We hope you find this PEST 101 document helpful! Please let us know if anything is unclear, or if there are additional topics of interest related to PEST that we can expand upon.

Figure 1: PEST Control File (.pst) Format Part 1

Figure 2: PEST Control File (.pst) Format Part 2

Figure 3: Input Template File (.tpl) Format

Figure 4: Output Reading Instruction File (.ins) Format

Previous
Previous

Canada 1 Water - Evaluating climate change impacts on ground/surface water sustainability across continental Canada

Next
Next

Integrating HydroGeoSphere and PEST for Automated Parameter Estimation