1 Introduction and motivation

The global food security is a major policy concern due to the rising worldwide population, climate change and increasing food demand (Ge et al. 2018; Kaur 2019; Maiyar and Thakkar 2019; Nicholson et al. 2011). The third of total arable land on this planet has lost in the past 40 years (Milman 2015) and only 12 percent land across the globe is cultivated (Sheane et al. 2018). Additionally, the post-harvest loss is one of the vital factors which greatly impacts global food security (An and Ouyang 2016; Kiil et al. 2018; Krishnan et al. 2020; Raut et al. 2018). The annual loss of around 1.3 billion tons closely one-third of the total food produced in the world raises the pressure on global food security (Gustavsson et al. 2011). The monetary value of the food loss and waste in the developed and developing nations are nearly USD 680 billion and 310 billion respectively (FAO 2011). Close to 40% of the food gets wasted in the developing countries during postharvest stage whereas the same amount lost at retail and consumer levels in industrialised nations (FAO 2011). These losses also contribute significantly to squandering of resources like land, water, labour, energy and money and unnecessarily produces the greenhouse gas emissions which causes the global warming and climate change (FAO 2011; Göbel et al. 2015). Today, more than 820 million individuals corresponding to one in every nine people on the globe still suffering from the hunger which creates the challenge for achieving the zero hunger sustainable goal by 2030 (FAO 2019).

The post-harvest losses are not curbed in India despite the increment of production of food grains in the past few decades and still, these are approximately 10% (Sharon et al. 2014). The storage loss of nearly 6% contributes a significant proportion of post-harvest losses because of inadequate and outdated storage facilities (Sharon et al. 2014). In India, annually about 12 to 16 million tons of food grain is wasted with an approximate worth of USD 4 billion. This food grain amount is enough to feed approximately 10% of India’s population and means that appropriate storage and reduction of storage losses can help to meet the 10% of India’s food demand (Alagusundaram 2016). The improper handling and traditional storage practices, poor collaboration among supply chain members, inadequate storage facilities and lack of transportation infrastructure, as well as extremely ineffective supply chain, are the paramount reasons of colossal food grain losses (Sachan et al. 2005; Parwez 2014; Maiyar and Thakkar 2017; Mogale et al. 2017; Chauhan et al. 2019). Transportation activities come under one of the main sources of air pollution which creates detrimental impacts on public health and the environment (Wang et al. 2011; Song et al. 2014). India placed at third position after China and the USA in the worldwide GHG emission ranking (Timperley 2019). In this country, roughly 5 million tons of crops get spoiled because of toxic gases (Ramanathan et al. 2014). Thus, the environmental aspect needs to be considered while tackling food supply chain issues (Mohammed and Wang 2017; Banasik et al. 2017; Yakavenka et al. 2019; Mogale et al. 2019a).

The current research work is allied with food grain supply chain activities in India. The major activities such as procurement, storage, movement, and distribution are depicted in Fig. 1. Initially, procurement of food grains mainly wheat and rice is carried out and then the procured food grain is stored into various central warehouses and base silos located in producing (surplus) states. Next, food grain is transferred to the various deficit (consuming) states because of the discrepancy between the supply and demand (Mogale et al. 2019b; Maiyar and Thakkar 2017). Finally, the deficit states distribute the food grains at the subsidized rates to the beneficiaries (CAG 2013). According to CAG 2013 report, central pool stock of food grain has steadily increased to 67 Million Metric Ton (MMT) in 2012 from 21 MMT in 2007, while the capacity has increased by a merely 0.4 MMT during the same span of time (Mogale et al. 2018a; 2019a). A significant discrepancy between the central pool stock and total storage capacity can be witnessed from the aforementioned statistics, hence, storage capacity must be increased to cope with growing procurement. To fill the gap of storage capacity, policymakers in India commenced the establishment of capacitated silos in the major food grain surplus and deficit states. The silos constructed in producing and consuming states are called as base silo and field silo, respectively (Mogale et al. 2018a).

Fig. 1
figure 1

Schematic representation of food grain supply chain in India (Mogale et al. 2018a)

The rest of the article is structured as follows. Section 2 provides a literature review of related topics. Section 3 delineates the problem and mathematical model. Section 4 explicates details about the implemented algorithms. Section 5 analyses and discusses the several real-life problem instances and their computational results. Finally, Sect. 6 concludes the article with some future scope of the work.

2 Literature search

The problem addressed in this paper comes under the category of the supply chain network design (SCND). A large body of literature in the domain of SCND problems is available. Thus, a review of existing relevant literature focusing on integrated SCND models, post-harvest loss minimization, sustainability, risk management, computational tools, and review articles in the context of the food supply chain are discussed in this section.

2.1 Models for SCND problems

Hosseini-Motlagh et al. (2019), Naderi et al. (2019) and Gholamian and Taghanzadeh (2017) proposed mathematical models for wheat SCND problem in Iran. Further, the realistic case of wheat logistics planning problem concentrating on inventory transportation issues in Iran was solved by Asgari et al. (2013). The bimodal transportation (Etemadnia et al. 2015) and intermodal transportation (Maiyar and Thakkar 2019) from surplus to deficit regions were integrated while dealing with the hub location problem of the food supply chain. Ge et al. (2015) developed the optimization and simulation models for the Canadian grain industry to minimize the operational cost of the wheat supply chain. However, food grain losses, risk penalty cost and fleet management are absent in the aforementioned studies. Moreover, mathematical models for the SCND of edible vegetable oils producer (Paksoy et al. 2012), food bank (Orgut et al. 2017), food aid distribution (Rancourt et al. 2015) and fresh produce facilities (Ge et al. 2018) were proposed. Interested readers are recommended to refer the review articles of Soto-Silva et al. (2016), Arabani and Farahani (2012), Farahani et al. (2010), Melo et al. (2009), ReVelle and Eiselt (2005), Akkerman et al. (2010), Zhu et al. (2018) and Eskandarpour et al. (2015) for more information on SCND problems.

2.2 Post-harvest losses and risk management in food supply chains

Nourbakhsh et al. (2016) and An and Ouyang (2016) considered the post-harvest losses while formulating the optimization model for grain supply chain problem. Mishra and Singh (2018) presented the framework for waste minimization in the beef supply chain using twitter data. A location model was introduced for perishable food facilities considering losses from variations in temperature and relative humidity (Orjuela-Castro et al. 2017). A multi-objective mathematical model considering the economic and environmental aspect was formulated by Banasik et al. (2017) to evaluate alternate production options for waste management in the food supply chain. Dora et al. (2019) identified the food loss hotspots in Belgian food processing industry. Sustainability aspect was integrated into the different models of food supply chain using single or multi-objective approaches by several authors in their studies (Allaoui et al. 2018; Validi et al. 2014; Soysal et al. 2014; Govindan et al. 2014; Maiyar and Thakkar 2019; Mogale et al. 2019a; and Validi et al. 2018).

Few researchers investigated the various risks involved in the food supply chains. A mathematical model for routing-location of hazardous materials was developed to optimize the cost and risk involved in supply chain (Ardjmand et al. 2016). Further, Diabat et al. (2012) identified the product/service, demand, supply, information management and macro-level risk and proposed relevant risk mitigation strategies. The individual level and supply chain risks in agri-food supply chains were discussed by Leat and Revoredo-Giha (2013). Additionally, Wang et al. (2012) and Vlajic et al. (2012) proposed an aggregative food safety risk assessment model and framework for robust food supply chains respectively.

2.3 Research gaps and contributions

The comparison of the key relevant papers from the literature with the current study is depicted in Table 1. It can be noticed from this table that fewer scholars simultaneously considered several members, periods and modes in their studies (Gholamian and Taghanzadeh 2017; Allaoui et al. 2018; Mogale et al. 2018a; 2019a). Facility location cost and transport cost were commonly considered in the objective function of the formulated models (Etemadnia et al. 2015; Mogale et al. 2018a; Maiyar and Thakkar 2019). However, inventory cost, transit and storage loss cost, emission and risk penalty cost appeared in meagre papers. Furthermore, location-allocation and product flow decisions are frequently observed in numerous papers, but the capacity level, fleet management and food loss quantity are hardly found in the existing studies (Orjuela-Castro et al. 2017; Boonmee and Sethanan 2016; Mogale et al. 2019a). To bridge the aforementioned research gap, firstly a multi-period single objective mathematical model is developed for a green food grain SCND problem. The model seeks to minimize the overall food grain supply chain network cost comprising of fixed cost of silo establishment, transportation, emission, inventory holding and risk penalty cost, cost of transit and storage loss of food grain. Secondly, various aspects like transit and storage loss of food grain, carbon emission and risk penalty are concurrently included in the model. Many real-life constraints pertaining to food grain supply chain are taken into consideration while formulating the model. Thirdly, a mathematical model is solved using a variant of the Particle Swarm Optimization (PSO) algorithm and original PSO due to the complex and highly constrained nature of the underline problem. The results obtained using the proposed algorithms are compared with the optimal solutions of the Cplex solver through different real-world instances. Finally, sensitivity analysis is performed to visualize the responsiveness of the formulated model and solution approach.

Table 1 Comparison of current study with the literature

3 Problem overview and model formulation

It is observed from the statistics mentioned in the introduction section that there is a colossal shortage of storage capacity against the central food grain stock. To fulfil this gap, management authorities in India commenced establishing modern capacitated silos in major producing and consuming states across the country. This problem is an SCND problem comprising of five echelons, i.e. procurement centres, base and field silos, regional warehouses and destination warehouses. The strategic decision of silo location requires a large amount of capital investment for establishment (Mogale et al. 2018a). The formulated model helps in strategic and tactical decisions of food grain supply chain. The model simultaneously determines the number of silos established, shipment and storage quantity, transit and storage loss quantity and number of mixed capacitated vehicles utilized. Further, various constraints like food grain availability, demand satisfaction, inventory flow balance, multi-sourcing and distribution strategy, storage capacity constraint, vehicle capacity constraint and food grain loss calculation constraint are incorporated in the developed model.

The assumptions considered while formulating the mathematical model are described here. The notations of the model comprising of indices, parameters and decision variables are defined in “Appendix 1” due to space constraint.

Assumptions

  1. 1.

    Potential locations for the establishment of silos are known and fixed.

  2. 2.

    The procurement quantity of food grain, demand of destination warehouses and capacity of regional warehouses are specific and deterministic.

  3. 3.

    Three mixed capacitated vehicles with restricted accessibility are considered for food grain movement.

  4. 4.

    Initial inventory at the silos and regional warehouses is considered zero.

  5. 5.

    Full truckload scenario is considered.

Objective function

The objective function of the model is to minimize the overall food grain supply chain cost which comprises the following terms.

Base and field silo establishment and establishment risk penalty cost

$$ \sum\limits_{b,h} {\left( {F_{b}^{h} + \varepsilon_{b}^{h} rc} \right)X_{b}^{h} } + \sum\limits_{f,j} {\left( {F_{f}^{j} + \varepsilon_{f}^{j} rc} \right)} Y_{f}^{j} . $$
(1.1)

Transportation, food grain transit loss and transportation risk penalty costs from procurement centre to base silo.

$$ \sum\limits_{p,b,t} {\left[ {\left( {tc_{pb} dis_{pb} U_{pb}^{t} } \right) + \left( {lcTl_{pb}^{t} } \right) + \left( {g_{pb} rcY_{pb}^{t} } \right)} \right]} $$
(1.2)

Transportation, food grain transit loss and transportation risk penalty costs from base to field silo.

$$ \sum\limits_{b,f,t} {\left[ {\left( {tc_{bf} dis_{bf} U_{bf}^{t} } \right) + \left( {lcTl_{bf}^{t} } \right) + \left( {g_{bf} rcY_{bf}^{t} } \right)} \right]} $$
(1.3)

Transportation, food grain transit loss and transportation risk penalty costs from field silo to regional warehouse.

$$ \sum\limits_{f,r,t} {\left[ {\left( {tc_{fr} dis_{fr} U_{fr}^{t} } \right) + \left( {lcTl_{fr}^{t} } \right) + \left( {g_{fr} rcY_{fr}^{t} } \right)} \right]} $$
(1.4)

Transportation, food grain transit loss and transportation risk penalty costs from regional warehouse to destination warehouse.

$$ \sum\limits_{r,d,t} {\left[ {\left( {tc_{rd} dis_{rd} U_{rd}^{t} } \right) + \left( {lcTl_{rd}^{t} } \right) + \left( {g_{rd} rcY_{rd}^{t} } \right)} \right]} $$
(1.5)

Inventory and food grain storage loss cost at base silo, field silo and regional warehouse.

$$ \sum\limits_{b,t} {\left[ {\left( {ih_{b} IN_{b}^{t} } \right) + \left( {lcSl_{b}^{t} } \right)} \right]} + \sum\limits_{f,t} {\left[ {\left( {ih_{f} IN_{f}^{t} } \right) + \left( {lcSl_{f}^{t} } \right)} \right]} + \sum\limits_{r,t} {\left[ {\left( {ih_{r} IN_{r}^{t} } \right) + \left( {lcSl_{r}^{t} } \right)} \right]} $$
(1.6)

Cost of CO2 emission

$$ \left[ {\sum\limits_{{p,b,n_{1} ,t}} {e_{pb}^{{n_{1} }} } dis_{pb} V_{pb}^{{n_{1} t}} + \sum\limits_{{b,f,n_{2} ,t}} {e_{bf}^{{n_{2} }} } dis_{bf} V_{bf}^{{n_{2} t}} + \sum\limits_{{f,r,n_{3} ,t}} {e_{fr}^{{n_{3} }} } dis_{fr} V_{fr}^{{n_{3} t}} + \sum\limits_{{r,d,n_{4} ,t}} {e_{rd}^{{n_{4} }} } dis_{rd} V_{rd}^{{n_{4} t}} } \right]ce $$
(1.7)

Subject to constraints

$$ \sum\limits_{b} {U_{pb}^{t} } \le A_{p}^{t} \quad \forall p,\forall t $$
(2)

Constraint (2) depicts the supply restriction of procurement centre.

$$ U_{pb}^{t} \le Z \, Y_{pb}^{t} \quad \forall p,\forall b,\forall t $$
(3)

Constraint (3) illustrates that food grain quantity should be transferred to assigned base silos from procurement centres.

$$ Y_{pb}^{t} \le \sum\limits_{h} {X_{b}^{h} } \quad \forall p,\forall b,\forall t $$
(4)

Procurement centre can transfer the shipment quantity to only established base silos and this is indicated by Constraint (4).

$$ \sum\limits_{f} {U_{bf}^{t} } \le IN_{b}^{t} \quad \forall b,\forall t $$
(5)

Supply limit of base silo is depicted by Constraint (5).

$$ U_{bf}^{t} \le Z \, Y_{bf}^{t} \quad \forall b,\forall f,\forall t $$
(6)

Constraint (6) makes sure that base silos should transfer the food grain quantity to the assigned field silos.

$$ Y_{bf}^{t} \le \sum\limits_{h,j} {M_{bf}^{hj} } \quad \forall b,\forall f,\forall t $$
(7)
$$ \sum\limits_{h} {X_{b}^{h} } + \sum\limits_{j} {X_{f}^{j} } \ge 2\sum\limits_{h,j} {M_{bf}^{hj} } \quad \forall b,\forall f $$
(8)
$$ \sum\limits_{h} {X_{b}^{h} } + \sum\limits_{j} {X_{f}^{j} } - \sum\limits_{h,j} {M_{bf}^{hj} } \le 1\quad \forall b,\forall f $$
(9)

Base silo can transfer the food grain to the field silo only if both silos are established. A new binary variable \( M_{bf}^{hj} \) is inserted which becomes 1 if both \( X_{b}^{h} \) and \( X_{f}^{j} \) become 1 else remains 0. Hence, constraint set (7)–(9) fulfil the aforementioned condition.

$$ \sum\limits_{r} {U_{fr}^{t} } \le IN_{f}^{t} \quad \forall f,\forall t $$
(10)

Constraint (10) limits the flow of food grain from field silo to regional warehouses.

$$ U_{fr}^{t} \le Z \, Y_{fr}^{t} \quad \forall f,\forall r,\forall t $$
(11)

Constraint (11) ensures that field silo should transfer the shipment quantity to the assigned regional warehouses.

$$ Y_{fr}^{t} \le \sum\limits_{j} {X_{f}^{j} } \quad \forall f,\forall r,\forall t $$
(12)

Field silo is assigned to the regional warehouses if it is established and this is described by constraint (12).

$$ \sum\limits_{d} {U_{rd}^{t} } \le IN_{r}^{t} \quad \forall r,\forall t $$
(13)

Constraint (13) restricts the food grain quantity transferred from regional to destination warehouses.

$$ U_{rd}^{t} \le Z \, Y_{rd}^{t} \quad \forall r,\forall d,\forall t $$
(14)

Constraint (14) guarantee that regional warehouses transferred the food grain quantity to assigned destination warehouses.

$$ \sum\limits_{r} {U_{rd}^{t} } = L_{d}^{t} \quad \forall d,\forall t $$
(15)

Demand satisfaction constraint is represented by constraint (15).

$$ IN_{b}^{t - 1} + \sum\limits_{p} {U_{pb}^{t} } - \sum\limits_{f} {U_{bf}^{t} } - Sl_{b}^{t} = IN_{b}^{t} \quad \forall b,\forall t $$
(16)
$$ IN_{f}^{t - 1} + \sum\limits_{b} {U_{bf}^{t} } - \sum\limits_{r} {U_{fr}^{t} } - Sl_{f}^{t} = IN_{f}^{t} \quad \forall f,\forall t $$
(17)
$$ IN_{r}^{t - 1} + \sum\limits_{f} {U_{fr}^{t} } - \sum\limits_{d} {U_{rd}^{t} } - Sl_{r}^{t} = IN_{r}^{t} \quad \forall r,\forall t $$
(18)

The inventory balance equation for base silo, field silo and regional warehouse are represented by Constraints (16)–(18).

$$ IN_{b}^{t} \le \sum\limits_{h} {cb_{h} X_{b}^{h} } \quad \forall b,\forall t $$
(19)
$$ IN_{f}^{t} \le \sum\limits_{j} {cf_{j} X_{f}^{j} } \quad \forall f,\forall t $$
(20)
$$ IN_{r}^{t} \le cr_{r} \quad \forall r,\forall t $$
(21)

Constraint set (19)–(21) enforces the capacity constraints for base silo, field silo and regional warehouses.

$$ \sum\limits_{h} {X_{b}^{h} } \le 1\quad \forall b $$
(22)
$$ \sum\limits_{j} {X_{f}^{j} } \le 1\quad \forall f $$
(23)

Furthermore, constraint set (22), (23) makes sure that at each potential locations of base and field silo at most one type of base and field silos are to be established.

$$ U_{pb}^{t} \le \sum\limits_{{n_{1} }} {cv_{{n_{1} }} V_{pb}^{{n_{1} t}} } \quad \forall p,\forall b,\forall t $$
(24)
$$ U_{bf}^{t} \le \sum\limits_{{n_{2} }} {cv_{{n_{2} }} } V_{bf}^{{n_{2} t}} \quad \forall b,\forall f,\forall t $$
(25)
$$ U_{fr}^{t} \le \sum\limits_{{n_{3} }} {cv_{{n_{3} }} V_{fr}^{{n_{3} t}} } \quad \forall f,\forall r,\forall t $$
(26)
$$ U_{rd}^{t} \le \sum\limits_{{n_{4} }} {cv_{{n_{4} }} V_{rd}^{{n_{4} t}} } \quad \forall r,\forall d,\forall t $$
(27)

The vehicle capacity restrictions for each stage are defined by Constraint (24)–(27).

$$ \sum\limits_{b} {V_{pb}^{{n_{1} t}} \le nv_{{n_{1} p}}^{t} } \quad \forall p,\forall n_{1} ,\forall t $$
(28)
$$ \sum\limits_{f} {V_{bf}^{{n_{2} t}} \le nv_{{n_{2} b}}^{t} } \quad \forall b,\forall n_{2} ,\forall t $$
(29)
$$ \sum\limits_{r} {V_{fr}^{{n_{3} t}} \le nv_{{n_{3} f}}^{t} } \quad \forall f,\forall n_{3} ,\forall t $$
(30)
$$ \sum\limits_{d} {V_{rd}^{{n_{4} t}} \le nv_{{n_{4} r}}^{t} } \quad \forall r,\forall n_{4} ,\forall t $$
(31)

The four constraints (28)–(31) indicate that the number of utilized vehicles between given two echelons should be less than or equal to their availability.

$$ Tl_{pb}^{t} = lbU_{pb}^{t} \quad \forall p,\forall b,\forall t $$
(32)
$$ Tl_{bf}^{t} = lbU_{bf}^{t} \quad \forall b,\forall f,\forall t $$
(33)
$$ Tl_{fr}^{t} = lbU_{fr}^{t} \quad \forall f,\forall r,\forall t $$
(34)
$$ Tl_{rd}^{t} = ljU_{rd}^{t} \quad \forall r,\forall d,\forall t $$
(35)

The four constraints illustrated by Eqs. (32)–(35) are used to compute the fraction of the shipment quantity that lost during transit from procurement centre to base silo, base silo to field silo, field silo to regional warehouse and regional to destination warehouse.

$$ Sl_{b}^{t} = lsIN_{b}^{t} \quad \forall b,\forall t $$
(36)
$$ Sl_{f}^{t} = lsIN_{f}^{t} \quad \forall f,\forall t $$
(37)
$$ Sl_{r}^{t} = lwIN_{r}^{t} \quad \forall r,\forall t $$
(38)

Moreover, the fraction of inventory stock that lost at base silo, field silo and regional warehouses are calculated using the Constraints set (36)–(38).

$$ X_{b}^{h} ,X_{f}^{j} ,Y_{pb}^{t} ,Y_{bf}^{t} ,Y_{fr}^{t} ,Y_{rd}^{t} \in \left\{ {0,1} \right\}\quad \forall p,\forall b,\forall f,\forall r,\forall d,\forall h,\forall j,\forall t $$
(39)
$$ \begin{aligned} & U_{pb}^{t} ,U_{bf}^{t} ,U_{fr}^{t} ,U_{rd}^{t} ,Tl_{pb}^{t} ,Tl_{bf}^{t} ,Tl_{fr}^{t} ,Tl_{rd}^{t} , \\ & IN_{b}^{t} ,IN_{f}^{t} ,IN_{r}^{t} ,Sl_{b}^{t} ,Sl_{f}^{t} ,Sl_{r}^{t} \ge 0\quad \forall p,\forall b,\forall f,\forall r,\forall d,\forall t \\ \end{aligned} $$
(40)
$$ {\text{V}}_{pb}^{{n_{1} t}} ,V_{bf}^{{n_{2} t}} ,V_{fr}^{{n_{3} t}} ,V_{rd}^{{n_{4} t}} \in {\mathbb{Z}}^{ + } \quad \forall p,\forall b,\forall f,\forall r,\forall d,\forall n_{1} ,\forall n_{2} ,\forall n_{3} ,\forall t $$
(41)

Finally, Constraints set (39)–(41) represent the binary, non-negativity and integer restrictions, respectively.

The supply chain network configuration of the current problem depends on a number of echelons involved and time period. The formulated model has more variables, parameters and real-life constraints compared with the normal SCND problem. All these variables, parameters and constraints increase exponentially as the supply chain network configuration grows. Due to the inherent complexity and a large number of variables as well as constraints of the underline problem, many authors addressed these types of complex problems by means of heuristics and metaheuristics algorithms in extant literature (Khalifehzadeh et al. 2015; Hamadani et al. 2013; Eskandarpour et al. 2017; De et al. 2019; Zhu et al. 2009; Zhao and Dou 2011; Mogale et al. 2018a; b; Naderi et al. 2019).

4 Solution methods

In the domain of evolutionary and swarm intelligence algorithms, many researchers developed the various variant of existing algorithms to solve the complicated real-life problems. Metaheuristics are receiving more attention to solve complex agricultural supply chain problems (Aliano Filho et al. 2019; Florentino et al. 2020; Chan et al. 2020). Recently, several new variants of PSO algorithm were employed to deal with the SCND problem (Maiyar and Thakkar 2019; Soleimani and Kannan 2015; Yamada and Febri 2015). However, in most cases, premature convergence or the trapping in local optimal solution found as a major challenge of PSO and its variants. An extended version of PSO with combined global best, local best and neighbour best social structures called GLNPSO was developed by Pongchairerks and Kachitvichyanukul (2009) to improve the performance of traditional PSO. Several authors proved its dominance over the other evolutionary algorithms and PSO variants (Boonmee and Sethanan 2016; Chan et al. 2020; Wisittipanich and Hengmeechai 2017; Xu et al. 2011) However, food grain supply chain problems were not addressed through the GLNPSO. Thus, we have tackled the integrated multi-echelon and multi-period SCND problem using GLNPSO and compared the results with original PSO and Cplex. The exhaustive explanation of the proposed two algorithms is given in the next two subsections.

4.1 Particle swarm optimization

Particle swarm optimization is a population-based random search method based on social and cognitive principles (Eberhart and Kennedy 1995). It was stimulated by the behaviour of birds flocking or behaviour of fish schooling. In PSO, a particle is used to denote the solution of the specific problem and it has two main features: position and velocity. The swarm comprises of a population of particles which are intelligently initialized. These particles fly over the solution search space for finding out the global optima of an underline problem by updating generations. While attaining the better position, every particle tries to utilize the cognitive information of its experiences and the social information of the swarm. Initially, the fitness function value of each particle is determined by evaluating every particle in the population. Then, the personal best position (pbest) of the specific particle is updated if the objective function of the new position is better than the previous position. Similarly, the global best position (gbest) is updated if any new position with better objective function than the previous best objective function of the whole swarm is revealed by any particle in the group. Each particle reaches the new position from its current position with the help of updated velocity. The procedure will be stopped once the predefined termination criteria are satisfied. Then, the near-optimal solution of the best particle obtained until now is selected as the solution to the problem. The following Eqs. (42) and (43) are utilized to update the velocity and position of every particle respectively.

$$ \lambda_{ih} \left( {\tau + 1} \right) = w\left( \tau \right)\lambda_{ih} \left( \tau \right) + c_{p} r_{1} \left[ {\varepsilon_{ih}^{best} \left( \tau \right) - \theta_{ih} \left( \tau \right)} \right] + c_{g} r_{2} \left[ {\varepsilon_{gh}^{best} \left( \tau \right) - \theta_{ih} \left( \tau \right)} \right] $$
(42)
$$ \theta_{ih} \left( {\tau + 1} \right) = \theta_{ih} \left( \tau \right) + \lambda_{ih} \left( {\tau + 1} \right) $$
(43)

Here, \( \lambda_{ih} \left( \tau \right) \) and \( \theta_{ih} \left( \tau \right) \) denote the velocity and position of the ith particle at the hth dimension in the \( \tau {\text{th}} \) iteration. Next,\( w,c_{p} {\text{ and }}c_{g} \) are used to depict the inertia, cognitive and social coefficients respectively. The personal best positon and global best position of ith particle at the hth dimension in the \( \tau {\text{th}} \) iteration are represented by \( \varepsilon_{ih}^{best} \left( \tau \right) \) and \( \varepsilon_{gh}^{best} \left( \tau \right) \) respectively. The random numbers \( r_{1} {\text{ and }}r_{2} \) are uniformly distributed in the range of [0, 1].

4.2 GLNPSO

The GLNPSO algorithm is an extended variant of PSO proposed by Pongchairerks and Kachitvichyanukul (2009) to enhance the performance of traditional PSO. The multiple social learning terms are used in the velocity updating formula instead of single global knowledge and every particle communicate with several particular subsets of the swarm for performance improvement. To update the velocity, this algorithm uses the local best and near neighbour best social structure in addition to the personal best and global best position. This leads to diminish the issue of premature convergence, enhance the diversification of particles in the solution space and govern the particles through various features of swarm information. The best position found by any particle among the numerous adjacent particles is known as local best position (lbest). Therein, initially, the several sub-swarms with the population size of N are generated by dividing the whole swarm and the local best particle is chosen among these K neighbouring particles. Similarly, particles near neighbour best (nbest) position introduced by Veeramachaneni et al. (2003) is a social learning behaviour concept which is calculated using the fitness-distance-ratio (FDR). The near neighbour best position describes the interaction among the particles to obtain a better quality solution. The GLNPSO uses five terms including current velocity, personal best position, global best position, local best position and near neighbour best position while updating the particle velocity for the next iteration. The modified formula for updating the velocity and position is given as follows

$$ \begin{aligned} \lambda_{ih} \left( {\tau + 1} \right) & = w\left( \tau \right)\lambda_{ih} \left( \tau \right) + c_{p} r_{1} \left[ {\varepsilon_{ih}^{best} \left( \tau \right) - \theta_{ih} \left( \tau \right)} \right] + c_{g} r_{2} \left[ {\varepsilon_{gh}^{best} \left( \tau \right) - \theta_{ih} \left( \tau \right)} \right] \\ & \quad + \;c_{l} r_{3} \left[ {\varepsilon_{ih}^{lbest} \left( \tau \right) - \theta_{ih} \left( \tau \right)} \right] + c_{n} r_{4} \left[ {\varepsilon_{ih}^{nbest} \left( \tau \right) - \theta_{ih} \left( \tau \right)} \right] \\ \end{aligned} $$
(44)
$$ \theta_{ih} \left( {\tau + 1} \right) = \theta_{ih} \left( \tau \right) + \lambda_{ih} \left( {\tau + 1} \right) $$
(45)

where \( \varepsilon_{ih}^{lbest} \left( \tau \right){\text{ and }}\varepsilon_{ih}^{nbest} \left( \tau \right) \) illustrate the local and near neighbour best position of the ith particle at the hth dimension in the \( \tau {\text{th}} \) iteration. The acceleration constants of local and near neighbour best position are represented by \( c_{l} {\text{ and }}c_{n} \). The \( r_{3} {\text{ and }}r_{4} \) are uniformly distributed random numbers in the range of [0, 1]. The meaning of other parameters is similar to the Eqs. (42) and (43). Readers are requested to refer Pongchairerks and Kachitvichyanukul (2009) for exhaustive information and performance of GLNPSO over the existing variants of PSO. The proposed algorithm is correspondingly transformed to match the present scenario of food grain supply chain problem. The initialisation, iteration and termination stages are implemented step by step as shown in Fig. 2. In the initialization stage, initially, the various inputs like model parameters values, the objective function, constraints and tuned algorithmic control parameters are provided to the algorithm. During the iteration stage, each particle moves to another position using its velocity and determines the various potential solutions of the problem. Particles cognitive and social information encompassing of personal best, global best, local best and near neighbour best positions are updated. Next, the velocity and position of all the particles are updated using the Eqs. (44) and (45). Finally, the algorithm will be stopped when it reaches the predefined termination criterion.

Fig. 2
figure 2

Flow diagram for GLNPSO implementation

5 Computational experiments

5.1 Problem instances and data collection

The geographically widespread main wheat surplus and deficit states in India are considered for this research study. The essential data is gleaned from field survey and many reliable sources like CAG report 2013, PDS Portal of India, High-level committee report 2015 and FCI portal. Following the gleaned data, fifteen real-life problem instances are solved to validate the formulated model. The number of decision variables present in the problem instance decides the problem complexity and in this paper, the time period is the decisive factor which controls the total decision variables. Therefore, all the considered problem instances are categorized into the small scale, medium scale and large scale problems based on time period. As per this classification, the categorized problem sets are mentioned in Table 2. Also, the characteristics of each type of problem instance comprising of a total number of variables and constraints are described in the same table.

Table 2 Problem instances and associated variables and constraint

5.2 Parameter setting

The parameter tuning of the metaheuristic algorithm is one of the vital element in obtaining the better near-optimal solution of the problem (Mogale et al. 2018a, 2019a). The important parameters of GLNPSO include inertia weight (w), number of adjacent neighbours (k), acceleration constants for pbest, gbest, lbest and nbest positions, population size and maximum iterations. To verify all the promising combinations of all algorithmic control parameters is practically quite difficult. Hence, the suitable algorithmic parameters which provide the better results are carefully chosen based on the several preliminary computational experiments and analysis of the proposed algorithm. Following are the values of tuned control parameter utilized in proposed algorithms. Population size: 100, Maximum iteration = 200, Inertia weight: 0.9, Number of adjacent neighbours = 5, pbest, gbest, lbest and nbest = 1.

5.3 Solving the problem instances and analysing the results

Initially, we have attempted to solve all the problem instances using Cplex optimization solver and obtain the optimal solutions to the problems. However, Cplex solver optimally solved only small size problem instances and goes out of memory after taking the large computational time while resolving medium and large size problem instances. If Cplex exhibits the out of memory problem for particular instance then the best known objective function value (total cost) is taken into account. Hence, two competitive metaheuristic algorithms involving GLNPSO and PSO are utilized to solve these problem instances. The MATLAB R2018a is used for coding of GLNPSO and PSO algorithm and codes are executed on the platform of Intel Core i5 2.90 GHz processor with 8 GB RAM under Windows 8 environment. To obtain the values of decision variables, initially, all problem instances are solved employing GLNPSO with calibrated parameter values. Further, the PSO algorithm with the identical population size and iterations is implemented to validate the results obtained through GLNPSO. Due to the random search nature of the proposed algorithms, twenty runs of each instance are carried out and its results are shown in Table 3. This table depicts the computational results which include the minimum, average and maximum objective function value obtained after the twenty runs of each algorithm for each instance. The standard deviation and computational time required for each algorithm are also presented in this table. Convergence graphs of both algorithms for problem instance four is illustrated in Fig. 3.

Table 3 Computational results obtained through GLNPSO, PSO and CPLEX for all problem instances
Fig. 3
figure 3

Convergence graph of two algorithms

It is observed from Table 3 that the GLNPSO provides better results than traditional PSO for all considered problem instances with slightly higher computational time. The steady functioning of the suggested two algorithms in twenty runs is noticed through the standard deviation and is also given in Table 3. The marginally lower standard deviation of GLNPSO for all fifteen problem instances is easily perceived from this table. Thus, we can say that the solution obtained in each replication is a near-optimal solution to the underline problem. The better convergence behaviour of GLNPSO compared to traditional PSO is observed from Fig. 3. It means that GLNPSO requires less number of iterations for finding out the near-optimal solution. The computational results presented in this section demonstrate the better performance of GLNPSO over traditional PSO.

5.4 Sensitivity analysis

The officials working in the government agencies need to understand or envisage the trends or patterns in the solutions after the parameter variations. Hence, the effect of paramount model parameters encompassing a total number of destination warehouses, procurement centres and storage capacities of silos are evaluated on instance four by changing their values. This analysis will be helpful to many administrators of government agencies and other private bodies engaged in food grain supply chain activities whenever parameters obtain values with more or less than the current values.

5.4.1 The influence of number of destination warehouses, procurement centres and silo’s capacity

The number of destination warehouses (DW), procurement centres (PC) and silo’s capacity (SCAP) are varied in the range of [− 50%, + 50%] of their current values and its effect on the total supply chain cost is portrayed in Fig. 4. It can be realized from this figure that the total cost upsurges and diminishes after the escalation and reduction of destination warehouses and procurement centres, respectively. The total cost is reduced and augmented by 29.20% and 66.51% when the destination warehouses diminished and increased by 50% from its current value. Correspondingly, we obtained the graph with similar characteristics but with different numerical values after the variation of − 50% to + 50% from its current value of the number of procurement centres and it is depicted in the same figure. Due to the augmentation of silo’s capacity, the establishment cost increased and transportation along with emission cost decreased. However, the proportion increase in establishment costs is lower than the proportion decrease in transportation and emission costs. Thus, the total supply chain cost is decreased after the establishment of new silos which is shown in Fig. 4.

Fig. 4
figure 4

The sensitivity analysis results

6 Conclusion and scope of future research work

This paper has dealt with the green food grain SCND problem in India. The multi-period single objective mathematical model is formulated to minimize the total cost and optimizes supply chain design decisions. The mathematical model is solved using two population-based random search algorithms (GLNPSO and PSO) because of the high complexity of the model. The numerous realistic problem instances considering the key Indian wheat producing and consuming states are solved by means of proposed two algorithms. The obtained results are validated by comparing with exact solutions. The computational results obtained through the GLNPSO is better than the traditional PSO with slightly higher CPU time for all problem instances. The sensitivity analysis is carried out by considering three paramount parameters to observe the influence of them on the model solution. The managerial insights acquired through this research work would be valuable to several management authorities, state government agencies, railways and other administrative bodies connected with food grain supply chain for their management activities.

6.1 Contributions to theory and practice

This research study provides multiple insights to the theory and practice. Lack of integration and quantification of post-harvest losses and risks in the food supply chains is evident from extant literature (Hosseini-Motlagh et al. 2019; Maiyar and Thakkar 2019; Ge et al. 2018; Mogale et al. 2019a; Ketzenberg et al. 2015). Majority of the existing studies on food supply chains are carried out in the developed countries and the developing nations mainly focused on satisfying the need of rising population and ignored the environmental aspect (Shukla and Jharkharia 2013; Soto-Silva et al. 2016). The decision support models considering the finite planning horizon and SCND issues in emerging economies need to be formulated to improve the food supply chain performance (Esteso et al. 2018; Zhu et al. 2018). The finite number of mixed capacitated vehicles are included which overlooked in the work of Asgari et al. (2013). The limited number of studies conducted the comparative analysis of metaheuristic algorithms for food supply chain problems (Allaoui et al. 2018; Mohammed and Wang 2017; Esteso et al. 2018).

The various members in food grain supply chain such as government agencies, railways, and other private service providers can obtain beneficial and essential managerial insights from this research work. Policymakers can conduct the feasibility analysis of multiple possible candidate locations of silos through the formulated model to evade the significant loss of initial capital investment. A solution of the model provides the number of mixed capacitated vehicles utilized for shipment which can be helpful for transportation planning. The time-dependent movement plan of food grain stock can be used for scheduling of various mixed capacitated vehicles which reduces the demurrage charges associated with vehicles. The capacity of current warehouses can be suitably utilized through the well-organized inventory storage plan. This will be helpful to curb the post-harvest losses and speedy movement of food grain from production to consumption regions. To curb the excess inventory cost, management authorities can fix the operational and buffer stock norms following the proposed model. The parentage of food grain loss during bulk transportation and storage is less than the conventional method of gunny bags. Due to this little food grain losses, policymakers should transform all the conventional activities into the bulk grain operations. Moreover, rail mode of transportation can be used instead of road mode for reduction of transportation cost.

6.2 Limitations and future scope

Similar to other studies, the current research work has a few limitations which suggest the prospective areas for future examination. The stochastic procurement and demand can be incorporated into the current mathematical model to deal with uncertain scenarios. In the same way, the focus on backlog and shortages are the additional two possible ways of development of a future model. This study can be extended towards the triple bottom line with the inclusion of social costs, farmer’s growth, public health and employment creation. Additionally, the relaxation of capacity levels of silos will be another future path for the research. In this study, we assumed that the set of potential sites for the establishment of silos are well-known. Although, it may be possible that policymakers take support for finding out these set of potential sites. Multi-food grain commodities, perishability aspects and economics of scale in transportation are the further avenues to continue this research study. The maximization of food quality level and minimization of delivery time can be added in the present model to develop the multi-objective formulation.