1. A computer-executable method, comprising: modeling a network of interdependent wells for hydrocarbon production as a network simulation in an online model; modeling multiple interdependent variables related to the hydrocarbon production of the network and modeling lift performance curves of the interdependent wells as a mixed-integer nonlinear programming (MINLP) problem in an offline model; solving the MINLP problem with a MINLP solver; inputting the offline results into the online model to obtain online results; iterating between the offline model and the online model until online and offline results reach convergence; and communicating values for the interdependent variables at the convergence to the network to optimize hydrocarbon production.