The article presents an algorithm developed for determining conditions of safe ship operation in a system of sea waterways consisting of three components, or subsystems: waterways, navigation and traffic control. A model of the optimization of sea waterway system parameters is describe