Optimizing large scale systems in engineering