This value of Q results in minimizing the total inventory cost of the supplier and buyer in the system. To find the optimal Q*, which minimizes TCVMI or KSVMI, the iterative procedure described in section 3.2 is used, but in the first step, Q is calculated with the following equation: