betaFeedback

WorksPhysics and Astronomy

Learning minimum-time navigation policies in two-dimensional flows with a genetic algorithm

Abstract

We study minimum-time navigation between two points in a known two-dimensional fluid flow for a vessel with fixed-magnitude slip velocity and controllable direction. The navigation policy is parameterized by a neural network and optimized using a genetic algorithm that evolves an ensemble of candidate strategies through Darwinian selection and parameter mutation, without crossover. The method recovers analytical and numerical optimal-control solutions in several benchmark cases, including two-dimensional turbulence, and outperforms Q-learning and one-step actor-critic method. We further show that the learned navigation strategies are robust to variations in the starting position and to unresolved small-scale turbulent fluctuations, provided that the characteristic velocity of these fluctuations remains small compared to the vessel's slip velocity. The proposed approach provides a compact representation of the navigation policy, is readily parallelizable, and eliminates the need for reward shaping, offering an efficient alternative to existing analytical and numerical methods for computing minimum-time trajectories in complex flows.

Introduction

The minimum-time navigation of a vessel with fixed-magnitude slip velocity and controllable direction in a prescribed two-dimensional flow is known as Zermelo’s navigation problem[1]. Nearly a century after its formulation, it remains a fundamental problem in flow-assisted navigation, with applications ranging from micro-robots for targeted drug and gene delivery[2, 3, 4, 5, 6, 7] to autonomous vehicles and ocean gliders operating in oceanic and atmospheric currents[8, 9, 10, 11, 12, 13, 14]. The objective is to optimally exploit the interplay between self-propulsion and environmental advection to minimize travel time. In the present formulation, the flow field is assumed to be known a priori and available to the vessel, in contrast to navigation strategies based solely on local sensory information[15, 16, 17, 18, 19, 20, 21, 22].

The classical optimal-control formulation transforms Zermelo’s problem into a two-point boundary-value problem, yielding locally optimal trajectories[23, 24, 25]. Analytical solutions exist for several simple flow configurations[26, 27], whereas more general flows require numerical integration combined with shooting methods[24, 28, 29]. Extensions have considered three-dimensional flows[9], navigation on curved manifolds[30, 31], and alternative objectives such as fuel consumption and energy dissipation[27, 32]. A fundamental difficulty is that the resulting optimal trajectories can exhibit strong sensitivity to initial conditions and controls. The steering degree of freedom makes the system susceptible to chaotic behavior, causing optimal trajectories to become unstable even in regular currents[24, 25, 30, 31]. Consequently, shooting methods offer no general guarantee of finding the global optimum and yield solutions that are highly sensitive to small perturbations, limiting their robustness in complex flows.

Reinforcement learning (RL) offers an alternative framework in which robust navigation strategies can be learned through repeated interactions with the flow[33]. In particular, Q-learning has been applied to path planning in steady environments[34, 35], while a one-step actor-critic method has been used for navigation in more complex two-dimensional turbulent flows[24, 36]. A recent comparison of such tabular RL approaches with optimal-control methods across flows of increasing complexity showed that, although these methods can reliably reach the target, the resulting trajectories are generally suboptimal, with the discrepancy becoming particularly pronounced in time-dependent turbulent settings[25]. This motivates the use of more expressive deep RL methods for Zermelo’s navigation problem. An initial step in this direction was taken in Ref. [37], where an Advantage Actor-Critic (A2C) algorithm reproduced analytical optimal-control solutions for several steady flow configurations. These results demonstrated that deep RL can recover optimal navigation strategies and suggested a route toward problems for which conventional optimal-control methods become challenging.

Here, we develop a complementary approach that combines neural-network representations of navigation policies with population-based optimization using a genetic algorithm[38, 39]. The parameters of the neural network (NN) define the genome of each individual in a population, and individuals are evaluated according to a fitness function based on the travel time. The best-performing policies are selected to form the next generation through mutations of their NN parameters, and the procedure is iterated until the fitness ceases to improve. Unlike gradient-based optimization, this approach does not require differentiability of the objective with respect to the policy parameters. Moreover, fitness evaluations for different individuals are independent and can therefore be performed in parallel, allowing efficient utilization of computational resources.

We validate the approach across a hierarchy of flow configurations with increasing complexity considered in Ref. [25]. For steady vortex and time-dependent sink-vortex flows, for which analytical optimal-control solutions are available[25, 26], the learned policies reproduce the corresponding optimal trajectories. For both a snapshot of two-dimensional turbulence in the inverse-cascade regime and a fully time-dependent turbulent flow, the resulting trajectories closely follow the numerically computed optimal-control paths, achieving shorter travel times than Q-learning and a one-step actor-critic method, while also exhibiting robustness to variations in the vessel’s starting position. For the time-dependent turbulent flow, we further examine the robustness of the learned policies to unresolved small-scale velocity fluctuations that may arise from imperfect flow forecasts. We train the NNs using coarse-grained velocity fields with different filtering thresholds, thereby controlling the quality of the available flow forecast, and evaluate the resulting policies in the full-resolution flow. The learned strategies successfully reach the target provided that the characteristic velocity of the unresolved fluctuations remains sufficiently small compared with the vessel’s slip velocity. The obtained results demonstrate that genetic-algorithm optimization of neural-network policies provides a practical framework for learning efficient and robust navigation strategies in complex flows.

Problem Setup

The motion of a vessel is described by the kinematic equation

dRtdt=v(Rt,t)+V0(cos⁡θtsin⁡θt),(1)\frac{d\mathbf{R}_t}{dt}=\mathbf{v}(\mathbf{R}_t,t)+V_0\begin{pmatrix}\cos\theta_t\\\sin\theta_t\end{pmatrix}, \tag*{(1)}

where Rt=(Xt,Yt)\mathbf{R}_t=(X_t,Y_t) denotes the position of the vessel at time tt in Cartesian coordinates, v(r,t)\mathbf{v}(\mathbf{r},t) represents the underlying 2D advecting flow, and V0V_0 is the magnitude of the vessel’s slip velocity relative to the flow. The steering angle θt\theta_t acts as the control variable and can be adjusted dynamically throughout the journey. The objective of Zermelo’s navigation problem is to determine a control policy θt=θ(Rt,t)\theta_t=\theta(\mathbf{R}_t,t) that minimizes the total travel time TT required to reach a prescribed destination rB\mathbf{r}_B from a starting position rA\mathbf{r}_A.

Using optimal control theory, one can prove that if such trajectory exists, then the steering angle satisfies[25, 26]

θ˙t=∂xvysin⁡2θt−∂yvxcos⁡2θt+(∂xvx−∂yvy)sin⁡θtcos⁡θt,(2)\dot{\theta}_t=\partial_xv_y\sin^2\theta_t-\partial_yv_x\cos^2\theta_t+(\partial_xv_x-\partial_yv_y)\sin\theta_t\cos\theta_t, \tag*{(2)}

where the velocity gradients are evaluated along the vessel’s trajectory Rt\mathbf{R}_t. The resulting system (1)–(2) must be supplemented with boundary conditions R0=rA\mathbf{R}_0 = \mathbf{r}_A and RT=rB\mathbf{R}_T = \mathbf{r}_B. Note that the initial heading θ0\theta_0 and travel time TT are not specified and therefore remain free parameters that must be determined.

A standard approach to solve this two-point boundary value problem is the shooting method[28, 29]: an initial guess for θ0\theta_0 is refined until the resulting trajectory, obtained by forward integration of the system, satisfies the terminal condition RT=rB\mathbf{R}_T = \mathbf{r}_B within a desired tolerance. Importantly, the considered system may admit multiple solutions: Zermelo’s equation (2) provides a necessary condition for a local extremum but does not guarantee a global optimum[24]. Moreover, the resulting trajectories can be unstable and characterized by positive finite-time Lyapunov exponents. In these cases, infinitesimal uncertainties in starting positions or control inputs are exponentially amplified, leading to drastic deviations from the optimal route[24, 25, 30, 31]. Consequently, shooting methods provide no general guarantee of finding the global optimum and the practical application of optimal control is severely limited. For steady flows, one can apply heuristic algorithms on top of unstable optimal trajectories to compensate for deviations, thereby enabling more robust navigation[40].

Genetic Algorithm

We propose a complementary approach to Zermelo’s navigation problem that learns robust navigation strategies through repeated interactions with the flow. An overview of the algorithm is provided in Figure 1, followed by a detailed description below.

Figure 1. Schematic of the genetic algorithm. Box 0 depicts the neural network encoding an individual’s navigation strategy, with its parameters defining the genome. Boxes 1–4 illustrate the successive stages of generating a new generation from the preceding one. The process is repeated until fitness no longer improves.

The navigation strategy is represented by a fully connected NN with Nl=2N_l = 2 hidden layers, each containing Nn=16N_n = 16 neurons with SiLU activation[41]. The NN takes the system state as input: the vessel position (Xt,Yt)(X_t, Y_t) for steady flows and the vessel position and time (Xt,Yt,t)(X_t, Y_t, t) for time-dependent flows. Its single linear output represents the steering direction θt\theta_t. Unlike previous tabular RL approaches[24, 25, 36], which define the system state solely by the vessel position and thus effectively formulate navigation in time-dependent flows as a partially observable Markov decision process to avoid an excessively large state space, our approach explicitly includes time in the system state. Moreover, the proposed strategy representation has a highly compact parameterization, requiring substantially fewer trainable parameters than previous approaches[24, 25, 35, 36, 37], while operating directly in continuous state and action spaces without discretization.

The strategy is evaluated over episodes, each corresponding to an attempt to reach the target. The initial position R0\mathbf{R}_0 is sampled uniformly within a disk of radius dAd_A centered at rA\mathbf{r}_A, thereby promoting robustness to variations in the initial condition. The heading θt\theta_t is updated according to the NN prediction at discrete intervals Δt\Delta t and held fixed between updates, while Eq. (1) is numerically integrated. The interval Δt\Delta t is sufficiently small, with the resulting minimum-time trajectories being two orders of magnitude longer. An episode terminates when the vessel reaches a circle of radius dBd_B centered at rB\mathbf{r}_B, the maximum duration Tmax⁡T_{\max} is exceeded, or the vessel collides with the domain boundary. The value of Tmax⁡T_{\max} is chosen to be several times the typical travel time, allowing sufficient time to explore the flow while terminating episodes in which the vessel becomes trapped. The strategy performance is quantified by the fitness, defined as the negative episode duration, with boundary collisions incurring an additional strong penalty of −2Tmax⁡-2T_{\max}. Compared to tabular RL methods[24, 25, 36], no distance-based potential is required in the reward. The introduced parameters define the navigation problem independently of the optimization procedure. For the turbulent flows considered below, rA\mathbf{r}_A, rB\mathbf{r}_B, dAd_A, dBd_B, and Δt\Delta t are identical to those used in Ref. [25], facilitating direct comparison.

To optimize the navigation strategy, we employ a genetic algorithm[38, 39], in which a population of N=320N = 320 randomly initialized strategies evolves over successive generations through selection and parameter mutation. In each generation, the population is evaluated over nepn_{\mathrm{ep}} episodes and ranked according to the mean fitness. The top 20% of individuals are designated as elites and reevaluated over an additional 2nep2n_{\mathrm{ep}} episodes to reduce statistical fluctuations in the fitness estimate. The top 50% of elites are selected as parents and copied unchanged to the next generation, corresponding to 10% of the population.

The remaining 70% of the population is generated by randomly selecting a parent according to its rank and mutating its NN parameters. Each parameter is mutated with probability pσ=0.1p_{\sigma} = 0.1 by adding Gaussian noise with zero mean and variance σ2\sigma^2. We do not employ crossover, since the neurons within each hidden layer are permutation symmetric, such that corresponding neurons in different networks need not represent the same behavioral features. The final 20% of the population consists of randomly initialized individuals, referred to as immigrants. These individuals enhance exploration of the strategy space and help prevent premature convergence to local optima.

After a new generation is formed, the evaluation, selection, and reproduction steps are repeated. The evolution is continued for Ngen=200N_{\mathrm{gen}} = 200 generations, which is sufficient for the best fitness to reach a plateau. To balance exploration and exploitation, the number nepn_{\mathrm{ep}} of evaluation episodes and mutation amplitude σ\sigma are varied throughout the evolution. Early generations use fewer episodes and larger mutations, providing inexpensive and coarse fitness estimates while promoting exploration. As the population improves, the fitness is evaluated more accurately and the mutation amplitude is reduced to enable finer parameter optimization. Specifically, nep=min⁡(10,2⋅1.02idx)n_{\mathrm{ep}} = \min(10, 2 \cdot1.02^{\mathrm{idx}}) and σ=0.5⋅0.99idx\sigma= 0.5 \cdot0.99^{\mathrm{idx}}, where idx denotes the generation index.

The final navigation strategy is taken as the highest-fitness individual in the last generation. Importantly, all hyperparameters of the genetic algorithm are kept identical for all flow examples considered below. This consistency indicates that the proposed approach is relatively insensitive to their variation across the different flow environments. Finally, we emphasize that the outcome of the genetic algorithm is a navigation policy θ(Rt,t)\theta(R_t,t), which maps possible system states onto actions – selection of steering angle. In contrast, the optimal-control approach yields the dependence θ(Rt∗,t)\theta(\mathbf{R}^{*}_{t},t) associated with a single optimal trajectory Rt∗\mathbf{R}^{*}_{t}.

Results

To evaluate the resulting navigation strategy, we perform neval=5000n_{\mathrm{eval}} = 5000 evaluation episodes with perturbed initial positions rA\mathbf{r}_{A}, as described above. We quantify performance using the success probability pp, defined as the fraction of trajectories that reach the target, and the mean travel time ⟨TG⟩\langle T_{G}\rangle computed over successful trajectories. For navigation in turbulent flows, these performance metrics may exhibit variability arising from the stochasticity of the training process, particularly when the flow forecast is coarse-grained. We therefore also report their standard deviations, estimated across 10 independent training runs.

Analytical examples

We first consider navigation in the steady vortex flow

v(x,y)=(−ωy,ωx),(3)\mathbf{v}(x,y)=(-\omega y,\omega x), \tag*{(3)}

corresponding to solid-body rotation, see Figure 2. The optimal-control equations (1)–(2) can be integrated analytically, yielding the optimal trajectories connecting rA\mathbf{r}_{A} and rB\mathbf{r}_{B} [25, 26]. Perturbations in either the initial position or the control input grow linearly rather than exponentially in time, indicating that these optimal trajectories are only weakly unstable [25]. The trajectories obtained with the policies learned by the genetic algorithm closely reproduce the analytical optimal-control solutions. All evaluated trajectories successfully reach the target, with mean travel times of ⟨TG⟩≈1.964\langle T_{G}\rangle\approx1.964 for V0=1V_{0}=1 and ⟨TG⟩≈1.144\langle T_{G}\rangle\approx1.144 for V0=1.5V_{0}=1.5. In both cases, the measured travel times are slightly shorter than the analytical results, T≈1.975T \approx1.975 for V0=1V_{0}=1 and T≈1.151T \approx1.151 for V0=1.5V_{0}=1.5, due to the finite target size.

Optimal-control solutions and genetic-algorithm trajectories for the steady vortex flow

Figure 2. Optimal-control solutions (white) and trajectories obtained via the genetic algorithm (red) for the steady vortex flow (3). The parameters are ω=0.9\omega=0.9, rA=(1/2,3/2)\mathbf{r}_{A}=(1/2,\sqrt{3}/2), rB=(1,0)\mathbf{r}_{B}=(1,0), V0=1V_{0}=1 and 1.51.5. For the genetic algorithm, we use dA=0.01d_{A}=0.01, dB=0.015d_{B}=0.015, Δt=0.012\Delta t=0.012, Tmax⁡=5T_{\max}=5.

Next, we consider navigation in a time-dependent flow consisting of a steady sink and a vortex with vorticity that varies linearly with time

v(x,y,t)=(−0.3x−(0.5−t)y−0.3y+(0.5−t)x).(4)\mathbf{v}(x,y,t) = \begin{pmatrix} -0.3x-(0.5-t)y \\ -0.3y+(0.5-t)x \end{pmatrix}. \tag*{(4)}

In this case, the optimal-control solutions can also be obtained analytically[25, 26] and they are neutrally stable, with perturbations in the initial conditions remaining bounded in time[25]. As shown in Figure 3, the policies learned by the genetic algorithm again produce trajectories that closely reproduce the analytical solutions for the specified parameters. All evaluated trajectories successfully reach the target, with mean travel times of ⟨TG⟩≈1.023\langle T_G\rangle\approx1.023 for V0=1V_0 = 1 and ⟨TG⟩≈1.530\langle T_G\rangle\approx1.530 for V0=0.5V_0 = 0.5, again slightly shorter than the analytical results, T≈1.030T \approx1.030 for V0=1V_0 = 1 and T≈1.540T \approx1.540 for V0=0.5V_0 = 0.5. Taken together, these examples demonstrate that the navigation strategies learned by the genetic algorithm accurately recover the optimal trajectories in both steady and time-dependent flows. This agreement validates the approach and motivates its application to more complex flows where analytical solutions are unavailable.

Optimal-control solutions and trajectories for the time-varying sink-vortex flow

Figure 3. Optimal-control solutions (white) and trajectories obtained via the genetic algorithm (red) for the time-varying sink-vortex flow (4). The parameters are rA=(1/2,3/2)\mathbf{r}_A = (1/2,\sqrt{3}/2), rB=(1,0)\mathbf{r}_B = (1,0), V0=1V_0 = 1 and 0.50.5. For the genetic algorithm, we use dA=0.01d_A = 0.01, dB=0.015d_B = 0.015, Δt=0.012\Delta t = 0.012, Tmax⁡=5T_{\max} = 5.

2D Turbulence

In all other examples considered in this work, the background velocity v(r,t)\mathbf{v}(\mathbf{r},t) is obtained from a statistically stationary solution of the 2D Navier–Stokes equations,

∂tv+(v⋅∇)v=−∇p+ν∇2v−αv+f,∇⋅v=0,(5)\partial_t\mathbf{v}+(\mathbf{v}\cdot\nabla)\mathbf{v}=-\nabla p+\nu\nabla^2\mathbf{v}-\alpha\mathbf{v}+\mathbf{f},\qquad\nabla\cdot\mathbf{v}=0, \tag*{(5)}

computed in a periodic square box of size L=2πL=2\pi using a standard pseudospectral solver[42]. The flow is maintained by stochastic forcing f\mathbf{f} centered at the wavenumber kf=5.5k_f=5.5. The resulting turbulent state is characterized by the dimensionless parameters Re=UL/ν≈8⋅103Re=UL/\nu\approx8\cdot10^3 and Rh=U/(αL)≈5Rh=U/(\alpha L)\approx5, where U≈6.3U\approx6.3 is the root-mean-square velocity, ν=5⋅10−3\nu=5\cdot10^{-3} is the kinematic viscosity and α=0.2\alpha=0.2 is the bottom-drag coefficient. The mean energy spectrum, shown in Figure 4, is consistent with the established phenomenology of forced 2D turbulence. In the inverse energy cascade range k<kfk<k_f, the spectrum exhibits the theoretical E(k)∝k−5/3E(k)\propto k^{-5/3} scaling[43], while in the direct enstrophy cascade range k>kfk>k_f, the presence of bottom drag results in a steeper spectrum than the classical E(k)∝k−3E(k) \propto k^{-3} prediction[44]. Additional details on the DNS setup can be found in Ref. [25].

Figure 4. Energy spectrum for DNS of 2D turbulence.

Unless otherwise stated, the vessel’s slip speed is set to V0≈4.5V_0 \approx4.5, corresponding to 30% of the maximum flow velocity. First, we consider navigation in an instantaneous snapshot of 2D turbulence and examine two different sets of starting and ending points, denoted by P1 and P2. The considered examples exactly coincide with those studied in Ref. [25], allowing us to compare the performance of the genetic algorithm with predictions from optimal control theory and RL methods. Note that in turbulent flows, the optimal-control boundary-value problem has multiple solutions, which are unstable and therefore difficult to find using shooting methods[24, 25]. Consequently, the global optimality of the reported minimal-time optimal-control solutions cannot be rigorously established, although the close agreement with independent navigation methods provides supporting evidence.

Figure 5 compares the trajectories obtained using the policies learned by the genetic algorithm with the corresponding optimal-control solutions[25]. The trajectories are in close agreement, with minor discrepancies attributable to the finite sizes dA=dB=0.2d_A = d_B = 0.2 of the initial and target regions. The optimal-control solutions shown here and throughout the paper correspond to point-to-point navigation from rA\boldsymbol{r}_A to rB\boldsymbol{r}_B.

Optimal-control solutions and genetic-algorithm trajectories for two turbulence snapshots

Figure 5. Optimal-control solutions (white) and several trajectories with random initial positions obtained via the genetic algorithm (other colors) for the turbulence snapshot. The vessel’s slip speed is V0≈4.5V_0 \approx4.5. For the genetic algorithm, we use dA=dB=0.2d_A = d_B = 0.2, Δt≈0.007\Delta t \approx0.007, and Tmax⁡=4T_{\max} = 4.

TT⟨TG⟩\langle T_G\rangle⟨TQ⟩\langle T_Q\rangle⟨TAC⟩\langle T_{AC}\rangle
2D turb (S), P10.8200.816 ±\pm 0.0020.94 ±\pm 0.030.87 ±\pm 0.005
2D turb (S), P20.8200.801 ±\pm 0.0020.99 ±\pm 0.051.03 ±\pm 0.01
2D turb (T), P30.6700.688 ±\pm 0.0010.90 ±\pm 0.061.17 ±\pm 0.04
2D turb (T), P40.7000.674 ±\pm 0.0011.04 ±\pm 0.051.00 ±\pm 0.03

Table 1. Travel times for optimal-control trajectories (TT), genetic algorithm (TGT_G), Q-learning (TQT_Q), and one-step actor-critic method (TACT_{AC}). Here, "S" denotes a turbulence snapshot and "T" a time-dependent turbulent flow. The optimal-control times correspond to point-to-point navigation, whereas the other methods use initial and target regions with radii dA=dB=0.2d_A=d_B=0.2.

To assess the stochastic variability of the training process, we perform 10 independent training runs. For both P1 and P2 problems, all runs achieve a success probability of p=1p=1, indicating robust navigation under variations in the vessel’s initial position. Table I summarizes the mean travel times and standard deviations, together with the optimal-control times and the corresponding results for Q-learning and the one-step actor-critic method from Ref. [25]. As in the analytical examples above, the genetic algorithm achieves travel times slightly shorter than the point-to-point optimal-control times, owing to the finite sizes of the initial and target regions. For both P1 and P2 problems, it also substantially outperforms both RL methods in travel time and exhibits smaller run-to-run variations, indicating greater training stability.

Figure 6 illustrates the navigation policies learned by the genetic algorithm. The white streamlines indicate the local direction θ(x,y)\theta(x,y) of the self-propulsion velocity as a function of vessel position. Because training trajectories are concentrated near dynamically relevant regions, the learned policy is expected to be most accurate in the vicinity of the optimal trajectories, whereas regions visited less frequently during training may exhibit suboptimal behavior. This spatially nonuniform allocation of computational effort enables the algorithm to focus resources on the most relevant regions of phase space, in contrast to conventional methods of dynamic programming.

Figure 6. Streamplots of the steering direction θ(x,y)\theta(x,y) learned by the genetic algorithm for the turbulence snapshot problems. The optimal-control trajectories are shown for reference.

Next, we consider navigation in a time-dependent turbulent flow for two sets of initial and target points, denoted P3 and P4. Figure 7 compares the trajectories generated by the navigation strategies learned with the genetic algorithm with the corresponding optimal-control solutions[25]; a video demonstration is provided in the Supplemental Material[45]. For

Trajectories generated by the learned navigation strategies for the P3 and P4 problems

Figure 7. Trajectories generated by the learned navigation strategies for the P3 and P4 problems in a time-dependent turbulent flow. White lines show the corresponding optimal-control solutions. For the P3 problem, the solid and dashed white lines denote the solution for dA=0.2d_A = 0.2 and another optimal-control solution with shorter travel time, approached as dA→0d_A \to0, respectively. All other parameters are as in Figure 5.

the P3 problem, the learned navigation strategy generates trajectories that converge to a locally optimal solution (white solid line), which results from the finite size dA=0.2d_A = 0.2 of the starting region. Retraining the algorithm with decreasing dAd_A shows that, in the limit dA→0d_A \to0, the learned strategy instead generates trajectories converging to another optimal-control solution with a shorter travel time (white dashed line). Thus, the observed suboptimality reflects a trade-off between travel-time minimization and robustness to variations in the starting position. For the P4 problem, as in the turbulence-snapshot case, the learned navigation strategy generates trajectories that closely follow the identified minimum-time optimal-control solution.

The success probability, estimated over 10 independent training runs, is p=0.98±0.03p = 0.98 \pm0.03 for the P3 problem and p=1p = 1 for the P4 problem. The corresponding mean travel times and standard deviations are reported in Table I. For the P3 problem, the genetic algorithm yields a slightly longer mean travel time than the optimal-control solution shown by the dashed line, reflecting the suboptimality discussed above; for the solid-line solution, T≈0.690T \approx0.690. For the P4 problem, the mean travel time is again shorter than the point-to-point optimal-control time because of the finite sizes of the initial and target regions. Notably, the genetic algorithm substantially outperforms the tabular RL methods of Ref. 25, yielding markedly shorter mean travel times and smaller run-to-run variability. The travel times for both P3 and P4 problems are of the same order as the turnover time of system-size eddies L/U∼1L/U \sim1, indicating that the vessel experiences substantial flow evolution during navigation. These results demonstrate that the performance gains observed for turbulence snapshots persist, and are even more pronounced, in time-dependent turbulent flows.

Coarse-grained forecast

Finally, we consider navigation when the vessel has access only to coarse-grained information about the external turbulent flow, as relevant to path planning in oceanic and atmospheric currents. We revisit the P3 problem in the time-dependent turbulent flow introduced above. The DNS velocity field is filtered by removing Fourier modes with wavenumbers k>kmax⁡k > k_{\max}, and the genetic algorithm is applied using the resulting coarse-grained flow. We consider kmax⁡={256,10,5,3,2}k_{\max} = \{256, 10, 5, 3, 2\}, where kmax⁡=256k_{\max} = 256 corresponds to the fully resolved DNS field. The corresponding root-mean-square velocity of the unresolved fluctuations is

Vfluct≈{0,0.6,2.0,3.3,4.3}V_{fluct} \approx\{0, 0.6, 2.0, 3.3, 4.3\}, respectively. For each filtering level, we also vary the vessel slip velocity as V0≈{5.7,3.8,2.5,1.9}V_0 \approx\{5.7, 3.8, 2.5, 1.9\}. After training, each navigation strategy is evaluated in the fully resolved velocity field. We assess whether the vessel can reach the target despite unresolved velocity fluctuations and quantify the resulting travel time. To reduce stochastic variability, the success probability pp and mean travel time of successful trajectories ⟨TG⟩\langle T_G\rangle are averaged over 10 independent training runs.

Figure 8 shows representative trajectories generated by the learned policies. Under a perfect flow forecast, trajectories originating from nearby initial positions remain close to one another forming bunches, and nearly all reach the target. The optimal routes, however, depend strongly on the vessel’s self-propulsion speed V0V_0. As the forecast quality deteriorates, unresolved velocity fluctuations increasingly distort the trajectories, causing initially nearby paths to diverge substantially. This effect becomes more pronounced as the vessel speed V0V_0 decreases. We also observe an increase in run-to-run variability with deteriorating forecast quality.

Representative trajectories generated by the navigation strategies learned with the genetic algorithm

Figure 8. Representative trajectories generated by the navigation strategies learned with the genetic algorithm for different levels kmaxk_{max} of flow-field filtering and vessel self-propulsion speed V0V_0.

This behavior is quantified in Figure 9. Panel (a) shows that the target-reaching probability decreases with increasing filtering of the velocity field, with the curves for smaller V0V_0 being more sensitive to forecast quality. When the characteristic velocity of the unresolved fluctuations is small compared with V0V_0, their effect is weak; once the two become comparable, the trajectories are substantially distorted. This distortion is accompanied by an increase in the mean travel time to the target, shown in panel (b). A qualitatively similar behavior was reported for tabular RL methods in Ref. 25. Here, we extend this analysis to the genetic algorithm and demonstrate the dependence on the vessel speed V0V_0. Overall, the ge-

Figure 9. Navigation performance as a function of normalized filtering scale kmax/kfk_{max}/k_f and vessel self-propulsion speed V0V_0. (a) Probability of reaching the target ⟨p⟩\langle p\rangle and (b) mean travel time of successful trajectories ⟨TG⟩\langle T_G\rangle evaluated in the fully resolved turbulent flow. Error bars show the standard deviation.

netic algorithm produces navigation strategies that remain robust to noise from unresolved turbulent fluctuations as long as their characteristic amplitude is small compared with the vessel’s self-propulsion speed V0V_0.

Conclusion

We have demonstrated that optimizing a neural-network navigation policy via a genetic algorithm provides an effective and robust solution to Zermelo’s navigation problem in two-dimensional flows. The proposed method successfully recovers optimal-control trajectories in both steady and time-dependent turbulent flows, and achieves shorter travel times and lower run-to-run variability than the tabular RL approaches such as Q-learning and one-step actor-critic method. Additionally, the learned navigation strategies exhibit strong robustness to initial position variations and imperfect flow forecasts, provided that unresolved turbulent velocity fluctuations remain smaller than the vessel’s slip velocity. These results highlight the potential of genetic optimization as a compact, parallelizable, and broadly applicable method for learning minimum-time navigation strategies in complex flows.

Acknowledgments

The development of the genetic algorithm was supported by the Ministry of Science and Higher Education of the Russian Federation (State Assignment FFWR-2024-0014 of the Landau Institute for Theoretical Physics), while its application to examples was supported by the Basic research program of HSE University (project HSE-BR-2025-57). The author gratefully acknowledges the Landau Institute for providing computing resources.

Data AVAILABILITY

The code that support the findings of this study are openly available at https://github.com/parfenyev/navig-ga/.

References

  1. [1]E. Zermelo, “Über das navigationsproblem bei ruhender oder veränderlicher windverteilung,” Z. Angew. Math. Mech. 11, 114–124 (1931).DOI
  2. [2]J. J. Nelson, I. K. Kaliakatsos, and J. J. Abbott, “Microrobots for minimally invasive medicine,” Annual Review of Biomedical Engineering 12, 55–85 (2010).DOI
  3. [3]B. Esteban-Fernández de Ávila, C. Angell, F. Soto, M. A. Lopez-Ramirez, D. F. Báez, S. Xie, J. Wang, and Y. Chen, “Acoustically propelled nanomotors for intracellular sirna delivery,” ACS nano 10, 4997–5005 (2016).
  4. [4]B.-W. Park, J. Zhuang, O. Yasa, and M. Sitti, “Multifunctional bacteria-driven microswimmers for targeted active drug delivery,” ACS nano 11, 8910–8923 (2017).DOI
  5. [5]M. Luo, Y. Feng, T. Wang, and J. Guan, “Micro-/nanorobots at work in active drug delivery,” Advanced Functional Materials 28, 1706100 (2018).DOI
  6. [6]P. Erkoç, I. C. Yasa, H. Ceylan, O. Yasa, Y. Alapan, and M. Sitti, “Mobile microrobots for active therapeutic delivery,” Advanced Therapeutics 2, 1800064 (2019).DOI
  7. [7]M. T. Manzari, Y. Shamay, H. Kiguchi, N. Rosen, M. Scaltriti, and D. A. Heller, “Targeted drug delivery strategies for precision medicines,” Nature Reviews Materials 6, 351–370 (2021).DOI
  8. [8]M. Trincavelli, M. Reggente, S. Coradeschi, A. Loutfi, H. Ishida, and A. J. Lilienthal, “Towards environmental monitoring with mobile robots,” in 2008 IEEE/RSJ International Conference on Intelligent Robots and Systems (IEEE, 2008) pp. 2210–2215.DOI
  9. [9]J. A. Guerrero and Y. Bestaooui, “Uav path planning for structure inspection in windy environments,” Journal of Intelligent & Robotic Systems 69, 297–311 (2013).DOI
  10. [10]Z. Zeng, K. Sammut, L. Lian, F. He, A. Lammas, and Y. Tang, “A comparison of optimization techniques for auv path planning in environments with ocean currents,” Robotics and Autonomous Systems 82, 61–72 (2016).DOI
  11. [11]P. F. Lermusiaux, D. Subramani, J. Lin, C. Kulkarni, A. Gupta, A. Dutt, T. Lolla, P. Haley Jr, W. H. Ali, C. Mirabito, et al., “A future for intelligent autonomous ocean observing systems,” Journal of Marine Research 75, 765–813 (2017).DOI
  12. [12]M. G. Bellemare, S. Candido, P. S. Castro, J. Gong, M. C. Machado, S. Moitra, S. S. Ponda, and Z. Wang, “Autonomous navigation of stratospheric balloons using reinforcement learning,” Nature 588, 77–82 (2020).DOI
  13. [13]F. Chai, K. S. Johnson, H. Claustre, X. Xing, Y. Wang, E. Boss, S. Riser, K. Fennel, O. Schofield, and A. Sutton, “Monitoring ocean biogeochemistry with autonomous platforms,” Nature Reviews Earth & Environment 1, 315–326 (2020).DOI
  14. [14]M. Panda, B. Das, B. Subudhi, and B. B. Pati, “A comprehensive review of path planning algorithms for autonomous underwater vehicles,” International Journal of Automation and Computing 17, 321–352 (2020).DOI
  15. [15]S. Colabrese, K. Gustavsson, A. Celani, and L. Biferale, “Flow navigation by smart microswimmers via reinforcement learning,” Physical Review Letters 118, 158004 (2017).DOI
  16. [16]K. Gustavsson, L. Biferale, A. Celani, and S. Colabrese, “Finding efficient swimming strategies in a three-dimensional chaotic flow by reinforcement learning,” The European Physical Journal E 40, 110 (2017).DOI
  17. [17]J. K. Alageshan, A. K. Verma, J. Bec, and R. Pandit, “Machine learning strategies for path-planning microswimmers in turbulent flows,” Physical Review E 101, 043110 (2020).DOI
  18. [18]Y. Yang, M. A. Bevan, and B. Li, “Efficient navigation of colloidal robots in an unknown environment via deep reinforcement learning,” Advanced Intelligent Systems 2, 1900106 (2020).arxiv.org/abs/1906.10844
  19. [19]P. Gunnarson, I. Mandralis, G. Novati, P. Koumoutsakos, and J. O. Dabiri, “Learning efficient navigation in vortical flow fields,” Nature Communications 12, 7143 (2021).DOI
  20. [20]R. Monthiller, A. Loisy, M. A. Koehl, B. Favier, and C. Eloy, “Surfing on turbulence: a strategy for planktonic navigation,” Physical Review Letters 129, 064502 (2022).DOI
  21. [21]C. Calascibetta, L. Biferale, F. Borra, A. Celani, and M. Cencini, “Optimal tracking strategies in a turbulent flow,” Communications Physics 6, 256 (2023).DOI
  22. [22]S. Mecanna, A. Loisy, and C. Eloy, “A critical assessment of reinforcement learning methods for microswimmer navigation in complex flows: S. mecanna et al.” The European Physical Journal E 48, 58 (2025).
  23. [23]A. E. Bryson and H. Yu-Chi, Applied Optimal Control: Optimization, Estimation, and Control (Routledge, 2018).
  24. [24]L. Biferale, F. Bonaccorso, M. Buzzicotti, P. Clark Di Leoni, and K. Gustavsson, “Zermelo’s problem: optimal point-to-point navigation in 2d turbulent flows using reinforcement learning,” Chaos: An Interdisciplinary Journal of Nonlinear Science 29 (2019).
  25. [25]V. Parfenyevy, “Optimal navigation strategies in two-dimensional flows: Control theory and reinforcement learning,” Physical Review E 114, 015104 (2026).
  26. [26]L. Techy, “Optimal navigation in planar time-varying flow: Zermelo’s problem revisited,” Intelligent Service Robotics 4, 271–283 (2011).DOI
  27. [27]B. Liebchen and H. Löwen, “Optimal navigation strategies for active particles,” Europhysics Letters 127, 34003 (2019).
  28. [28]D. E. Kirk, Optimal Control Theory: An Introduction (Courier Corporation, 2004).
  29. [29]J. F. Bonnans, “The shooting approach to optimal control problems,” IFAC Proceedings Volumes 46, 281–292 (2013).DOI
  30. [30]L. Piro, E. Tang, and R. Golestanian, “Optimal navigation strategies for microswimmers on curved manifolds,” Physical Review Research 3, 023125 (2021).
  31. [31]L. Piro, R. Golestanian, and B. Mahault, “Efficiency of navigation strategies for active particles in rugged landscapes,” Frontiers in Physics 10, 1034267 (2022).
  32. [32]L. Piro, Optimal navigation in active matter (Springer, 2024).
  33. [33]R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed. (The MIT Press, 2018).
  34. [34]B. Yoo and J. Kim, “Path optimization for marine vehicles in ocean currents using reinforcement learning,” Journal of Marine Science and Technology 21, 334–343 (2016).DOI
  35. [35]E. Schneider and H. Stark, “Optimal steering of a smart active particle,” Europhysics Letters 127, 64003 (2019).DOI
  36. [36]M. Buzzicotti, L. Biferale, F. Bonaccorso, P. Clark di Leoni, and K. Gustavsson, “Optimal control of point-to-point navigation in turbulent time dependent flows using reinforcement learning,” in International Conference of the Italian Association for Artificial Intelligence (Springer, 2020) pp. 223–234.arxiv.org/abs/2103.00329
  37. [37]M. Nasiri and B. Liebchen, “Reinforcement learning of optimal active particle navigation,” New Journal of Physics 24, 073042 (2022).DOI
  38. [38]M. Mitchell et al., Complexity: A guided tour, Vol. 5 (Oxford university press Oxford, 2009).DOI
  39. [39]F. P. Such, V. Madhavan, E. Conti, J. Lehman, K. O. Stanley, and J. Clune, “Deep neuroevolution: Genetic algorithms are a competitive alternative for training deep neural networks for reinforcement learning,” arXiv preprint arXiv:1712.06567 (2017).arxiv.org/abs/1712.06567
  40. [40]L. Piro, B. Mahault, and R. Golestanian, “Optimal navigation of microswimmers in complex and noisy environments,” New Journal of Physics 24, 093037 (2022).DOI
  41. [41]S. Elfwing, E. Uchibe, and K. Doya, “Sigmoid-weighted linear units for neural network function approximation in reinforcement learning,” Neural Networks 107, 3–11 (2018).DOI
  42. [42]N. C. Constantinou, G. L. Wagner, L. Siegelman, B. C. Pearce, and A. Palóczy, “GeophysicalFlows.jl: Solvers for geophysical fluid dynamics problems in periodic domains on CPUs & GPUs,” Journal of Open Source Software 6, 3053 (2021).DOI
  43. [43]G. Boffetta and R. E. Ecke, “Two-dimensional turbulence,” Annual Review of Fluid Mechanics 44, 427–451 (2012).DOI
  44. [44]V. Valadão, G. Boffetta, F. De Lillo, S. Musacchio, and M. Crialesi-Esposito, “Spectrum correction in ekman-navier-stokes turbulence,” Journal of Turbulence 26, 143 (2025).arxiv.org/abs/2408.15735
  45. [45]See the Supplemental Material at [URL will be inserted by publisher] for a video demonstration of navigation in a time-dependent turbulent flow.

Paper details

vlnc:W_7ahysx9w
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents