Numerical Solutions to the Variational Problems by Dijkstra’s Path-Finding Algorithm

In this work, we propose the general idea of using a path-finding algorithm to solve a variational problem. By interpreting a variational problem of finding the function that minimizes a functional integral as a shortest path finding, we can apply the shortest path-finding algorithm to numerically estimate the optimal function. This can be achieved by discretizing the continuous domain of the variational problem into a spatially weighted graph. The weight of each edge is defined according to the function of the original problem. We adopt the Moser lattice as the discretization scheme since it provides adjustable connections around a vertex. We find that this number of connections is crucial to the estimation of an accurate optimal path. Dijkstra’s shortest path-finding algorithm was chosen due to its simplicity and convenience in implementation. We validate our proposal by applying Dijkstra’s path-finding algorithm to numerically solve three famous variational problems, i.e., the optical ray tracing, the brachistochrone, and the catenary problems. The first two are examples of problems with no constraint. The standard Dijkstra’s algorithm can be directly applied. The third problem is an example of a problem with an isoperimetric constraint. We apply the Lagrangian relaxation technique to relax the optimization in the standard Dijkstra algorithm to incorporate the constraint. In all cases, when the number of sublattices is large enough, the results agree well with the analytic solutions. In all cases, the same path-finding code is used, regardless of the problem details. Our approaches provide more insight and promise to be more flexible than conventional numerical methods. We expect that our method can be useful in practice when an investigation of the optimal path in a complex problem is needed.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2024-11-19
DOI
https://doi.org/10.3390/app142210674
Citations
5
Primary Topic
Advanced Numerical Analysis Techniques
Type
article
Field-Weighted Citation Impact
1.87
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Numerical Solutions to the Variational Problems by Dijkstra’s Path-Finding Algorithm

Noparit Jinuntuya, T Arunthong, Sakchai Chomkokard, Khanchai Prasanai et al.
5 citations
Applied Sciences
Advanced Numerical Analysis Techniques
1.87
article

Numerical Solutions to the Variational Problems by Dijkstra’s Path-Finding Algorithm

Noparit Jinuntuya, T Arunthong, Sakchai Chomkokard, Khanchai Prasanai, Laddawan Rianthakool, Wiwat Wongkokua, Chakrit Na Takuathung
article en
5 citations

Abstract

In this work, we propose the general idea of using a path-finding algorithm to solve a variational problem. By interpreting a variational problem of finding the function that minimizes a functional integral as a shortest path finding, we can apply the shortest path-finding algorithm to numerically estimate the optimal function. This can be achieved by discretizing the continuous domain of the variational problem into a spatially weighted graph. The weight of each edge is defined according to the function of the original problem. We adopt the Moser lattice as the discretization scheme since it provides adjustable connections around a vertex. We find that this number of connections is crucial to the estimation of an accurate optimal path. Dijkstra’s shortest path-finding algorithm was chosen due to its simplicity and convenience in implementation. We validate our proposal by applying Dijkstra’s path-finding algorithm to numerically solve three famous variational problems, i.e., the optical ray tracing, the brachistochrone, and the catenary problems. The first two are examples of problems with no constraint. The standard Dijkstra’s algorithm can be directly applied. The third problem is an example of a problem with an isoperimetric constraint. We apply the Lagrangian relaxation technique to relax the optimization in the standard Dijkstra algorithm to incorporate the constraint. In all cases, when the number of sublattices is large enough, the results agree well with the analytic solutions. In all cases, the same path-finding code is used, regardless of the problem details. Our approaches provide more insight and promise to be more flexible than conventional numerical methods. We expect that our method can be useful in practice when an investigation of the optimal path in a complex problem is needed.

Applied SciencesVol. 14(22)
Kasetsart University (TH)
Openalex Percentile: Top 15%
Advanced Numerical Analysis Techniques
1.87
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.