In this study, we modeled and designed a novel, efficient controller for a hybrid renewable energy system with an integrated converter and associated grid interface. The proposed grid-interfaced Hybrid Renewable Energy System (HRES) model is built by properly connecting the photovoltaic (PV) system, Wind Energy Conversion System (WECS), battery, DC/DC converter, Maximum Power Point Tracking (MPPT) controller, microgrid, and load to obtain the desired output. The integrated converter used in this is a modified high-conversion ratio converter for improving conversion efficiency. A maximum power point tracker is used to track the maximum power from renewable energy sources. We have designed an efficient controller with a successful control strategy to provide optimal switching for the grid-side inverter to achieve optimal energy management in the system. A novel control method is developed by combining the Adaptive Grasshopper Optimization Algorithm (AGOA) and the Gradient Boosting Decision Tree Algorithm (GBDT), which is named the AGOA-GBDT method. The proposed approach uses AGOA as an evaluation technique to develop accurate command signals and enrich the command signal database for offline use. The data sets collected from the sensors are also used to build a control system with fast feedback for online training of the GBDT system. The main purpose of using and proposing this novel control technique is to improve efficiency by achieving optimal energy management in the model. The formulation of the problem considers several constraints, such as the intermittent nature of renewable energy sources, the state of charge of the storage components, and the power demand. The MATLAB/Simulink platform simulates the proposed system model with the proposed controller and other controllers. This proposed control technique proved to be the best in efficacy and convergence properties when compared with other existing control techniques in the literature.