Hostname: page-component-7b7567c8c-fvjsw Total loading time: 0 Render date: 2026-11-15T04:18:13.118Z Has data issue: false hasContentIssue false

Comparative analysis of machine learning methods for active flow control

Published online by Cambridge University Press:  10 March 2023

Fabio Pino*
Affiliation:
EA Department, von Kármán Institute for Fluid Dynamics, 1640 Sint Genesius Rode, BelgiumTransfers, Interfaces and Processes (TIPs), Université libre de Bruxelles, 1050 Brussels, Belgium
Lorenzo Schena
Affiliation:
EA Department, von Kármán Institute for Fluid Dynamics, 1640 Sint Genesius Rode, BelgiumDepartment of Mechanical Engineering, Vrije Universiteit Brussels, 1050 Brussels, Belgium
Jean Rabault
Affiliation:
Norwegian Meteorological Institute, 0313 Oslo, Norway
Miguel A. Mendez
Affiliation:
EA Department, von Kármán Institute for Fluid Dynamics, 1640 Sint Genesius Rode, Belgium
*
†Email address for correspondence: fabio.pino@vki.ac.be

Abstract

Machine learning frameworks such as genetic programming and reinforcement learning (RL) are gaining popularity in flow control. This work presents a comparative analysis of the two, benchmarking some of their most representative algorithms against global optimization techniques such as Bayesian optimization and Lipschitz global optimization. First, we review the general framework of the model-free control problem, bringing together all methods as black-box optimization problems. Then, we test the control algorithms on three test cases. These are (1) the stabilization of a nonlinear dynamical system featuring frequency cross-talk, (2) the wave cancellation from a Burgers’ flow and (3) the drag reduction in a cylinder wake flow. We present a comprehensive comparison to illustrate their differences in exploration versus exploitation and their balance between ‘model capacity’ in the control law definition versus ‘required complexity’. Indeed, we discovered that previous RL control attempts of controlling the cylinder wake were performing linear control and that the wide observation space was limiting their performances. We believe that such a comparison paves the way towards the hybridization of the various methods, and we offer some perspective on their future development in the literature of flow control problems.

JFM classification

Information

Type
JFM Papers
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Figure 1.General setting for a machine-learning-based control problem: the learning algorithm (optimizer) improves the agent/control performances while this interacts with the environment/plant. Here $k$ spans the number of interactions within an episode and $n$ spans the number of episodes during the training. A function approximator is used for the actuation policy in (a) and the state-value function in (b). In both cases, the control problem is an optimization problem for the parameters $\boldsymbol {w}$.

Figure 1

Figure 2.Syntax tree representation of the function $2 x\sin (x)+\sin (x)+3$. This tree has a root ‘+’ and a depth of two. The nodes are denoted with orange circles while the last entries are leafs.

Figure 2

Figure 3.The ANN architecture of the DDPG implementation analysed in this work. The illustrated architecture is the one used for the test case in § 4.3. During the exploration phase, the two networks are essentially decoupled by the presence of the stochastic term $\mathcal {E}$ that leads to exploration of the action space.

Figure 3

Figure 4.Evolution of the oscillator $(s_1,s_2)$ (a) of the variable $\sigma$ (4.3) (b) in the 0-D test case in the absence of actuation ($a=0$). As $\sigma \approx 0$, the system naturally evolves towards a ‘slow’ limit cycle.

Figure 4

Figure 5.Contour plot of the spatio-temporal evolution of normalized $\hat {u}=u/\max (u)$ in (4.10) for the uncontrolled problem, i.e. $c(x,t)=0$ in the normalized space–time domain ($\hat {x}=x/L$, $\hat {t}=t/T$). The perturbation is centred at $\hat {x}=0.33$ (red continuous line) while the control law is centred at $\hat {x}=0.66$ (red dotted line). The dashed black lines visualize the location of the observation points, while the region within the white dash-dotted line is used to evaluate the controller performance.

Figure 5

Figure 6.Geometry and observations probes for the 2-D von Kármán street control test case. The 256 observations used by Tang et al. (2020) are shown with black markers. These are organized in three concentric circles (diameters $1+0.002/D$, $1+0.02D$ and $1+0.05D$) around the cylinder and three grids (horizontal spacing $c_1 = 0.025/D$, $c_2 = 0.05/D$ and $c_3 = 0.1/D$). All the grids have the same vertical distance between adjacent points ($c_4 = 0.05/D$). The five observations used in this work (red markers) have coordinates $s_1(0,-1.5)$, $s_2(0,1.5)$, $s_3(1,-1)$, $s_4(1,1)$ and $s_5(1,0)$. Each probe samples the pressure field.

Figure 6

Figure 7.Location of the four control jets for the 2-D von Kármán street control test case. These are located at $\theta =75^{\circ }, 105^{\circ }, 255^{\circ }, 285^{\circ }$ and have width $\Delta \theta = 15^{\circ }$. The velocity profile is defined as in (4.19), with flow rate defined by the controller and shifted to have zero-net mass flow.

Figure 7

Table 1.Mean optimal cost function (bold) and confidence interval (over 10 training sessions with different random number generator seeds) obtained at the end of the training for the 0-D frequency cross-talk control problem.

Figure 8

Figure 8.Comparison of the learning curves (a) and their variances (b) for different machine learning methods for the 0-D test case (§ 4.1). (a) Learning curve. (b) Learning curve variance.

Figure 9

Figure 9.Evolution of the states $s_1$ and $s_2$, associated with the unstable oscillator, obtained using the optimal control action provided by the different machine learning methods.

Figure 10

Figure 10.Weights of the control action for the 0-D control problem in (4.9). The coloured bars represent a standard deviation around the mean value found by LIPO and BO.

Figure 11

Table 2.Evolution of the best control function $a$ (continuous blue line with squares), the energy of the first oscillator (continuous red line with triangles) and the energy of the second one (dashed red line), for the different control methods. The figures on the left-hand side report the early stage of the simulation, until the onset of a limit cycle condition, and those on the right-hand side the final time steps.

Figure 12

Figure 11.Eigenvalues of the linearized second oscillator around its mean values in the developed case, controlled with linear combination (blue diamonds), with the nonlinear combination (green triangles) and with both linear and nonlinear terms (black squares) (4.8) for LIPO and BO. The coefficient of the control function are those of the best solution found by (a) LIPO, (b) BO and (c) DDPG.

Figure 13

Figure 12.Orbit of the second oscillator ($s_3,s_4$) in the 0-D control problem governed by (4.1) (right-hand side column of table 2) in the last part of the episode (from 194 s to 200 s). The coloured curves correspond to the four control methods.

Figure 14

Figure 13.Robustness analysis of the optimal control methods with randomized initial conditions for the 0-D test case. The violin plots represent the distribution of cumulative rewards obtained, whereas the black crosses show the best result of each controller at the end of the training phase.

Figure 15

Table 3.Same as table 1 but for the control of nonlinear waves in the viscous Burger's equation.

Figure 16

Figure 14.Comparison of the learning curves (a) and their variances (b) for different machine learning methods for the 1-D Burgers equation test case (§ 4.2). (a) Learning curve. (b) Learning curve variance.

Figure 17

Figure 15.Comparison of the control actions derived by the four machine learning methods. The action for each control method are shown in blue (left-hand side axis) while the curves in dashed red show the evolution of the introduced perturbation divided by $A_f$ (cf. (4.11)).

Figure 18

Figure 16.Contour plot of the spatio-temporal evolution of $u$ governed by (4.10) using the best control action of the different methods. The perturbation is centred at $x = 6.6$ (red continuous line) while the control law is centred at $x = 13.2$ (red dotted line). The dashed black lines visualize the location of the observation points, while the region within the white dash-dotted line is used to evaluate the controller performance.

Figure 19

Figure 17.Robustness analysis of the optimal control methods with randomized initial conditions for the Burgers equation test case. The violin plots represent the distribution of cumulative rewards obtained, whereas the black crosses show the best result of each controller at the end of the training phase.

Figure 20

Figure 18.Comparison of the action and observation evolution along an episode for DDPG (a,c) and LIPO (b,d) in the second test case (§ 4.2).

Figure 21

Figure 19.Scatter plot of the sensor locations, coloured by the norm of the weights $\boldsymbol {w}_{1j},\boldsymbol {w}_{2j},\boldsymbol {w}_{3j},\boldsymbol {w}_{4j}$ that link the observation at state $j$ with the action vector $\boldsymbol {a}=[a_1,a_2,a_3,a_4]$ in the linear regression of the policy by Tang et al. (2020).

Figure 22

Figure 20.Comparison of the learning curves (a) and their variances (b) for different machine learning methods for the von Kármán street control problem (§ 4.3).

Figure 23

Table 4.Same as table 1 but for the von Kármán street control problem.

Figure 24

Figure 21.Weights of control action for the von Kármán street control problem, given by a linear combination of the system's states for the four flow rates. The coloured bars represent a standard deviation around the mean value found by LIPO and BO with ten random number generator seeds.

Figure 25

Figure 22.Evolution of the jets’ flow rates (left) and the drag around the cylinder (right) for the best control action found by the different machine learning methods.

Figure 26

Figure 23.Comparison between the controlled and uncontrolled $C_D$ and $C_L$ evolutions using the best policies found by the different methods.

Figure 27

Table 5.Mean flow (left-hand side) and standard deviation (right-hand side) using the best control action found by the different methods. The mean lift ($\bar {C}_L$) and drag ($\bar {C}_D$) are averaged over the last two uncontrolled vortex shedding periods.

Figure 28

Table 6.Comparison of the optimal actions of the DDPG and GP ($x$ axis) with their linearized version ($y$ axis) for the four jets, the red line is the bisector of the first and third quadrant.

Figure 29

Figure 24.Robustness analysis of the optimal control methods with randomized initial conditions for the von Kármán street control problem. The violin plots represent the distribution of cumulative rewards obtained, whereas the black crosses show the best result of each controller at the end of the training phase.

Figure 30

Algorithm 1Bayesian Optimization using GPr, adapted from Rasmussen & Williams (2005) and Pedregosa et al. (2011)

Figure 31

Algorithm 2MaxLIPO + TR (Adapted from King 2009)

Figure 32

Algorithm 3GP (μ, ƛ)-ES (Adapted from Beyer & Schwefel 2002)

Figure 33

Algorithm 4DDPG (Adapted from Lillicrap et al.2015)

Figure 34

Table 7.Mean value and half-standard deviation of the 0-D feedback control law coefficients.

Figure 35

Table 8.Mean value and half-standard deviation of the Burgers’ feedback control law coefficients.

Figure 36

Table 9.Mean value and half-standard deviation of the von Kármán vortex street feedback control law coefficients.