Hostname: page-component-77f85d65b8-9nbrm Total loading time: 0 Render date: 2026-03-29T03:06:30.307Z Has data issue: false hasContentIssue false

On the development of a practical Bayesian optimization algorithm for expensive experiments and simulations with changing environmental conditions

Published online by Cambridge University Press:  23 December 2024

Mike Diessner*
Affiliation:
School of Computing, Newcastle University, Urban Science Building, Newcastle upon Tyne, United Kingdom
Kevin J. Wilson
Affiliation:
School of Mathematics, Statistics and Physics, Newcastle University, Herschel Building, Newcastle upon Tyne, United Kingdom
Richard D. Whalley*
Affiliation:
School of Engineering, Newcastle University, Stephenson Building, Newcastle upon Tyne, United Kingdom
*
Corresponding authors: Mike Diessner and Richard D. Whalley; Emails: m.diessner2@newcastle.ac.uk; richard.whalley@newcastle.ac.uk
Corresponding authors: Mike Diessner and Richard D. Whalley; Emails: m.diessner2@newcastle.ac.uk; richard.whalley@newcastle.ac.uk

Abstract

Experiments in engineering are typically conducted in controlled environments where parameters can be set to any desired value. This assumes that the same applies in a real-world setting, which is often incorrect as many experiments are influenced by uncontrollable environmental conditions such as temperature, humidity, and wind speed. When optimizing such experiments, the focus should be on finding optimal values conditionally on these uncontrollable variables. This article extends Bayesian optimization to the optimization of systems in changing environments that include controllable and uncontrollable parameters. The extension fits a global surrogate model over all controllable and environmental variables but optimizes only the controllable parameters conditional on measurements of the uncontrollable variables. The method is validated on two synthetic test functions, and the effects of the noise level, the number of environmental parameters, the parameter fluctuation, the variability of the uncontrollable parameters, and the effective domain size are investigated. ENVBO, the proposed algorithm from this investigation, is applied to a wind farm simulator with eight controllable and one environmental parameter. ENVBO finds solutions for the entire domain of the environmental variable that outperform results from optimization algorithms that only focus on a fixed environmental value in all but one case while using a fraction of their evaluation budget. This makes the proposed approach very sample-efficient and cost-effective. An off-the-shelf open-source version of ENVBO is available via the NUBO Python package.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press
Figure 0

Figure 1. Bayesian optimization is applied to a one-dimensional function with one local and one global maximum. EI is used as the acquisition function. The input space is bounded by $ \left[0,10\right] $.

Figure 1

Figure 2. Maximization of a two-dimensional problem with one environmental variable $ {x}_1 $ and one controllable variable $ {x}_2 $. Yellow areas indicate high outputs, and dark blue areas indicate low outputs. Upper-left: True objective function. Upper-right: Prediction of a Gaussian process with a measurement taken for the following conditional optimization step. Lower-left: Gaussian process prediction for optimization conditional on the measurement. Lower-right: Bayesian optimization step conditional on the measurement.

Figure 2

Figure 3. Two-dimensional negated Levy function with one controllable parameter $ {x}_1 $ bounded by $ \left[-\mathrm{7.5,7.5}\right] $ and one uncontrollable variable $ {x}_2 $ bounded by $ \left[-10,10\right] $.

Figure 3

Figure 4. Upper row: Means (lines) and $ 95 $% confidence intervals (shaded areas) of the mean absolute percentage error between Gaussian process prediction and truth over $ 30 $ replications. Lower row: Difference between algorithms and random benchmark after $ 100 $ function evaluations for each of the $ 30 $ replications. Two-dimensional Levy function with one uncontrollable parameter on the left and six-dimensional Hartmann function with one uncontrollable parameter on the right.

Figure 4

Figure 5. Comparison of different trade-off parameters $ \beta $ for the UCB acquisition function. Means (lines) and 95% confidence intervals (shaded areas) of the mean absolute percentage error between Gaussian process prediction and truth over 30 replications. Two-dimensional Levy function with one uncontrollable parameter on the left and six-dimensional Hartmann function with one uncontrollable parameter on the right.

Figure 5

Figure 6. Means (lines) and 95% confidence intervals (shaded areas) of the mean absolute percentage error between the predictive mean of the Gaussian process and the truth over 30 replications for the six-dimensional Hartmann function. Upper-left: Comparison of randomly added noise levels, $ \mathcal{N}\left(0,{\sigma}^2\right) $. Upper-right: Comparison of different numbers of uncontrollable parameters $ {n}_E $. Lower-left: Comparison of five different step sizes $ a $ for the random walk $ {\mathcal{U}}_{\left[-a,a\right]} $ added to the previous uncontrollable value. Lower-right: Comparison of uncontrollable variables with different parameter variability.

Figure 6

Figure 7. Relationships between the actual effective domain of the uncontrollable variables and the mean absolute percentage error of an individual run for the six-dimensional Hartmann function. Upper-left: Comparison of randomly added noise levels, $ \mathcal{N}\left(0,{\sigma}^2\right) $. Upper-right: Comparison of different numbers of uncontrollable parameters $ {n}_E $. Lower-left: Comparison of five different step sizes $ a $ for the random walk $ {\mathcal{U}}_{\left[-a,a\right]} $ added to the previous uncontrollable value. Lower-right: Comparison of uncontrollable variables with different parameter variability.

Figure 7

Figure 8. Wind farm simulator. Upper row: Local wind speed over the complex terrain for a wind direction of 0 and 120 degrees. Lower row: Wake of four wind turbines for a wind direction of 0 and 120 degrees. Wind speed is fixed at 6 m/s.

Figure 8

Figure 9. Annual energy production and placement of four wind turbines with spacing constraints. ENVBO (Algorithm 2) is benchmarked against SLSQP and BO (Algorithm 1).

Figure 9

Figure 10. Annual energy production and number of function evaluations conditional on the wind direction. ENVBO (Algorithm 2) is benchmarked against SLSQP and BO (Algorithm 1).

Submit a response

Comments

No Comments have been published for this article.