1. A method for controlling an operation of a machine using a model predictive control (MPC), comprising: measuring a state of the operation of the machine; determining a dual solution of a dual parametric problem of a parametric form of the MPC using a parallel quadratic programming (PQP) rescaling iteratively, using predetermined coefficients and a parameter of the dual parametric problem, a candidate dual solution of the dual parametric problem, wherein the predetermined coefficients of the dual parametric problem include data representing dynamics of the machine and constraints on the operation of the machine, and wherein the parameter of the dual parametric problem includes the measured state of the operation of the machine; determining a primal solution of a primal problem of the MPC using the dual solution of the dual parametric problem to produce a control input for the machine; and controlling the machine according to the control input, wherein steps of the method are performed by a processor.