The topic of the paper is an approach to find optimal regimes of miscible gas injection into the reservoir to maximize cumulative oil production using a surrogate model. The sector simulation model of the real reservoir with a gas cap, which is in the first stage of development, was used as a basic model for surrogate model training. As the variable (control) parameters of the surrogate model parameters of gas injection into injection wells and the limitation of the gas factor of production wells were chosen. The target variable is the dynamics of oil production from the reservoir. A set of data has been created to train the surrogate model with various input parameters generated by the Latin hypercube.
Several machine learning models were tested on the data set: ARMA, SARIMAX and Random Forest. The Random Forest model showed the best match with simulation results. Based on this model, the task of gas injection optimization was solved in order to achieve maximum oil production for a given period. The optimization issue was solved by Monte Carlo method. The time to find the optimum based on the Random Forest model was 100 times shorter than it took to solve this problem using a simulator. The optimal solution was tested on a commercial simulator and it was found that the results between the surrogate model and the simulator differed by less than 9%.