The exponential growth of data traffic from mobile devices requires the implementation of heterogeneous networks (HetNets), which densely deploy multiple radio access technologies to match such demands. The deployment of many small base stations (SBSs) leads to backhauling problems where wired backhauling is neither available nor efficient. millimeter waves (mmWaves) can potentially mitigate the backhauling problem by providing high throughput and low capital expenditure (CAPEX). However, due to the high attenuation rate in mmWaves, the increase in the distance between SBS and macro base station (MBS) can severely degrade the system's overall performance. On the other hand, densely deployed SBSs with wireless backhauling can cause high energy consumption in the system. Therefore, in this work, a novel network model is presented in which a combination of SBS, active antenna units (AAUs), and edge computing units (ECUs) are deployed to minimize the overall energy consumption of the network while maintaining the sufficient quality of service (QoS). A mathematical model based on optimization modeling is introduced to solve user equipments (UEs) association, dynamic sleeping, backhauling and fronthauling, and power transmission. Due to the complexity of the formulated problem, a heuristic algorithm is introduced. Namely, integrated access and backhauling (IAB) with Edge Computing and Dynamic Sleeping Algorithm (IEDS) algorithm is introduced to decompose the formulated problem into two parts and solve them iteratively. Finally, computer simulation results that demonstrate the model's performance are presented for comparison between optimal solution, IEDS, and HBDS, which shows that IEDS outperformed HBDS in performance with negligible computation difference.