Application of MATLAB and Python optimizers to two case studies involving groundwater flow and contaminant transport modeling☆
Introduction
A common approach for utilizing geoscience models in a management or policy-analysis context is to incorporate them into a simulation-based optimization framework—where an underlying process-based geoscience model is linked with an optimization search algorithm (Banta et al., 2008, Freeze and Gorelick, 1999). During optimization, a given search algorithm iteratively adjusts various model inputs (i.e., parameters or design variables) in order to minimize an application-specific cost function computed on the basis of model outputs (i.e., response variables). The fundamental output of an optimization algorithm is an “optimal” configuration of design variables along with the corresponding value of the cost function.
Numerous optimization search algorithms have been developed and may be classified according to a variety of alternative taxonomies (e.g., Dréo et al., 2006, Talbi, 2002). For this paper, it is convenient to informally divide the spectrum of optimizers into four categories: (1) gradient-based algorithms that use derivative information to guide the search; (2) heuristic algorithms that do not utilize derivative information but instead follow empirical guidelines and incorporate elements of structured randomness; (3) direct search algorithms that are derivative free but utilize deterministic stencil-based procedures; and (4) hybrid methods that combine aspects of the previous three categories.
Example applications of simulation-based optimization in a geoscience context include the design of pump-and-treat systems (McKinney and Lin, 1996), groundwater supply systems (Chu and Chang, 2010), landfill liners (Bartelt-Hunt et al., 2006), agricultural operations (Gitau et al., 2006), waste load allocation strategies (Burn and Yulianti, 2001), and geothermal reservoirs (Akin et al., 2010). In addition, calibration of geoscience models is typically formulated as a simulation-based optimization problem—where uncertain model parameters are adjusted to minimize differences between simulated outputs and corresponding observational data (Massoudieh et al., 2008).
For a given application, researchers have generally used optimization routines that are embedded within the code of the underlying geoscience model (e.g., Akin et al., 2010, Lim et al., 2010). However, various efforts by commercial entities, research labs, academics, and independent enthusiasts have led to the development of numerous general-purpose optimization libraries using the MATLAB and Python programming languages (Dahl and Vandenberghe, 2008, Hart, 2009, Kelley, 1999, Venkataraman, 2009). These libraries can potentially eliminate the need to implement embedded optimization codes if the associated external optimizers are sufficiently robust and deliver good performance when applied to problems of interest.
To assist practitioners with identifying “best-in-class” MATLAB and Python optimizers for a given simulation-based optimization problem, a series of numerical experiments were performed involving two case studies relevant to the geosciences community and a suite of 12 MATLAB and Python optimizers. The case studies consider optimization from two distinctly different contexts—a pump-and-treat case study emphasizes least-cost remedial system design, while a subsurface strontium transport application considers the best-fit calibration of model parameters.
The remainder of the paper is organized as follows: Section 2 describes the selected case-study simulation-based optimization problems; Section 3 describes the optimizers that were selected for consideration in this study along with the associated numerical experiments; Section 4 presents the results of the numerical experiments and compares the performance of the selected optimizers; and Section 5 provides some concluding remarks.
Section snippets
Case-study simulation-based optimization problems
To evaluate the usefulness of MATLAB and Python optimizers in a geosciences context, selected algorithms were applied to two case-study simulation-based optimization problems involving groundwater flow and contaminant transport. The first case study (i.e., “the calibration problem”) considers the calibration of a subsurface reactive transport model where the primary solute of interest is strontium. The second case study (i.e., “the pump-and-treat problem”) involves the design of a
Numerical experiments
A software code known as PIGEON (Program for Interfacing Geoscience models with External Optimization routiNes) was developed to link the selected Python and MATLAB optimizers with the selected case-study models (i.e., MOUSER and Bluebird, for the calibration pump-and-treat problems, respectively). PIGEON provides users with a human-readable text file interface for configuring the necessary communication between a given combination of geoscience model and external optimizer. The PIGEON software
Results and discussion
The performance of the selected algorithms, as applied to the MOUSER calibration problem, is summarized in Table 2. As shown in Table 2, the top 5 optimizers (i.e., Hooke–Jeeves, TNC, IFFCO, DE, and DDS) delivered comparable results (i.e., within 1% of each other) in terms of minimizing the weighted sum of squared residuals (WSSR) cost function. Of these algorithms, the two direct search optimizers (i.e., Hooke–Jeeves and IFFCO) were the most efficient in terms of computational costs (i.e.,
Conclusions
Overall, the results from the two benchmark problems indicate that the Hooke–Jeeves algorithm yielded the best performance in terms of identifying least-cost solutions. For the MOUSER calibration problem the Hooke–Jeeves algorithm was also highly efficient and required only 300 model evaluations. For the pump-and-treat problem, the Hooke–Jeeves algorithm was not as efficient and required 993 model evaluations before converging on a solution. If trading off optimized cost for computational
References (44)
- et al.
Optimization of well placement geothermal reservoirs using artificial intelligence
Computers & Geosciences
(2010) - et al.
Building model analysis applications with the joint universal parameter identification and evaluation of reliability (JUPITER) API
Computers & Geosciences
(2008) - et al.
High-order line elements in modeling two-dimensional groundwater flow
Journal of Hydrology
(1999) Calibration of conceptual hydrological models revisited: 1. Overcoming numerical artefacts
Journal of Hydrology
(2006)- et al.
Development of genetic algorithm-based optimization module in WHAT system for hydrograph analysis and model application
Computers & Geosciences
(2010) - et al.
Column and batch reactive transport experiment parameter estimation using a genetic algorithm
Computers & Geosciences
(2008) - et al.
Pump-and-treat optimization using analytic element method flow models
Advances in Water Resources
(2006) - et al.
UCODE, a computer code for universal inverse modeling
Computers & Geosciences
(1999) Newton's method and its use in optimization
European Journal of Operational Research
(2007)- et al.
Performance assessment of a zeolite treatment wall for removing Sr-90 from groundwater
Journal of Contaminant Hydrology
(2005)
HYDROMAD Tutorial
Optimal design of a compacted soil liner containing sorptive amendments
Journal of Environmental Engineering
The convergence of a class of double-rank minimization algorithms. 1. General considerations
IMA Journal of Applied Mathematics
Generative fixation: a unified explanation for the adaptive capacity of simple recombinative genetic algorithms
SIGEVOlution
Waste-load allocation using genetic algorithms
Journal of Water Resources Planning and Management
Optimizing capacity-expansion planning of groundwater supply system between cost and subsidence
Journal of Hydrologic Engineering
CVXOPT: A Python Package for Convex Optimization
Numerical experience with the truncated Newton method for unconstrained optimization
Journal of Optimization Theory and Applications
A new approach to variable metric algorithms
The Computer Journal
Convergence of stochastic optimization and decision analysis in the engineering design of aquifer remediation
Ground Water Monitoring & Remediation
Cited by (36)
3D modeling of the stratigraphic and structural architecture of the Crotone basin (southern Italy) using machine learning with Python
2024, Marine and Petroleum GeologyComparison of parallel optimization algorithms on computationally expensive groundwater remediation designs
2023, Science of the Total EnvironmentComparative analysis of machine learning techniques in the prediction of the strength of structural concrete
2023, Materials Today: ProceedingsEnergy equipment sizing and operation optimisation for prosumer industrial SMEs – A lifetime approach
2021, Applied EnergyCitation Excerpt :For this reason, the use of global optimisation algorithms is preferred in this case, as they have a better chance of finding the global optimal and do not require information from the derivative of the objective function [75]. For the specific situation considered, the optimisation problem is solved using DS, a derivative-free global optimisation algorithm based on branching techniques that performs successfully in front of practical problems with complex search areas [76] and that provides global convergence as proven in [77]. Once the global optimiser is initialized, the first candidates are obtained.
Water desalination by forward osmosis: Dynamic performance assessment and experimental validation using MgCl<inf>2</inf> and NaCl as draw solutes
2021, Computers and Chemical EngineeringBinary, unrelaxable and hidden constraints in blackbox optimization
2020, Operations Research Letters
- ☆
Code available from server at http://www.civil.uwaterloo.ca/lsmatott/Pigeon/Pigeon.html