#### Abstract

We construct a new two-stage stochastic model of supply chain with multiple factories and distributors for perishable product. By introducing a second-order stochastic dominance () constraint, we can describe the preference consistency of the risk taker while minimizing the expected cost of company. To solve this problem, we convert it into a one-stage stochastic model equivalently; then we use sample average approximation () method to approximate the expected values of the underlying random functions. A smoothing approach is proposed with which we can get the global solution and avoid introducing new variables and constraints. Meanwhile, we investigate the convergence of an optimal value from solving the transformed model and show that, with probability approaching one at exponential rate, the optimal value converges to its counterpart as the sample size increases. Numerical results show the effectiveness of the proposed algorithm and analysis.

#### 1. Introduction

A supply chain planning () is a network of suppliers, manufacturing plants, warehouses, and distribution channels organized to acquire raw materials, convert these raw materials into specified final products, and distribute these products to customers. In fact, the involves the commitment of substantial capital resources over long periods of time and it makes the problem extremely important in practice.

Beginning with the seminal work of Geoffrion and Graves [1] on multicommodity distribution system design, a large number of optimization-based approaches have been proposed for the problem of ; see, for example, [2–4]. However, most real problems are characterized by numerous sources of technical and commercial uncertainty; critical parameters such as customer demands, suppliers, and resource capacities are quite uncertain. There are a few research works addressing comprehensive with two-stage stochastic models. As far as we know, Tsiakis et al. considered a two-stage stochastic programming model for under demand uncertainty, where the authors developed a large-scale mixed-integer linear programming model; see [5]. Santoso et al. integrated a sampling strategy with an accelerated Benders decomposition to solve problems with continuous distributions for the uncertain parameters; see [6]. Azaron et al. developed a multiobjective stochastic programming approach for under uncertainty, which also used the goal attainment technique to obtain the Pareto-optimal solutions for decision-making; see [7]. However, very few people considered applying the thought of stochastic dominant to . Recently, optimization models with stochastic dominance constraints have increasingly been the subject of theoretical considerations and have been applied in many areas such as finance, energy, and transportation; see [8–11]. Stochastic dominance is one of the popular established ways to formalize preferences among random values. We can see the concept of the first and the second-order stochastic dominance in detail in [12]. Dentcheva and Ruszczyński have done much work in the applications of stochastic dominance. They firstly provided a stochastic optimal problem with constraint and then discussed the optimality, properties, algorithms, and the applications; see [13–16]. This is an attractive approach for managing risks in an optimization setting. While pursuing expected profits, one can avoid high risks by choosing options that are preferable to a random benchmark. Dentcheva and Martinez also considered a two-stage stochastic optimization problem with a random sequence constraint based on recourse; they proposed two decomposition algorithms and applied them in a two-stage problem; see [17]. Sun discussed the properties, algorithms, and the applications of the stochastic optimization model with constraints. He proposed an improved cutting plane algorithm and applied it to solve a portfolio problem and a problem; see [18].

In this paper, we introduce a constraint to a two-stage optimal model in which we design an acceptable benchmark according to the risk preferences consistency. Our model is a new model to use the SSD constraint in the two-stage SCP model which is a special model of [17, 18]. We do not only minimize the expected cost but also prevent possibly very large cost, which may occur with relatively small probability. For solving such a two-stage optimal model, firstly we use the sample average values to approximate the expected values of the underlying random functions and reformulate them as an ordinary nonlinear programming model with finite number of constraints. Then we provide a smoothing penalty function algorithm to deal with the nonsmoothness resulting from the plus function and penalty function. There are four advantages in our models and methods: (i) we introduce a constraint to describe the preference consistency of the risk taker while minimizing the expected cost of company; (ii) we transfer the two-stage problem into an equivalent one-stage problem which can be solved more easily; (iii) the smoothing SAA method can avoid the infinite constraints in the transformed models and the size of the smoothing algorithm model will not increase as the sample grows; (iv) the smoothing algorithm can get the global optimal solution because the smoothing function maintains the original convexity. Meanwhile, we investigate the convergence of the optimal value of the transformed model and show that the optimal value converges to its counterpart with probability approaching one at exponential rate as the sample size increases.

The remainder of this paper is organized as follows: in Section 2, we set a two-stage stochastic model for by introducing constraint and reformulate it into a one-stage model equivalently. In Section 3, we use a scheme to tackle the expected values. In Section 4, we provide a smoothing penalty function algorithm to solve the approximated model and discuss the convergence of the optimal value. Finally, we give numerical results of a specific small scale to illustrate the proposed methodology in Section 5.

#### 2. A Two-Stage SCP Optimal Model with the Stochastic Dominant Constraint

Consider a has a set of factories that produce and supply perishable products to a set of distributors. Obviously, the demand of distributors is a random vector and we assume that the goods are supplied before the demand is observed. Let denote the quantity of products delivered by factory to distributor ; the demand quantity of distributor is . Then, if , the customers will buy the product in another place and the sales are lost; if , the remaining products have to be disposed owing to its corruption. Here we assume that each factory has a limited capacity to produce products and the disposal cost is a deterministic quantity. The quantity produced by factory is ; the production cost of one unit of product at factory is ; is the number of sales at distributor ; is the amount disposed at distributor ; is the disposal cost on site ; is the price distributor sets for the product; the shipping cost from factory to distributor is denoted by ; the capacity of distributor is .

We adopt the point of view that a random benchmark is available. For the random demand of the distributors, we design an acceptable benchmark strategy depending on preference consistency of risk taker while minimizing the expected cost of the company. Our aim is develop a production and shipping plan to minimize the expected costs and maximize the expected return. The mathematical model for this problem is formulated as follows: where . The first and second item in the objective function represent the total cost of shipping and production, respectively. The constraint shows that the cost should dominate the benchmark strategy at any time. is a popular order when large outcomes are preferred due to its consistency with risk-averse preferences. The equality constraint denotes the limitation of production and the functional stands for the optimal value of the following second-stage problem: Here the objective function denotes the total disposal cost minus the total return of the distributors. The equality constraint comprises the relationship between and . And the inequality constraint represents the limitation of capacity and sales, respectively.

In order to facilitate solving the , we consider transforming it into a one-stage stochastic model firstly. Note that, by using the plus function, we can rewrite second-stage variables—the amount disposed and sold as and according to the relation of the original problem. So with the special construction of this SCP problem, we can obtain the following equivalence one-stage stochastic model easily: where . Obviously, problem (3) is a convex stochastic optimal model. The solution set is a closed convex subset of , is a vector of random variables defined on probability with support set , are continuous functions, and denotes the expected value. Mathematically, the second-order dominance constraint in (3) can be reformulated as [13] It is well known that above constraint does not satisfy* Slater’s constraint qualification*, which could not obtain the necessary conditions of the optimal solution. In general, a so-called relaxed form is proposed:

#### 3. Sample Average Approximation

Because problem (3) involves the random vector , it is very difficult to obtain an approximate form of the expected value of the underlying random functions in general. But if the random vector satisfies a finite discrete distribution, we can easily convert (3) into a deterministic nonlinear programming problem. Recently, Sun et al. applied the well-known sample average approximation () method to solve a stochastic optimization problem with second-order stochastic dominance constraints successfully; see [19]. So we can also construct a problem of (3) in this paper.

Let be an independent and identically distributed sampling of each component . By Proposition in [14], we know that (5) is equivalent to where , are benchmark strategies with sample of size . Thus, we can get the problem of (3) as follows: where

#### 4. A Smoothing Penalty Function Algorithm

For a fixed sample, the problem (7) is an ordinary nonlinear programming problem with finite number of constraints. However, the number of constraints depends on the sample size heavily [12], and this may lead to difficulty in solving this problem as the number of the samples becomes large. So we consider an exact penalization function method to handle (7); that is, consider the following penalized model: where is a constant depending on .

The objective function and in the penalized problem (9) are nonsmooth because they are containing the plus function. To overcome the difficulty of the nonsmoothness, we can provide a smoothing method which can be differentiable and assure the global convergence of the true model; see [19–22]. In this paper, we propose the smoothing function proposed in [21] to approximate the maximal function . Let be a smoothing parameter; for every , we can get the following smoothing function:It is easy to verify that which implies that is continuous in for every ; see [21]. Note that the continuity of in on is obvious. Moreover, is uniformly globally Lipschitz continuous with respect to with modulus ; meanwhile, and are uniformly globally Lipschitz continuous with modulus and modulus , respectively; see [21]. So we can construct the smoothing function for the maximal function in (9) as follows:where and are the smoothing function of and , respectively. Then we have the following conclusion for any .

Theorem 1. *(i) is increasing with respect to . Furthermore, we have**(ii) is a convex function with respect to and remains the convexity of with respect to .**(iii) is continuously differentiable with where **(iv) For any fixed , *

*Proof. *We can obtain conclusions (i), (iii), and (iv) directly from Lemma in Tong et al. [22]. For conclusion (ii), because is the sum function of , which is a linear function, is a convex function, and the sum function of convex functions is still convex. This completes the proof of (ii).

From Theorem 1, we can obtain the following smoothing penalized problem:

In the following, we investigate the convergence of optimal solution of problem (17) as sample size increases.

*Assumption 2. *There exist a vector and a constant such that where denotes Clarke generalized directional derivative of at point in direction for given .

*Assumption 3. *There exists a positive integrable function such that

*Assumption 4. *Problem (3) satisfies the uniform dominance condition (Slater’s constraint qualification); that is, there exists a point such that

Theorem 5. *(a) Let Assumptions 2–4 hold; (b) assume that there exist and such that , , and . is a compact set; (c) the moment generating function of the random variable is finite valued as t is close to , where is defined by Assumption 3; (d) for every , the moment generating functions , and are finite valued as t is close to . (e) is convex and is concave for almost every . Let and , respectively, denote the optimal value function of the SAA problem (7) and smoothing penalized problem (17). Then for any small positive number , there exist positive constants , , and such that for .*

*Proof. *Note that By Theorem [19], there exist positive numbers and such that for , where , which is the distance function. By Theorem [19], we obtain let . Then Combining (), (), (), and (), we obtain the following formulation for :

#### 5. Numerical Results

In this section, we provide a specific for and . We carry out numerical tests by using solver fmincon built in MATLAB R2012a, which is installed on a* Lenovo PC with Windows XP operating system and 2 GB of RAM*. Assume that each component is set to be gamma distribution with parameters . The related data is as follows: . Let the sample size , smoothing parameter , and penalty parameter ; we use the model and algorithm in Sections 2–4 to solve the problem. We obtain that the optimal values are and . From the optimal model outcomes, our testing results indeed satisfy the constraints of the model.

We consider the effect of different smoothing parameters. Let the sample size and smoothing parameter ; see Figure 1. It can be observed that the optimal target values do not change, which indicates that the smoothing algorithm is insensitive to the parameter . It is further shown that the original model based on is equivalent to the smoothing approximation penalty function model when tends to . In what follows, we discuss the CPU times of new algorithm as the increase of sample size. From Figure 2, an important observation is that the methods scale well with the dimension: increasing the dimension of the true problem (3) does not result in a big increase of the number of CPU times, which may be because an exact penalty function method is subsequently applied to deal with the difficulty that the number of dimensions and constraints heavily depends on sample size.

In addition, we can make a comparison of our algorithm and proposed methods in [17]. For the same case of and . Running time for our algorithm, which requires only the solution of an ordinary nonlinear convex programming problem with dimension of , is always within one second (0.429 seconds at most). However, the decomposition methods from [17] typically require some minutes (at least 198.0 seconds). Hence, from a computational point of view, our algorithm is clearly more preferable.

#### 6. Conclusion

This paper proposes a smoothing algorithm for a new two-stage stochastic optimization model of the supply chain planning (SCP). Our model and method have four advantages: (i) the second-order stochastic dominance constraint can describe the preference consistency of the risk taker while minimizing the expected cost of company; (ii) an equivalent one-stage problem was given to solve the two-stage problem; (iii) a SAA method was used to calculate the expected values and it can avoid the infinite constraints in the original problem; (iv) the smoothing algorithm can get the global solution and avoid introducing new variables and constraints. Meanwhile, we investigate the convergence of the optimal value of the transformed model and show that the optimal value converges to its counterpart with probability approaching one at exponential rate as the sample size increases. Numerical results show the effectiveness of the proposed model and algorithm.

#### Conflicts of Interest

The authors declare that they have no conflicts of interest.

#### Acknowledgments

This work is supported by China Scholarship Council and NSFC (Projects 11301445 and 11671125); Hunan Key Laboratory for Computation and Simulation in Science and Engineering, School of Mathematics and Computational Science, Xiangtan University; Key Laboratory of Intelligent Computing & Information Processing of Ministry of Education, School of Mathematics and Computational Science, Xiangtan University.