3.1. Objective Function Transformation
The analytical solution method is chosen in this section to derive the results of the model optimization problem established in
Section 2. Compared with the computer simulation solution, the analytical solution does not require complex programming algorithms or simulation calculations, and the results obtained by mathematical derivation are more theoretical and more accurate than the numerical simulation results.
First of all, the objective function is written for the above optimization problem as shown in Equation (4), i.e., the expansion form of Equation (3).
As assumed in the model in
Section 2.1, the demand and cost of each major item are independent of each other, so the total optimization cost and the cost of each major item are equivalent to the cost generated by the major item and the optimization of the addition term can be converted into the optimization solution of each term. By collapsing the total cost with respect to the cost of each major item and the cost due to the major item as
, Equation (4) can be written as:
For ease of reading,
is abbreviated as
in the derivation and calculation section later in this section. In addition, in order to facilitate the solution and enhance the readable lines of the solution step, the non-decision variables in (6) are organized into the form of simplified coefficients, which are, respectively,
, as shown in Equations (7)–(10). According to the definition of each variable, it can be seen that they are positive real numbers greater than zero.
Substituting
into Equation (6), a concise representation of
can be obtained, as shown in Equation (11).
At this time, the total cost, , is a function only related to T, F, , and this function can roughly separate T and F, so that the two have only one multiplying term, which is a very good optimization function and can bring a significant amount of convenience in the derivation.
3.2. Model Solving Procedure
Having simplified this equation, we can find the analytic solution of this function by taking the derivative of
. According to the following derivation result, Equations (12) and (13), it can be seen that this is a binary quadratic equation.
According to the first-order condition, the following optimization solution steps can be made. First, set Equation (12) to 0, i.e.,
, and the expression of
can be calculated, as shown in Equation (14).
Similarly, if Equation (14) is set to 0, i.e.,
, the expression of optimal
regarding
can be calculated, as shown in Equation (15).
Since
is included in the expression of
, the expression of
(the square of Equation (15)) can be substituted into Equation (14) to facilitate the solution of the expression of
without
. The square of Equation (15) is shown in Equation (16).
Substituting the result of Equation (16) into Equation (14), an equation containing only one decision variable,
, can be obtained, as shown in Equation (17).
It is easy to see that Equation (17) is a function only related to
T, so it is inevitable that an analytical solution of
T is obtained. The form of Equation (17) is rewritten into a polynomial form, as shown in Equation (18).
After combining similar terms, the simplified form of Equation (18) can be obtained as Equation (19).
According as Equation (19), this is a quartic equation of T, and the optimal solution of is the solution of this quartic equation.
3.3. The Optimization Strategy of the Model
In order to facilitate the representation and calculation in the process of model optimization and enhance the simplicity of the operation process, Equation (6) was re-simplified and written in the following form as Equation (20),
where
and
in Equation (20) are two functions of
, as shown in Equations (21) and (22).
Therefore, Equation (14) can be written as Equation (23) in the following form:
Substituting Equation (23) into Equation (20), the form of Equation (24) can be obtained as follows:
It is easy to show that the function is continuous on an interval of , so the optimal solution can be obtained by taking the derivative.
Firstly, the first and second derivatives of functions
and
are given, as shown in Equations (25)–(28).
Then, the first and second derivatives of
can be calculated, as shown in Equations (29) and (30).
According to Equations (7)–(9) and (21) and the definition of satisfying rate
, the following conditions can be easily obtained:
Therefore, it is easy to draw the inequality, as in Equation (31).
As the inequality relation of Equation (31), it is easy to deduce . According to the second-order condition of convex function, it is obvious that is convex on the domain of .
Since , three cases are discussed below.
Case 1:
As shown in
Figure 1, when
,
can be calculated. It follows from the first-order property that
is monotonically decreasing near
, which means that the optimal solution can never be taken at
F = 0.
Therefore, the following conclusion can be drawn: the objective function cannot obtain the optimal value when .
Case 2:
If
, Equation (32) can be calculated.
Since Equation (32) depends on parameter values, its positive and negative values are difficult to determine, so it needs to be discussed by case.
As shown in
Figure 2, similar to the case of a major item with one minor item, the optimal solution
when Equation (32) > 0, i.e., the optimal solution,
, is the positive real root of the quartic equation of one variable, Equation (19), and then the optimal solution,
, is obtained by Equation (15).
In this case, we can take the derivative of
, Equation (33).
By simplifying Equations (5) and (33), we can obtain:
Substituting the original value of
into Equation (34), a critical value of the out-of-stock rate can be obtained as follows:
Since the optimal solution to
is
, Equation (34) can be rewritten as Equation (35), as follows:
where a
is determined by Equation (35); it is the lower threshold of the out-of-stock rate.
Therefore, the process of the optimal strategy is as follows:
For each major item, a is determined to judge the relationship between the shortage rate and the critical value.
When the shortage rate is far less than the critical value, the optimal solution of is 0 or 1 and the corresponding value of is calculated according to Equation (14), then the value of the objective function is calculated. A group of and that makes the objective function smaller is selected as the optimal solution.
When the shortage rate is greater than the critical value, the optimal is a positive real root of the quadratic equation in Equation (19) and the corresponding is calculated according to Equation (15).
The strategy of one major item and one minor item is used to determine the of each major item.
is determined by assuming that is the largest period of all .
All the cost items are totaled to find the final total cost.