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