Article History Keywords Energy hub Mathematical model Planning Renewable energy sources BESS GAMS. Contribution/Originality: This study contributes in existing documents a novel planning framework which considers the RES and BESS. A MINLP planning framework with the LCC objective function and constraints proposed allows determining the installed size and time of equipment during the planning period. The different lifetime and uptime of equipment are examined which improve the accuracy and suitability of problem for the practical.In this new context, the structure of traditional energy supply systems that is mainly responsible for generation, transmission and management of an energy carrier has significant changes. The various types of EH structures are summarized and introduced in studies (Mohammadi et al., 2017) that the simplest type is similar to traditional energy supply systems with correlates consumer and producers of energy together through conversions and storage systems. The most widely used structures of EH in the literature consist of a transformer (TR), combined heat and power (CHP), boiler, and storages which can convert between the input energy types and/or loads. In such a structure, a particular demand can be met in various ways and thus the flexibility and reliability in the supply of EH increase because of increasing the degree of freedom in supply and demand, and more flexible