Modeling and controlling of complex autonomous systems with artificial intelligence