Introduction

Supply chain network design

In today’s competitive business world, enterprises are confronting the growing markets, increasing expectations of customers and new relationship ways and channels with customers. Therefore, to satisfy the customer expectations and increase the capability of competitiveness against competitors, companies need to analyze their working styles and relations with their customers. For these reasons, supply chain management (SCM) has been considered as an important necessity. Therefore, an appropriate design of the supply chain network is needed to synchronize facilities more efficiently in order to increase the productivity of the supply chain and to obtain customers satisfaction. Supply chain network design tries to construct the most efficient and effective supply chain due to the operating environment of companies (Samadhi and Hoang 1998). The prominent status of supply chain network design in the early 1970s was considered (see, e.g. Geoffrion and Graves 1974). A supply chain network totally comprises suppliers, plants, distribution centers (DCs), retailers along with their markets and systems, sub systems, operations, activities and relations among the facilities (Shapiro 2007).

Supply chain network design is classified as strategic decision problems which are used to make the supply chain more efficient in their long term operations and activities. Therefore, it needs to be optimized (Gumus et al. 2009). The design decisions at the strategic level determine the open facilities with their locations and their relations. At the operational level, decisions comprise setting up distribution channels, determining the amount of products manufacturing, the inventory level and the quantity of materials or products which should be transported between the facilities. It is important that the design decisions not be taken without investigating the operational ones and their effects (Lee and Billington 1992).

Green supply chain

Awareness about the necessity of the protection of the environment is rapidly increasing. Worldwide environmental problems such as air pollution, toxic substance usage, global warming, the loss of non-renewable resources and water are threats to our modern life style. Therefore, to protect the environment and the earth, some of organizations use green principles. These green principles have been applied to a lot of scientific and industrial areas comprising supply chain management. To use the green principles in supply chains, a new concept has been emerged in the last few years which is called green supply chain management (GSCM) (Markovits-Somogyi et al. 2009). Numerous research have been published in recent years in the field of green supply chain (see for example Bai and Sarkis 2010; Diabat and Govindan 2011; Eltayeb et al. 2011; Hsu and Hu 2008; Kumar et al. 2011; Yeh and Chuang 2011). A comprehensive review on the area of green supply chain management is presented by Min and Kim (2012) which comprises more than five hundred papers. As a sub set of green supply chain, green logistic is reviewed by Dekker et al. (2012). They considered the transportation activities as the most visible aspect of supply chains affecting the environment. They modeled a mathematical operational research model with the ability of choosing the mode of transportation, since each mode has different cost, time and environmental effects. Le and Lee (2013) have used transportation and vehicle selection in supply chains for different modes and vehicles when \(\hbox {CO}_{2}\) emission is considered. Many researches have been used transportation modes in their supply chain and we have used these studies for choosing transportation modes (see, e.g. Khalifehzadeh et al. 2014; Rajabalipour Cheshmehgaz et al. 2014).

To balance the environmental and economic concerns in supply chain network design, improving environmental quality should be considered as a cost function which comes at total supply chain cost (Quariguasi Frota Neto et al. 2009). Therefore, the aim of these trades-off between environmental and economic issues are to determine those solutions which increase the total cost if environmental damage will be decreased. These solutions are known as eco-efficient.

Greenhouse gases (GHG) emissions are known as one of the most environmental pollutants. To design green supply chain networks, different strategies can be used to model the GHG emissions in the mathematical models such as GHG cap, tax on generation of the GHGs, GHG offset as a trading scheme in supply chains, GHG management by using life cycle assessment (LCA) or modeling the total GHG emitted as an objective function and try to minimize it. LCA is a methodology that measures the environmental performance during the life cycle of the products. Carbon offset strategy as a trading scheme in supply chains allows the plants or supply chains to achieve the threshold of GHG emissions (Giarola et al. 2012). GHG emissions cap to impose mandatory targets as a green legislation is a kind of strategy that enforces that supply chains to control their GHG emission. Here, in this study to cap the GHG emissions a mandatory target is set as a green regulation constraint in the mathematical modeling. Some of studies try to minimize their GHG emissions as an objective function when there is no difference between green and economic goals.

Dual-channel supply chain design

Nowadays, development of rapid accessibility to information technology has changed purchasing behavior of customers, especially purchasing products directly from plants along with purchasing products indirectly from distribution centers (NPD Group 2004). On the other hand, manufacturers consider direct channel more accurately than previous methods. For example, about 68 % of manufacturers of consumer goods are creating their online selling (direct channel) (Forrester Report 2000) (for more examples see Xu et al. 2012). Rajabalipour Cheshmehgaz et al. (2013) have presented a model to minimize the indirect shipment to increase the flexibility of the supply chain. Also, Hiremath et al. (2013) defined three channels as very slow, slow and fast movement to improve the flexibility. They classified their delivering channels based on nature of demands. Fast moving items have their especial strategy to be stocked and delivered by regional DCs. Slow moving items are stocked in central DCs and very slow items are stocked in plants with in-house storage facilities.

One of the important issues in dual-channel supply chain design is determining price competition between the channels (Xu et al. 2012). Customers of direct channel usually have higher expectations from those who purchase from indirect channel. Therefore, total allowable delivery lead time of direct channel is not longer than the indirect one. Ernst and Young (2001) have shown that two-thirds of companies choose different prices for their channels, however in some industries, trend is to charge low prices for direct channels. Amini and Li (2015) have considered pricing concept by using selling price ration in their model.

Dual-channel supply chains can be implemented in those industries with the ability of attracting customers directly in addition to indirect channel. Designing dual-channel for supply chains can be used for products with two kinds of customers, who link to supply chains directly via internet and who purchase products indirectly. As a real case, Yezheng and Zhengping (2012) have been studied a dual-channel supply chain in a free riding problem with coordination strategy in revenue sharing. Yu et al. (2015) have been a dual-channel supply chain network design for fresh agri-products.

Motivation

However, a wide range of studies have been dedicated to green supply chain along with its network design and dual-channel in supply chains separately. According to related literature and the best of our knowledge, our recent study is trying to enter a new area by integrating the concepts of green supply chain and dual-channel networks into supply chain network design.

In this study, the concept of green supply chain is considered in two ways as follows; the first way is to choose transportation mode between facilities in each channel which is related to the amount of greenhouse gases (GHGs) emissions, and the second one is to restrict the total amount of emissions to be lower than significant allowable amount which is usually determined by law or green organizations. In this study, other aspects of supply chain network design such as production, pricing, lost sales and its penalty, capacity constraints and lead time are also considered. Here, the mathematical formulation presented by Pishvaee and Rabbani (2011) for direct and indirect shipment is used as our base model for designing the proposed dual-channel supply chain network model. They developed a profitably supply chain network design mathematical model without considering any environmental and green concepts. They considered lead time and capacity constraint in their modeling. According to Table 1, we consider transportation mode choice and their impacts on GHG emissions in our model.

Some related studies in the field of green supply chain network design and dual-channel design are compared with ours in Table 1. According to this Table, channel structure is classified as single and dual-channels. As it seems most of designed mathematical models are classified in the single channel group. Previous studies almost employed the concepts of single channel, forward flow and capacity constraint in their models. Besides, a few studies considered GHG emissions in their modeling for different modes of transportation activities (see Jamshidi et al. 2012; Mallidis et al. 2012). In addition, pricing as an important concept in green supply chain network design is only considered by Guillén-Gosálbez and Grossmann (2010). The concept of pricing can play an important role in dual-channel supply chains especially when trade-offs between environmental and economic issues are considered.

Costumers can be classified into two groups, those who prefer ordering from indirect channel and those who prefer buying from direct one. These two groups usually have different expectations in product price and delivery lead time. On the other hand, developing technologies in transportation modes along with restrictions for GHG emissions in laws and changing demands of customers to buy products from those supply chains that produce fewer emissions are some of motivations to design dual-channel green supply chains considering GHG emissions, delivery lead time with different modes in transportation activities and pricing decisions for channels to maximize the total profit of supply chain. The concepts of lost sales and capacity constraints are also considered in the production process.

Since capacitated facility location problems are introduced as NP-complete problems and most of supply chain network design problems can be reduced to them, it can be concluded that supply chain network design problems belong to NP-hard problems class (Davis and Ray 1969). Therefore, heuristic and meta-heuristic algorithms can be employed to match the complexity of NP-hard problems. Finally, the proposed model is solved by GAMS and according to NP-hard nature of the presented problem and long run time, an artificial immune system algorithm based on CLONALG and Taguchi method is applied. Then, to validate the obtained results, other population-based algorithms such as genetic and Memetic algorithms are taken into accounts. Melo et al. (2009) in the field of supply chain network design (SCND) has reviewed the solution approaches for single objective problems. They declared that about 45 % of the SCND models are solved by specific algorithms and heuristic solutions based on heuristic and meta-heuristics which are the most popular solution approaches. In the end, a numerical example is used and the results obtaining from solution approaches are compared. Most parameters of the proposed model in all test problems in the numerical example are generated randomly with the range of parameters presented in recent literature (Pishvaee and Rabbani 2011).

The reminder of the manuscript is organized as follows: in the next part, Problem definition and formulation, assumptions of the model and mathematical model formulation are presented. In Solving methodology Section, artificial immune system based on CLONALG for problems with long run time as the solving method is presented. To express more explicitly, some experimental results are implemented in Experimental results Section. Finally, some concluding remarks are provided in Conclusion Section.

Table 1 Comparison of literature of dual-channel network design and supply chain network design with our model
Fig. 1
figure 1

Illustration of the proposed supply chain

Problem definition and formulation

Today, by increasing the sensitivity of the governments and nations about the environmental issues in economical and non-economic activities, the concept of greening is growing fast. On the other side, competition to interest customers by rapid delivering and direct connection with them has become significant. Thus, developing dual-channel green supply chains can join these goals together. In this study, a single-product, two-echelon green supply chain network including plants and distribution centers (DC’s) is considered. To design this network, greenhouse gases emission, as an environmental issue, with regard to economic aspects are investigated. Markets to sell the products are significant and predefined. Figure 1 shows the proposed supply chain with its characteristics. The important feature of the supply chain is being dual-channel. Markets are classified into two groups. First one comprises those customers (customer zone 1) which order directly to plants as direct channel (on-line ordering). Plants deliver the ordered products through this channel. The second group (customer zone 2) is those customers which order indirectly to the supply chain. Therefore, their demand will be satisfied by distribution centers through the indirect channel.

The following assumptions are the features which are used to design the proposed supply chain.

  1. 1.

    The supply chain is single-product.

  2. 2.

    The supply chain is composed of two echelons; plants and distribution centers.

  3. 3.

    Two kinds of channels are considered. Direct channel links plants to customer zone 1. On the opposite side, indirect channel links distribution centers to customer zone 2.

  4. 4.

    Each market has determined demand which depends on the selling price of products in both channels.

  5. 5.

    There is a lead time constraint to deliver products to markets for both channels.

  6. 6.

    Plants and distribution centers have capacity constraints.

  7. 7.

    Unsatisfied demands for both channels are considered as lost sales.

  8. 8.

    Manufacturing and shipping activities within supply chain emit greenhouse gases (GHG).

  9. 9.

    Different transportation modes are considered for products shipping. Greenhouse gases emissions depend on the chosen transportation mode.

  10. 10.

    The supply chain is legally bounded to comply with greenhouse gases emissions law. Therefore, the GHG emissions must not exceed the legal threshold.

  11. 11.

    Determining selling price of products in each channel is a tactical decision. Therefore, each channel, based on its pricing function, has its unique selling price which depends on the selling price of another channel.

Due to the mentioned features of the proposed supply chain, profit maximization of designing a dual-channel green supply chain with regard to transportation and pricing issues is as follows: Strategic decision for the proposed supply chain is to determine which facilities (plants and distribution centers) are open. There are a set of predefined points for plants and distribution centers to determine the positions of open facilities. Tactical decision is to specify the amounts of products which should be dispatched through the channels considering transportation mode and selling price of products in that channels.

Mathematical model formulation

The following notations are used to formulate the mathematical model of the proposed problem.

Indices

i :

Candidate locations for plants \(i=1,\ldots ,I\)

j :

Candidate locations for distribution centers \(j=1,\ldots ,J\)

\(k_1 \) :

Predefined locations for zone one customers (direct channel) \(k_1 =1,\ldots ,K_1 \)

\(k_2 \) :

Predefined locations for zone two customers (indirect channel) \(k_2 =1,\ldots ,K_2 \)

l :

Transportation modes \(l=1,\ldots ,L\)

Parameters

\(d_{k_2 } \) :

Demand of customer \(k_2 \) received from indirect channel

\({d}'_{k_1 } \) :

Demand of customer \(k_1 \) received from direct channel

\(f_i \) :

Fixed cost of opening plant i

\(g_j \) :

Fixed cost of opening distribution center j

\(p_{ijl} \) :

Unit transportation cost from plant i to distribution center j by using transportation mode l

\(q_{jk_2 l} \) :

Unit transportation cost from distribution center j to customer \(k_2 \) by using transportation mode l

\(r_{ik_1 l} \) :

Unit transportation cost from plant i to customer \(k_1 \) by using transportation mode l

\(c_i \) :

Per unit production cost for each product at plant i

\(h_j \) :

Per unit holding cost for each product at distribution center j

\(m_i \) :

Maximum capacity of plant i

\(n_j \) :

Maximum capacity of distribution center j

\(\theta _i \) :

Penalty per unit lost sale for plant i

\(\beta _j \) :

Penalty per unit lost sale for distribution center j

\(lt_{jk_2 l} \) :

Lead time from distribution center j to customer \(k_2 \) using transportation mode l

\(ls_{ik_1 l} \) :

Lead time from plant i to customer \(k_1 \) using transportation mode l

\(\tau _{k_2 } \) :

Maximum permissible lead time to deliver the ordered product to customer \(k_2 \)

\({\tau }'_{k_1 } \) :

Maximum permissible lead time to deliver the ordered product to customer \(k_1 \)

\(u_i \) :

Greenhouse gases emissions from production per unit of product at plant i

\({u}'_{ik_1 l} \) :

Greenhouse gases emissions from transportation per unit of product from plant i to customer \(k_1 \) using transportation mode l

\(ug_{ijl} \) :

Greenhouse gases emissions of transportation per unit of product from plant i to distribution center j using transportation mode l

\(us_{jk_2 l} \) :

Greenhouse gases emissions from transportation per unit of product from distribution center j to customer \(k_2 \) using transportation mode l

\(Emis_l \) :

Emissions from using typical transport units of mode l

\(D_{ijl} \) :

Distance between plant i and distribution center j using transportation mode l

\({D}'_{jk_2 l} \) :

Distance between distribution center j and customer \(k_2 \) using transportation mode l

\(Dg_{ik_1 l} \) :

Distance between plant i and customer \(k_1 \) using transportation mode l

\(\Psi \) :

Maximum permissible greenhouse gases emissions

Variables

\(X_{ijl} \) :

Quantity of products shipped from plant i to distribution center j using transportation mode l

\(Y_{jk_2 l} \) :

Quantity of products shipped from distribution center j to customer \(k_2 \) using transportation mode l

\(Z_{ik_1 l} \) :

Quantity of products shipped from plant i to customer \(k_1 \) using transportation mode l

\(\Pr '\) :

Per unit selling price of each product in direct channel

\(\Pr \) :

Per unit selling price of each product in indirect channel

\(V_i \) :

1 if an open plant is located in candidate location i; 0 otherwise

\(W_j \) :

1 if an open distribution center is located in candidate location j; 0 otherwise

Due to above notations, mathematical model of the dual-channel green supply chain network design can be formulated as follows.

$$\begin{aligned}&M\hbox {ax Z}=\sum _i {\sum _{k_1 } {\sum _l {{\Pr }'Z_{ik_1 l} } } } +\sum _j {\sum _{k_2 } {\sum _l {\Pr Y_{jk_2 l} } } } \nonumber \\&\quad -\sum _i {f_i V_i } -\sum _j {g_j W_j } -\sum _i {\sum _j {\sum _l {\left( {c_i +p_{ijl} } \right) X_{ijl} } } } \nonumber \\&\quad -\sum _j {\sum _{k_2 } {\sum _l {\left( {h_j +q_{jk_2 l} } \right) Y_{jk_2 l} } } } \nonumber \\&\quad -\sum _i {\sum _{k_1 } {\sum _l {\left( {c_i +r_{ik_1 l} } \right) Z_{ik_1 l} } } } \nonumber \\&\quad -\sum _i {\sum _{k_1 } {\theta _i \left( {{d}'_{k_1 } -\sum _l {Z_{ik_1 l} } } \right) } } \nonumber \\&\quad -\sum _j {\sum _{k_2 } {\beta _j \left( {d_{k_2 } -\sum _l {Y_{jk_2 l} } } \right) } } \end{aligned}$$
(1)
$$\begin{aligned}&\sum _i {\sum _l {Z_{ik_1 l} } } \le {d}'_{k_1 } \qquad \forall k_1 \end{aligned}$$
(2)
$$\begin{aligned}&\sum _j {\sum _l {Y_{jk_2 l} } } \le d_{k_2 } \qquad \forall k_2 \end{aligned}$$
(3)
$$\begin{aligned}&\sum _{k_2 } {\sum _l {Y_{jk_2 l} } } \le \sum _i {\sum _l {X_{ijl} } } \qquad \forall j\end{aligned}$$
(4)
$$\begin{aligned}&Y_{jk_2 l} lt_{jk_2 l} \le Y_{jk_2 l} \tau _{{\mathrm{k}}_{2} } \qquad \forall j,k_2 ,l\end{aligned}$$
(5)
$$\begin{aligned}&Z_{ik_1 l} ls_{ik_1 l} \le Z_{ik_1 l} {\tau }'_{{\mathrm{k}}_{1} } \qquad \forall i,k_1 ,l\end{aligned}$$
(6)
$$\begin{aligned}&\sum _{k_1 } {\sum _l {Z_{ik_1 l} } } +\sum _j {\sum _l {X_{ijl} } } \le V_i m_i \qquad \forall i\end{aligned}$$
(7)
$$\begin{aligned}&\sum _i {\sum _l {X_{ijl} } } \le W_j n_j \qquad \forall j\end{aligned}$$
(8)
$$\begin{aligned}&\sum _i {\sum _j {\sum _{k_1 } {\sum _l {u_i \left( {X_{ijl} +Z_{ik_1 l} } \right) } } } } \nonumber \\&\quad +\,\sum _i {\sum _j {\sum _l {ug_{ijl} X_{ijl} } } } +\,\sum _i {\sum _{k_1 } {\sum _l {{u}'_{ik_1 l} Z_{ik_1 l} } } } \nonumber \\&\quad +\sum _j {\sum _{k_2 } {\sum _l {us_{jk_2 l} Y_{jk_2 l} } } } \le \Psi \end{aligned}$$
(9)
$$\begin{aligned}&X_{ijl} ,Y_{jk_2 l} ,Z_{ik_1 l} ,\Pr ,\Pr '\ge 0\qquad \forall i,j,l,k_1 ,k_2 \end{aligned}$$
(10)
$$\begin{aligned}&V_i ,W_j \in \left\{ {0,1} \right\} \qquad \forall i,j \end{aligned}$$
(11)

Equation (1) ensures the objective function of the proposed model which maximizes the total profit of supply chain. Revenue of the supply chain comprises of total sale of the supply chain in direct and indirect channels. Cost of supply chain includes fixed opening cost of plants and distribution centers, production cost at plants, transportation cost from plants to distribution centers, distribution centers to customers and plants to customers, holding cost at distribution centers and penalty of lost sales at plants and distribution centers. Constraints (2) and (3) illustrate that plants and distribution centers try to meet all demands of customers of direct and indirect channels respectively, but lost sales are possible in both channels. Constraint (4) assures flow balance at distribution centers. It means that quantity of received products from plants must not be lower than quantity of products sent to customers within indirect channels at each distribution center.

Constraint (5) ensures that all products are delivered to customers of indirect channel with maximum permissible lead time. Constraint (6) assures that all products are delivered to customers of direct channel with maximum permissible lead time. Constraint (7) shows capacity constraint of plants. Constraint (8) illustrates the capacity constraint of distribution centers. Constraint (9) is related to environmental constraint of supply chain. According to this constraint, greenhouse gases emissions of the supply chain activities must not exceed the legal threshold. Constraint (10) shows non-negative variables and Constraint (11) assures the binary ones.

In dual-channel networks, prices in channels can effect on customers demand. The price of each channel can move the customers to other channel because of difference between prices in channels. In fact, due to the competition between channels to interest the customers, different prices between channels have to be determined. Thus, the demand for each channel is a variable depends on the prices of both channels. The cooperative pricing strategy is defined where the members of the supply chain coordinate on determining the optimal price. This optimal price can increase the total profit of the supply chain and also the profit of each member. To maximize the total profit of the supply chain the optimum value for prices of both channels is needed.

For the deterministic demand of customers, \({d}'_{k_1 } \) is demand function of direct channel (Eq. (12)), While \(d_{k_2 }\) denotes demand function of indirect channel (Eq. (13)).

$$\begin{aligned}&{d}'_{k_1 } =\alpha -{\lambda }'_{k_1 } P{r}'+\gamma _2 Pr \qquad \forall k_1 \end{aligned}$$
(12)
$$\begin{aligned}&d_{k_2 } =\alpha -\lambda _{k_2 } Pr +\gamma _1 P{r}' \qquad \forall k_2 \end{aligned}$$
(13)

where, \({\lambda }'_{k_1 } \) and \(\lambda _{k_2 }\) present the elasticity of price on another channel and substitutability between channels for each customer, \(\gamma _1\) and \(\gamma _2\) are the price-demand elasticity of direct and indirect channels, respectively. Notation \(\alpha \) depicts the market scale for the products. Being more sensitive, it seems that \(\gamma _1\) should be greater than \(\gamma _2 \) for customers of zone one. Therefore, we assume\(\gamma _1 >\gamma _2 \). To estimate the amounts of parameters for the elasticity of channels, market scale of the product and historical market data are used. Thus, based on different available prices, the amount of demand for each channel is registered. Finally, to estimate the elasticity parameters based on Eqs. (12) and (13) regression is implemented for the acquired historical data.

To evaluate emissions of transportation activities (\({u}'_{ik_1 l}\), \(ug_{ijl}\) and \(us_{jk_2 l}\)) between nodes of supply chain, emissions of transportation mode \(l(Emis_l )\) and distances between nodes with regard to selected transportation mode l (\(D_{ijl} \),\({D}'_{jk_2 l} \) and \(Dg_{ik_1 l}\)) are used. Therefore, Eqs. (14), (15) and (16) can be defined as follows.

$$\begin{aligned}&{u}'_{ik_1 l} =Emis_l \times Dg_{ik_1 l} \qquad \forall i,k_1 ,l \end{aligned}$$
(14)
$$\begin{aligned}&ug_{ijl} =Emis_l \times D_{ijl} \qquad \forall i,j,l \end{aligned}$$
(15)
$$\begin{aligned}&us_{jk_2 l} =Emis_l \times {D}'_{jk_2 l} \qquad \forall j,k_2 ,l \end{aligned}$$
(16)

In this study, to estimate the average emissions for trucks and vehicles using to transport the products through the points, MOBILE 6.2 computer model software developed by the U.S. Environmental Protection Agency (EPA) is used (see MOBILE6 Vehicle Emission Modeling Software http://www.epa.gov/otaq/m6.htm). Vehicle type/size, vehicle age and accumulated mileage, fuel used, ambient weather and maintenance conditions and type of driving are some of factors that effect on the amount of GHG emissions for each vehicle. Also, gas and diesel are considered as the fuel.

Due to above mathematical formulation, the dual-channel single-objective green supply chain network design model is a mixed-integer non-linear mathematical programming (MINLP) model. The presented model can be implemented in various industries with the ability of attracting customers directly in addition to indirect channel, especially those ones that are known as pollutant industries with high GHG emissions and deal with legal restriction such as automotive, casting the industrial parts, cement industries and so on.

Solving methodology

In recent years, evolutionary algorithms have been used to supply chain network design optimization problems (see Pishvaee et al. 2010a). Also, according to NP-hard nature of supply chain network design problems, solving large instances efficiently within rational time is a difficult work (Aras and Aksen 2008). Therefore,, the proposed model is solved by GAMS and according to NP-hard nature of the presented problem and long run time, an artificial immune system algorithm based on CLONALG and Taguchi method is applied. To validate the obtained results genetic and Memetic algorithms are taken into accounts.

Artificial immune system (AIS)

Our body defends against foreign attacks by a complicated hierarchical arrangement of molecules, cells and organs which is called immune system. This system always monitors the body by searching and removing malfunctioning cells and foreign elements which cause diseases. Each of these elements that can be recognized by the immune system is named antigen. Each immune cell has some receptor molecules on its surface which discriminates between antigens and safe cells or elements. One of the main features of each antibody is its affinity which defines as binding strength to the discovered antigen. Then, the antibody cells mature and proliferate into a new kind of cells which are known as plasma cells or terminal cells. Clones are generated during the proliferation or cell division process. These clones are progenies which belong to a single cell (de Castro and Von Zuben 2002). Since, the most active secretors of the antibody cells are plasma ones, clone generation is taken into account to achieve the state of the plasma cells.

Bersini and Varela (1991) and Farmer et al. (1986) are the first ones who introduced immune systems. Only about one decade later, Forrest et al. (1994) (on negative selection) and Kephart (1994) published their first papers on AIS in 1994. Cutello and Nicosia’s (2002) and De Castro and Zuben’s (2002) research (on clonal selection) became notable in 2002. In 2008, Dasgupta and Nino (2008) published their book on Immunological Computation. They presented a summary of up-to-date works related to immunity-based techniques and also described a wide variety of applications. Clonal selection algorithm (CLONALG), negative selection algorithm, immune network algorithms and dendritic cell algorithms are the common techniques which are used in immunological theories that explain the function and behavior of the immune systems.

AIS is successfully used to solve different kinds of complicated optimization problems comprising traveling salesman problem (de Castro and Von Zuben 2002), machine loading problem (Chan et al. 2005), flow shop scheduling (Kumar et al. 2006), economic load dispatch (Panigrahi et al. 2007) and supply chain network design (Tiwari et al. 2010).

Clonal selection algorithm (CLONALG)

CLONALG is a AIS-based technique which refers to clonal selection principle along with other main features comprising proliferation and differentiation on provocation of cells with antigens; generating new random genetic changes which is known as diversification of antibody patterns by a process which is called affinity maturation; and removing those differentiated lymphocytes (immune cells) that holding antigenic receptors with low affinity (de Castro and Von Zuben 2002). Here, in optimization problems the concept of the affinity is equal to fitness function evaluation and constraint satisfaction. Therefore, constraints are presented by antigens and constraint satisfaction is related to affinity. On the other hand, the higher the constraint satisfaction, the more is the affinity. Between two antibodies (solutions) with satisfied constraints, one with better value of objective function gain larger affinity.

At the beginning, a pool of antibodies (a population of random feasible solutions) is generated. Then, antigens are introduced to the antibodies randomly and affinity is evaluated for all of the antibodies. Antibodies with higher affinity generate more off-spring and maturate with a lower rate of hyper mutation. The maturation process is comprising of two steps; one, through random genetic changes with a related affinity rate and two, through elimination of those differentiated immune cells (clones) with lower affinities value of their. The above process will be repeated until definite stopping criteria are satisfied.

More details about the proposed CLONALG are investigated as follows. Figure 2 shows the flowchart of the solving method.

Fig. 2
figure 2

Flowchart of CLONALG

Fig. 3
figure 3

Encoding schema for the proposed problem

The encoding schema

Here we have used an encoding schema which is a combination of both, binary and integer variables. For more explicitly, a network with 2 plants, 3 DCs, 4 transportation modes and 5 customers for each channel is considered. Figure 3 shows the encoding schema for our proposed problem. The first two receptor cells are binary and they show the plants are opened (value 0) or closed (value 1). Then, five two-receptor cells are the DCs, customers of zone 1, transportation mode which are selected for each plant, the quantity of products shipped to DCs and customers of zone 1, respectively. Next three receptor cells are binary and they show the DCs are opened or closed. Then, 3 three-receptor cells are the customers of zone 2, transportation mode which are selected for each DC and the quantity of products shipped customers of zone 2, respectively. The last two receptor cells present the price of products for direct and indirect channel.

Initial pool of antibodies (initialization)

The procedure generates antibodies to reach the defined population randomly. Here, the initial population is considered equal to 100 antibodies. Each antibody is composed of real and integer values.

Fitness function (affinity evaluation)

To evaluate the affinity of antibodies with antigens, it is necessary to use a fitness function. The fitness function will present that the higher the affinity of one antibody with antigens is, the higher is the fitness function of the antibody with the better the value of objective function. The fitness function is used to be maximized while the objective function is also considered to be maximized. In this research, a transformation function \((\omega _{ab} ={Z_{ab} }\big /{Z^{*}})\) is employed as the fitness function, where, \(\omega _{ab} \) is the fitness value of antibody ab, \(Z_{ab} \) demonstrates the value of objective function for antibody ab, and the best value of objective function which is found by the solution procedure during the solving is named as \(Z^{*}\).

Table 2 The value of parameters for the proposed model

Clone generation

To carry out the clone generation process, antibodies are sorted based on their affinities. The number of clones for each antigen is derived from equation \(N_c =\sum \nolimits _{i=1}^n {round\left( {\frac{\beta N}{i}} \right) } \), where, \(N_c\) shows the total amount of generated clones for the antigen, \(\beta \) is a multiplying factor which is considered equal to one, N the total number of antibodies (in this study it is considered equal to 100). To produce better clones, Taguchi method is applied to investigate the large numbers of decision variables with a small number of experiments. Here, two antibodies are selected randomly and the optimal level of each decision variable (factors) will be determined by Taguchi method. Level 1 is equal to the values of factors of first antibody and the related values of the second antibody are defined as level 2. The value of factor f at level l is computing by equation \(Val_{fl} =\sum \nolimits _i {\phi _i } \,\forall i\), where i is the number of experiment. The optimal level of each factor is the one that presents higher \(Val_{fl} \).

Maturation

In the maturation process, as a similar method with what mutation operator acts in genetic algorithm the antibodies will be maturated (Goldberg 1989). The difference lies in the higher fitness values of antibodies concluded the lower rate of mutation. For maturation process in this study, single-point mutation is employed.

Selection

Due to maturation process, for selection we use “roulette wheel mechanism” just the same as what is used in “genetic algorithm”. This mechanism based on its randomness nature allows the solving procedure to diversify more and avoid local solutions. This process is done after sorting the antibodies due to their fitness values. Therefore, the higher the fitness value of an antibody is, the higher is the probability of selection.

Experimental results validation method

To validate the experimental results, we used genetic and Memetic, two population-based algorithms. To prepare fare conditions to compare between these algorithm and CLONALG, Taguchi technique is applied for both.

Experimental results

To solve the proposed dual-channel green supply chain network design, GAMS 23.7.3 optimization software is used. Also, artificial immune system (AIS) based on CLONALG is applied for the large-size problems when the running time is huge. The obtained results are compared with MA and GA algorithm on twenty five test problems, when Taguchi technique is used for parameter tuning of all meta-heuristic algorithms. In the field of supply chain network design, Tiwari et al. (2010) has used artificial immune system (AIS) for a supply chain network design with multiple shipping. Fahimnia et al. (2013) and Yeh (2006) have applied genetic algorithm and Memetic algorithm for this field, respectively.

Table 3 Results of numerical example

Test instances

In this section, we present the results derived from solving various test instances by CLONALG. Three dimensions of the sizes of the test problems (ij and \(k_2\)) are selected in the range of those test problems which are presented in the recent literature (Pishvaee and Rabbani 2011; Yeh 2005; Gen et al. 2006). The size of parameter \(k_1\) is considered as equal to \(k_2 \). The size of parameter l is selected in the range of test problems presented by Tiwari et al. (2010). All the parameters of the proposed model in all test problems which are identified with one asterisk in Table 2 are generated randomly with the range of parameters presented in recent literature (Pishvaee and Rabbani 2011). The values of parameters identified with two asterisks are in the range of the same ones in research of (Liu et al. 2010). The values of emissions of transportation modes for those parameters are marked with three asterisks in Table 2 are derived from the source of networks for transport and environment (see http://www.ntmcalc.se/index.html, February 12, 2011). Some research use different transportation modes with regard to their GHG emissions (Dekker et al. 2012; Mirzapour Al-e-hashem et al. 2013). The value of maximum permissible greenhouse gases emissions \((\Psi )\) is also derived from (Zhao et al. 2012) and equal to 5.44 million tons.

To compare the results which are obtained by GAMS 23.7 to those from CLONALG, Table 3 is presented. The percentage of error as a comparison criterion along with standard deviation (SD) and the ratio of the standard deviations per averages of objective function values are computed to illustrate the comparison between the results of two solving methods. These criteria are also employed by Pishvaee and Rabbani (2011) to compare their heuristic solution approach with the results of LINGO 8 in a supply chain network design with direct and indirect shipment model. The percentage of error is calculated by Eq. (17). The value of objective which is obtained by GAMS is mentioned by \(Z_G \), while \(Z_C\) shows the value of objective obtained with CLONALG.

$$\begin{aligned} Error\% =\frac{Z_G -Z_C }{Z_G }\times 100 \end{aligned}$$
(17)

Due to Table 3, twenty five test problems are run. For each size, the best and average values of CLONALG with the average of run times are presented. Standard deviation per average of objective function of CLONALG is also computed to assess the stability of obtained solutions.

Fig. 4
figure 4

Errors (%) of the CLONALG solutions

Table 4 The design and noise factors for parameter tuning based on Taguchi method

Due to Table 3, computational run time of GAMS for the size of \(10\times 30\times 50\times 50\times 5\) in \(\hbox {P}_{2-1}\) is about 1012 s, while the computational run time of CLONALG is about 14 s with about 1.23 % in error. As the numerical example shows, the errors of the solutions are in the range of 0.02–4.56 % for the five problems in five different test sizes. Usually the largest error for meta-heuristic algorithms are obtained in the large-size problems (see Ebrahim et al. 2009; Pishvaee et al. 2010b), however the largest error for CLONALG is occurred on the small-size of the proposed test problems. On the other hand, for the test problems with the size of \(20\times 50\times 80\times 80\times 8\) and \(40\times 70\times 100\times 100\times 10\) GAMS could not reach the best solution in about 12 hours. Therefore, the best solution which is obtained by GAMS in 12 hours is reported in Table 3.

Computational run times with the error of the solutions are the two important criteria which are reported in Table 3 as a comparison between the solutions obtained from GAMS and CLONALG, while they are used to evaluate the efficiency and stability of CLONALG. Computational run times for small-sizes are close but for large-sizes the gap changes to be very significant. For the largest size, the running time of CLONALG to obtain a near optimal solution is only 121 seconds, while GAMS after about 12 hours reported the best obtained solution with only 0.01 % error in comparison with CLONALG. Also, Fig. 4 shows the error (%) in all test problems. The largest amount of this criterion is 4.56 % for problem \(\hbox {P}_{1-5}\) and the test size \(5\times 15\times 10\times 10\times 5\). On the opposite side, the smallest amount of errors is 0.02 % and it is occurred in problem \(\hbox {P}_{3-5}\) and the test size \(15\times 40\times 60\times 60\times 8\). Due to Fig. 4, it can be concluded that the errors of large-size problems (i.e. \(\hbox {P}_{3-^*}\), \(\hbox {P}_{4-^*}\) and \(\hbox {P}_{5-^*}\)) are smaller than 1 %. On the other hand, it can be concluded that the difference between the run times of large-size problems for two solving methods becomes significantly larger.

Due to Table 3 and Fig. 4, it can be concluded that since the computational run times of CLONALG, especially in large-size problems, are significantly lower than the computational run times which are obtained by GAMS, while the errors of the CLONALG solutions are in a narrow acceptable range, using CLONALG meets the requirements and is adequate to reach near optimal solutions.

Parameter setting

In meta-heuristic algorithms parameter setting has significant effects of their performance which should be investigated with regard to the conditions of the problem. Taguchi is a method for robust parameters design that minimizes the effects of causes of variations to improve the quality of products or solutions. Here, orthogonal array (OA) and the signal-to-noise ratio (S/NR) are implemented as two significant tools used in Taguchi method. By using the orthogonal array, the effects of different parameters on the performance characteristic of the proposed problem in a condensed set of experiments can be tested. In each process the parameters that can be controlled have been determined. Then, the levels of varying for these parameters must be determined. The levels for these parameters include minimum, maximum and current value. Therefore, the difference between the minimum and the maximum levels for a parameter be large, more values should be tested. Otherwise, if it be small, fewer values can be tested. Taguchi et al. (2000) have been described more details on orthogonal arrays and Taguchi method.

Fig. 5
figure 5

S/N ratio plot of the factors for each level for CLONALG

Fig. 6
figure 6

S/N ratio plot of the factors for each level for GA

In this study, three level orthogonal array which is known as \(L_n (2^{n-1})\) is used. Where, the number of experimental runs is equal to \(n=2^{k}\); k is defined as a value greater than 1 and 2 is the number of levels. The S/NR measures how the response varies relative to the target value due to different noise conditions. Thus, at the first stage, we use the S/NR to determine those control factors that reduce variability. At the second one, we determine those control factors that move the mean to target and have small or no effect on the S/NR.

Here, we have used the reference values for some of parameters of our model from the similar papers (see Table 2). We used Taguchi method for CLONALG in clone generation step and the tuning of the parameters of this algorithm. Two antibodies are selected randomly and the optimal level of each decision variable (factors) will be determined by Taguchi method. Level 1 is equal to the values of factors of first antibody and the related values of the second antibody are defined as level 2 (for more details see Tiwari et al. (2010)). Table 4 shows the design and noise factors for parameter tuning based on this method for CLONALG, GA and MA algorithms. Finally, Figures 5, 6, 7 show S/N ratio for each level of the design factors for CLONALG, GA and MA algorithms, respectively.

Fig. 7
figure 7

S/N ratio plot of the factors for each level for MA

Fig. 8
figure 8

The effect of population size on the performance of CLONALG

Table 5 Results of varying the amount of mutation

Finally, we investigated the effect of varying the parameters of CLONALG such as population and mutation. At the first, the population size is varying in the range of \(100\,\pm \,50\). The results on the value of fitness function have been shown by Fig. 8. Due to Fig. 8, improving the fitness function value for the population sizes greater than 100 is decreasing. At the second, the value of mutation is varying from 0.1 to 0.5 for the problems \(\hbox {P}_{5-1}\) to \(\hbox {P}_{5-5}\). The results are studied in Table 5. These test runs show that the total benefit of the supply chain will decrease, if the probability of the mutation increases.

Table 6 Comparison of CLONALG, GA and MA

Comparison of the performance of the meta-heuristic solving methods

After parameter setting and determining the level of factors, to investigate the effectiveness and efficiency of CLONALG, all test problems solved with other meta-heuristic methods and the results are reported in Table 6. According to the best and gap values, the advantage of CLONALG over GA and MA is quietly obvious, however the computational time of GA and MA are better. Also, the performance of CLONALG based on average values dominates the other algorithms.

Fig. 9
figure 9

Convergence trend for solving algorithm

Table 7 Results for different numbers of predefined locations of customers for direct and indirect channel (problem \(\hbox {P}_{3-5}\))

Figure 9 shows the convergence trends for all meta-heuristic algorithms for problem \(\hbox {P}_{3-5}\). It can be concluded that, the convergence trend of CLONALG is higher and the solutions are closer to optimal than the other algorithms. Thus, in summary, it can be claimed that CLONALG can be a competent method for optimizing problems such as the presented model.

For more detailed insights, we investigated the effect of varying the numbers of predefined locations of customers for direct and indirect channels. Problem \(\hbox {P}_{3-5}\) as the problem with lowest error is selected and the results of applying solving methods are illustrated by Table 7. Therefore, it can be concluded that moving toward to increasing the demand of the customers of direct channel has more effect on growing the benefit of the supply chain rather than the indirect one. Thus, it is suggested that the management of the supply chain moves toward attract more demand of direct customers. Price elasticity for both channels and their effects on the profit of the supply chain is investigated in Theorem 1.

Theorem 1

The effect of the price elasticity of direct channels on the profit of the supply chain is less than that one of indirect channel.

Proof

The total profit of the supply chain is calculated by Equation (18).

$$\begin{aligned} Z=\hbox {F}_{1} +\hbox {F}_{2} -\hbox {Y } \end{aligned}$$
(18)

Where, Z is the total profit, \(F_{1}\) and \(F_{2}\) mean the revenue of direct and indirect channels, respectively. The total cost of the supply chain is demonstrated by Y (Cost is independent of the prices). Thus, Equation (18) can be expanded to Equations (19) and (20).

$$\begin{aligned} Z= & {} \sum _{k_1 } {{d}'_{k_1 } P{r}'} +\sum _{k_2 } {d_{k_2 } Pr } -Y \end{aligned}$$
(19)
$$\begin{aligned} Z= & {} \sum _{k_1 } {\left( {\alpha -{\lambda }'_{k_1 } P{r}'+\gamma _2 Pr } \right) P{r}'} \nonumber \\&+\sum _{k_2 } {\left( {\alpha -\lambda _{k_2 } Pr +\gamma _1 P{r}'} \right) Pr } -Y \end{aligned}$$
(20)

Therefore, we use the derivative of Equation (20) to investigate the effects of price elasticity on the profit of the supply chain in both channels. Equations (21) and (22) show the obtained results.

$$\begin{aligned}&\frac{dZ}{d{\lambda }'_{k_1 } }=-P{r}'^{2}\Rightarrow \left| {\frac{dZ}{d{\lambda }'_{k_1 } }} \right| =\left| {-P{r}'^{2}} \right| =P{r}'^{2} \end{aligned}$$
(21)
$$\begin{aligned}&\frac{dZ}{d\lambda _{k_2 } }=-Pr ^{2}\Rightarrow \left| {\frac{dZ}{d\lambda _{k_2 } }} \right| =\left| {-Pr ^{2}} \right| =Pr ^{2} \end{aligned}$$
(22)

Due to trend of companies to charge low prices for direct channels \((P{r}'<Pr )\) and based on Equations (21) and (22), it can be concluded that the effect of the price elasticity of direct channels on the profit of the supply chain is less than that one in indirect channels.

Conclusion

In this study, a capacitated single-objective single-product mathematical model is developed to deal with different transportation modes and GHG emissions in a dual-channel green supply chain network design. The proposed model considered network design decisions as strategic decisions and also not only most assumptions of the supply chain network design as tactical decisions, but some more realistic assumptions such as lost sale and its penalty, delivery lead time and pricing. Also in this study, determining different prices for channels and its effects on demand of each channel is considered. Therefore, by these assumptions more complexity is made and a mixed integer non-linear model is obtained. Therefore, this mathematical model is developed to maximize the total profit of the supply chain network design when pricing decisions with trade-off between economic and environmental issues are considered. Also, different transportation modes in both channels of the supply chain are employed, while each mode has its lead time and GHG emission. In this study GHG emissions of transportation and production activities are legally bounded. The proposed model is coded and solved by GAMS. Due to NP-hard nature of the proposed problem and long run time, an artificial immune system algorithm based on CLONALG is applied. The computational results shows those solutions of the solving procedure in comparison with solutions which are obtained by GAMS especially in large-size problems are very close and with an error less than 1 %. To investigate the efficiency and effectiveness of CLONALG, GA and MA are taken into accounts. The computational results show that CLONALG dominates the others. Due to the best of our knowledge, the presented study is one of the first researches modeled dual-channel green supply chain network design with regard to pricing decisions of both channels.

For future research, minimization of environmental damages such as GHG emissions in dual-channel network design can be considered as an objective function in a multi-objective model. Also, the concepts of uncertainty such as stochastic demands or fuzzy parameters can be considered as new areas to develop.