Mathematical model for cableway design and testing and for control optimization of the plant electrical drive