Modeling and optimization of logistics processes