1. Introduction The foundations of control theory date back to old times [1,2,3,4], and it has various applications in many fields, such as population dynamics, epidemiology, resource and energy economy, environmental management, optics, communication theory, medical imaging, and astronomy [5,6,7,8,9]. In recent years, the necessity of using natural resources, material and technical tools, time, energy, etc., more efficiently has led to an increased relevance of optimal control problems (OCPs).