Optimization Models And Methods For Large Scale And Complex Systems, With Applications To Distributed Electricity Resources Integration