journal article·2024-11-19Open access

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

Thanaporn Arunthong, Laddawan Rianthakool, Khanchai Prasanai, Chakrit Na Takuathung, Sakchai Chomkokard, Wiwat Wongkokua, Noparit Jinuntuya

Applied Sciences· Volume 14· Issue 22

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.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Numerical Analysis Techniques · Robotic Path Planning Algorithms · Computer Graphics and Visualization Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Metrology Program, Department of Physics, Faculty of Science, Kasetsart University, Chatuchak, Bangkok 10900, Thailand

Department of Forest Engineering, Faculty of Forestry, Kasetsart University, Chatuchak, Bangkok 10900, Thailand

Funding

Kasetsart University Research and Development Institute, KURDI, Bangkok, Thailand · Graduate School of Kasetsart University

References (42)

Show source-provided references
1. Cassel, K.W. (2013). Variational Methods with Applications in Science and Engineering, Cambridge University Press.10.1017/CBO9781139136860 ↗
2. A note on two problems in connexion with graphs10.1007/BF01386390 ↗
3. Lakshminarayanan, V., Ghatak, A., and Thyagarajan, K. (2013). Lagrangian Optics, Springer.
4. Rohde, U.L., Jain, G.C., Poddar, A.K., and Ghosh, A.K. (2012). Introduction to Integral Calculus, John Wiley & Sons, Inc.10.1002/9781118130346 ↗
5. A graph theoretic approach to the brachistochrone problem10.1063/1.168370 ↗
6. Simulation of wave propagation using graph-theoretical algorithm10.1088/1742-6596/2145/1/012065 ↗
7. Behún, M., Knežo, D., Cehlár, M., Knapcˇíková, L., and Behúnová, A. (2022). Recent Application of Dijkstra’s Algorithm in the Process of Production Planning. Appl. Sci., 12.10.3390/app12147088 ↗
8. Lawande, S.R., Jasmine, G., Anbarasi, J., and Izhar, L.I. (2022). A Systematic Review and Analysis of Intelligence-Based Pathfinding Algorithms in the Field of Video Games. Appl. Sci., 12.10.3390/app12115499 ↗
9. Application of Dijkstra algorithm in finding the shortest path10.1088/1742-6596/2181/1/012005 ↗
10. Chen, R., Hu, J., and Xu, W. (2022). An RRT-Dijkstra-Based Path Planning Strategy for Autonomous Vehicles. Appl. Sci., 12.10.3390/app122311982 ↗
11. Wang, Y., Qian, L., Hong, M., Luo, Y., and Li, D. (2024). Multi-Objective Route Planning Model for Ocean-Going Ships Based on Bidirectional A-Star Algorithm Considering Meteorological Risk and IMO Guidelines. Appl. Sci., 14.10.3390/app14178029 ↗
12. Zhou, X., Yan, J., Yan, M., Mao, K., Yang, R., and Liu, W. (2023). Path Planning of Rail-Mounted Logistics Robots Based on the Improved Dijkstra Algorithm. Appl. Sci., 13.10.3390/app13179955 ↗
13. A generalization of Dijkstra’s shortest path algorithm with applications to VLSI routing10.1016/j.jda.2007.08.003 ↗
14. Ivanović, M., Bădică, C., Dix, J., Jovanović, Z., Malgeri, M., and Savić, M. (2018). On the Applications of Dijkstra’s Shortest Path Algorithm in Software Defined Networks. Intelligent Distributed Computing XI, Springer International Publishing.10.1007/978-3-319-66379-1 ↗
15. Slices method to describe ray propagation in inhomogeneous media
16. Zhang, Q., Tan, Y., Ren, G., and Tang, T. (2021). Ray tracing method of gradient refractive index medium based on refractive index step. Appl. Sci., 11.10.3390/app11030912 ↗
17. Generalization of ray tracing in symmetric gradient-index media by Fermat’s ray invariants10.1364/OE.440410 ↗
18. Geometrical-light-propagation in non-normalized symmetric gradient-index media10.1364/OE.465957 ↗
19. Remarks on brachistochrone–tautochrone problems10.1119/1.14125 ↗
20. 20 Gómez-Aíza, S., Gómez, R.W., and Marquina, V. (2006). A simplified approach to the brachistochrone problem. Eur. J. Phys., 27, 1091–1096.10.1088/0143-0807/27/5/008 ↗
21. Catenaria Vera–The true catenary
22. A new first-principles approach for the catenary10.1016/j.exmath.2019.04.003 ↗
23. Ahuja, R.K., Magnanti, T.L., and Orlin, J.B. (1993). Network Flows: Theory, Algorithms, and Applications, Prentice-Hall, Inc.
24. Cormen, T.H., Leiserson, C.E., Rivest, R.L., and Stein, C. (2009). Introduction to Algorithms, The MIT Press. [3rd ed.].
25. Shortest path calculation of seismic rays10.1190/1.1442958 ↗
26. Serway, R.A., and Jewett, J.W. (2007). Physics for Scientists and Engineers with Modern Physics, Brooks/Cole.
27. Gomez-Reino, C., Perez, M.V., and Bao, C. (2012). Gradient-Index Optics: Fundamentals and Applications, Springer.
28. Hecht, E. (2014). Optics, Pearson Education Limited. [4th ed.].
29. A History of the Calculus of Variations from the 17th through the 19th Century. By Herman H. Goldstine
30. Brachistochrone on a velodrome
31. Nahin, P.J. (2021). When Least is Best, Princeton University Press.10.2307/j.ctv19qmf43 ↗
32. Mathews, J., and Walker, R.L. (1969). Mathematical Methods for Physics, Addison-Wesley Publishing. [2nd ed.].
33. Christiaan Huygens and the Problem of the Hanging Chain10.1080/07468342.2008.11922269 ↗
34. Catenary—Its history, significance and application
35. The optimum spanning catenary cable10.1088/0143-0807/36/2/028001 ↗
36. Polynomial and catenary curve fits to human dental arches10.1177/00220345750540060501 ↗
37. A mathematic-geometric model to calculate variation in mandibular arch form10.1093/ejo/22.2.113 ↗
38. A novel quantitative measure of breast curvature based on catenary10.1109/TBME.2012.2184541 ↗
39. A fresh look at the catenary10.1088/0143-0807/35/5/055007 ↗
40. Investigation of crushing strength of spruce at varying angles of grain
41. Comparison of three equations for predicting stress wave velocity as a function of grain angle
42. Propagation behavior of acoustic wave in wood10.1007/s11676-014-0506-6 ↗