Approach to Modeling and Optimization of Integrated Renewable Energy System (Ires)