1 Introduction

The purpose of supply chain management is to link up the planning and production, distribution and storage, and sales and service activities of enterprises to form an integrated network system, so as to achieve the goal of saving cost and improving efficiency [1]. This complex network of multi-node, the complex supply-demand relationship between node members and the exchange of supply chain system and external environment, determines that the supply chain system is a complex system; supply chain management has the characteristics of complexity [2]. Therefore, from the perspective of complexity, we further reveal and grasp the inherent law of supply chain system optimization [3]. Over the past two decades, with the further development of modern information technology, the Internet of things (IOT) technology has been widely used in the field of supply chain [4]. The application of RFID and EPC technology in the field of supply chain has attracted more and more attention. The traceability design of agricultural products based on Internet of things technology is studied with emphasis, and the information sharing model of agricultural products supply chain based on RFID technology is proposed. Literature establishes a supply chain inventory management system based on the Internet of things and studies the application mechanism of information and data sharing in the inventory management of the Internet of things [5]. Literature studies the application of RFID and EPC technology in aquatic products supply chain traceability and develops an aquatic products supply chain traceability platform based on RFID technology. Literature [6] applies the Internet of things technology to the cold chain logistics of agricultural products and establishes a traceable and monitorable information management system. In the existing research of scholars, there are more researches on the application of Internet of things in inventory management and product traceability but less on the application of information sharing in the supply chain. Under the requirement of industrial information, the Internet of things provides a technical basis for the realization of information sharing in the supply chain. Therefore, it is of great significance to further study the information sharing mechanism of the supply chain under the IOT environment to improve the overall competitiveness of the supply chain [7].

The bullwhip effect in supply chain is studied by system dynamics modeling. They believe that the bullwhip effect will be caused by any product forecasting method as long as the order demand of members at all levels in the supply chain is up-to-demand strategy. On this basis, combining with spreadsheet simulation and control engineering methods, two new control mechanisms are proposed, which are adjusting the feedback sequence of supply chain and smoothing forecast data. Through the study of the machinery tool processing industry, it is shown that the appropriate order strategy can effectively avoid the bullwhip effect to the upstream members of the demand amplification. The supply chain model of system dynamics is constructed by Inovai, who finds and explains the phenomenon of supply chain demand enlargement [8]. Literature chose the automotive steel industry as a relatively closed industry and proved that the relative independence of members at all levels of the supply chain is an important reason for the bullwhip effect. To achieve greater efficiency and economic benefits, it is necessary for each member of the supply chain to pay more attention to and cooperate extensively [9].

In this paper, the information sharing platform based on the Internet of things is constructed to improve the efficiency of supply chain, and the flow chart based on the Internet of things of the school uniform is analyzed, integrated application of Internet of things technology in supply chain to analyze the detail of the system. By calculating Lyapunov Index, power spectrum, and correlation dimension, the bifurcation and chaos characteristics of supply chain under different production strategies are analyzed. At the same time, the periodicity and initial value sensitivity of chaos are used to explain the feasibility of manufacturer organizing flexible production and the causes of bullwhip effect in supply chain and corresponding prevention measures. And the experiment results show that bullwhip effect will occur in the chaotic supply chain system, which can be suppressed by short-term forecasting and accelerating the speed of demand information transmission [10].

2 The information sharing platform based on the internet of things

2.1 Platform framework based on IOT

Because the model introduces the technology of Internet of things (IOT) to identify and track the product information of supply chain in an all-round way, the author named the model the Inventory Management Model of Internet of things (IOT). The main idea of the model is to construct enterprise-level supply chain node enterprises by using RFID technology, wireless sensor technology, middle-ware technology, and so on. In the Internet of things (IOT) environment, the product information of each link of the supply chain operation is acquired immediately and then sent to the data center server through the Internet middle-ware [11]. Then, the product information is processed by the inventory management information platform, and the optimal inventory decision is made to ensure the lowest total inventory cost of the supply chain. The essence of the model is to transform supply chain inventory management into centralized inventory management with core enterprises as the core. Its basic connotation includes two aspects: one is to obtain product information by building enterprise-level Internet of things environment; the other is to develop inventory management information platform, using the obtained product information, to control and make decisions on supply chain inventory. At this point, the information sharing platform based on the Internet of things architecture has been formed, as shown in Fig. 1.

Fig. 1
figure 1

The information sharing platform based on the Internet of things architecture

The information sharing mode based on the Internet of things architecture can be divided into three levels: the perception layer, the network layer, and the application layer.

The perception layer is located at the bottom of the information sharing mode. Through the use of sensors, RFID, electronic tags, and GPS technology, staff collect and record the information of production, transportation, warehousing, and sales of the supply chain and transmit the information to the network layer information platform through the hardware interface. Perception layer is the basis of information sharing model. The data collected by perception layer is processed and processed through network layer to form effective information which is helpful for managers to make decisions [12].

The network layer is the core of the information sharing model. Its goal is to construct a visual information sharing platform for school uniform supply chain, providing users with the functions of permission query, information feedback, and security supervision. Information platform is based on the information obtained from the perception layer, through the information processing system; the original information is processed into the information needed by the chain enterprises. Information platform consists of information query, information release, data interaction, supervision and management, auxiliary decision-making, user management, and other modules [13].

The application layer is at the top of the information sharing mode and faces all the nodes in the school supply chain. The staff and consumers of each node in the chain can obtain the information they need by using simple receiving devices (such as mobile phones, personal computers, etc.). After processing by the information platform of the network layer, they can better meet the information needs of each node and consumers. Enterprises and consumers on the chain can obtain information through the application layer. And it also can make effective decisions for enterprises.

2.2 Integrated application of internet of things technology in supply chain

According to the problems in each link of the school uniform supply chain summarized above, we can use the Internet of things technology to integrate and improve the work of each link to improve the efficiency of each link of the supply chain.

2.2.1 Production link

In the manufacturing process, RFID technology is mainly used in the automatic operation of school uniform production line to realize the identification and monitoring of raw materials, parts, semi-finished products, and finished products and to reduce the cost of manual identification and error rate. According to the product information and production schedule of information sharing platform, managers can make timely decisions, carry out product scheduling, issue replenishment information, realize pipeline balance, and strengthen the control and tracking of product quality. The application of Internet of things in production is shown in Fig. 3.

2.2.2 Storage link

In logistics warehousing, RFID technology is mainly used to realize the automatic warehousing of uniforms and other operations. When the goods enter the distribution center, read all the electronic tags on the containers, determine the number of inbound and outbound, detect possible arrival errors, real-time monitoring of chemical products inventory status, and accurate inventory control. At the same time, EPC tagging system can effectively avoid the interaction among school uniform products, ensure the storage safety, and make rational use of storage space.

2.2.3 Distribution link

In the distribution link, RFID technology is mainly used for real-time tracking and control of school uniform products in transit and in the logistics center or transfer station to improve the efficiency and accuracy of clothing sorting and distribution, reducing unnecessary manual operation. The RFID receiving equipment installed at the checkpoint of the transportation line can automatically collect the data of the goods and vehicles with EPC tag and better accomplish the task of tracking the position of the vehicles and confirming the arrival of the goods, thus reducing the transportation time cost and realizing the effective tracking management of the whole course of the uniform.

2.2.4 Sales link

In the sales process, EPC tagging system can improve the inventory management of school uniform retailers; retailers can use EPC system for real-time monitoring and management of merchandise, timely discovery of out-of-stock information for replenishment. At the same time, it can monitor the classification of some timeliness strong school uniforms. According to the instant information provided by the electronic tag, we can understand the relevant information and the circulation process of commodities and control the circulation of commodities. Customers can conveniently query product information and purchase products through the Internet.

3 Methods

The object of system dynamics is a dynamic system, which can be used to study the changes of variables with time in the problem, and to study whether the variables in the model have causal feedback relationship. In the supply chain system, there are a large number of states which change with time series, such as inventory, delivery rate, and order rate. These variables will change with time due to the changes of various factors.

In this paper, we hope to use system dynamics to study the dynamic mechanism of closed-loop supply chain, describe the closed-loop supply chain with causality diagram and flow diagram of system dynamics, transform the supply chain system into the corresponding information system for simulation, and do a numerical simulation analysis through the proposed closed-loop supply chain model.

The theoretical framework of supply chain management is the basis of establishing system model and its optimization and control. The characteristics of supply chain include the following aspects: complexity, which is the characteristic of its own structure compared with that of a single enterprise; dynamics, which is the dynamic characteristics of supply chain system in supply, manufacturing, sales, logistics, capital flow, and information flow; facing user demand, user demand pull is supply the driving force of logistics, capital flow, and information flow in the chain. For convenience, a three-tier supply chain consisting of a consumer, a distributor, and a manufacturer is investigated, and the following assumptions are proposed based on the above characteristics:

3.1 Hypothesis 1

The sales volume of a product at the t + 1 period depends on the quantity of the product that the consumer owns or consumes at the t period, that is, the purchasing behavior of the potential consumer is driven by the psychology of the herd consumption. And with the increase of sales volume of this product, the product market saturation also increases, which restricts the further sales of this product. The following is a mathematical formula.

$$ {x}_{t+1}={ky}_t,\kern0.5em k={k}_1-{k}_2{y}_t $$
(1)

where xt + 1 is the demand quantity of consumers at the t + 1 period (xt + 1 < 0 can describe consumers’ rejection or disgust of products), yt is the number of consumers at the t period (it is also the number of manufacturers at the t period). k indicates the degree of impact of product ownership on potential consumption at the t period; k(k > 0) represents the market capacity of the product; k2 (0 < k2 < 1) indicates the saturation of the product market.

3.2 Hypothesis 2

There is a unit time delay in the transmission of consumer demand information from distributor to manufacturer, that is, the manufacturer processes consumer demand information at the t + 1 period, and the delay will cause information distortion. Because the decision-makers of each node in the supply chain often reprocess the demand information based on their interests, which leads to a certain degree of delay and distortion of demand information, this assumption is reasonable. The following is a mathematical formula:

$$ {y}_{t+1}={x}_t-{k}_3{x}_t $$
(2)

where yt + 1 represents the manufacturer’s production at the t + 1 period (yt + 1 < 0 reflects the manufacturer’s virtual production due to consumer’s aversion to the product). Because of the unit delay of information, it can only arrange production according to the consumption demand at the t period. k3 is the distorted degree of delay to demand information. k3 ≤ 0 indicates that the entire consumer demand for the manufacturer has been amplified; k3 ≥ 0 indicates that the consumer demand has been reduced.

Manufacturers’ production strategies mainly include make to stock (MTS) and build to order (BTO). MTS refers to the formulation of production plans and material procurement plans according to consumer demand and the needs of enterprise safety inventory and organizing production; BTO refers to the production of enterprises directly according to consumer demand orders, without considering the safety inventory situation. Combined with the above assumptions, two systems dynamics models of supply chain can be established as follows:

  1. 1.

    The supply chain model under MTS strategy:

$$ \left\{\begin{array}{l}{x}_{t+1}={k}_1{y}_t+{k}_2{y}_t^2\\ {}{y}_{t+1}=\left(1-{k}_3\right){x}_t+{k}_4{y}_t\end{array}\right. $$
(3)

where k4(0 < k4 < 1) is the product safety stock coefficient.

  1. 2.

    Supply chain model based on BTO strategy

$$ \left\{\begin{array}{l}{x}_{t+1}={k}_1{y}_t+{k}_2{y}_t^2\\ {}{y}_{t+1}=\left(1-{k}_3\right){x}_t\end{array}\right. $$
(4)

4 Experience

The Lyapunov exponent, power spectrum, and correlation dimension of the system are studied to reveal its dynamic properties.

4.1 Lyapunov index

Lyapunov exponent is an index to quantitatively describe the exponential divergence of adjacent orbits in phase space. If Lyapunov exponent is negative, it indicates that phase volume shrinks, motion is stable, and is insensitive to initial value; if Lyapunov exponent is zero, it corresponds to the critical state, that is, the stable boundary; if Lyapunov exponent is positive, it indicates adjacent orbits. Long-time behavior is very sensitive to initial values, and the motion is chaotic. There are many ways to calculate the Lyapunov exponent. In this paper, Gram-Schmidt orthogonalization algorithm is used in the paper, and the specific steps are as follows:

An autonomous system passes through the flow space of x0 to form a track x(t). If the initial condition is x0, and there is a deviation of △x0, from x0 +  △ x0 point to another orbit. And it forms another tangent space vector △x(x0, t), defining the deviation ω(x0, t) =  △ x(x0, t), and fixed small time interval τ is selected. The ωk ‐ 1(τ) is calculated according to the ωk ‐ 1(0); the trajectory is from the x((k − 1)τ) to x(). And the variable can be calculated as follows:

$$ {d}_k^{(j)}=\left|{\omega}_{k-1}^{(j)}\left(\tau \right)\right| $$
(5)
$$ {\omega}_k^{(j)}(0)=\frac{\omega_{k-1}^{(j)}\left(\tau \right)}{d_k^{(j)}} $$
(6)

In which, j = 0, 1, 2⋯n, and orthogonalization is processing.

$$ {\omega}_{k-1}^{(j)}\left(\tau \right)={\omega}_{k-1}^{(j)}\left(\tau \right)\hbox{-} \sum \limits_{i=1}^{j-1}\left\langle {\omega}_k^{(i)}(0),\right.\left.{\omega}_{k-1}^{(j)}\left(\tau \right)\right\rangle {\omega}_k^{(i)}(0) $$
(7)
$$ {d}_k^{(j)}=\left|{u}_{k-1}^{(j)}\left(\tau \right)\right| $$
(8)
$$ {\omega}_k^{(j)}(0)=\frac{u_{k-1}^{(j)}\left(\tau \right)}{d_k^{(j)}} $$
(9)

According to the relationship between higher order and first order, the Pth Lyapunov exponents can be obtained as follows:

$$ {\sigma}_p=\underset{m\to \infty }{\lim}\frac{1}{m\tau}\sum \limits_{i=1}^m\ln {d}_i^{(p)} $$
(10)

Formula (10) is the actual algorithm for calculating the Lyapunov exponent.

Under the above parameters, the Lyapunov exponent spectrum of the chaotic time series of the system (3) can be calculated by using the above algorithm. The Lyapunov exponent spectrum of the chaotic time series is 0.158115 and 0.078138, that is, the exponential spectrum of the perturbed coefficient is (+, +) type. Obviously, the Lyapunov exponent of the time series is always greater than zero over time, indicating that the system is chaotic. And the Lyapunov exponent of the system is shown in Figs. 2 and 3.

Fig. 2
figure 2

The Lyapunov exponent of the system

Fig. 3
figure 3

The power spectrum of the system

4.2 Power spectrum

Chaotic motion is characterized by non-periodicity and complexity, which is different from the discrete characteristics of periodic motion or quasi-periodic motion. It is a continuous spectrum. The calculation method is the mean value of the square of the Fourier transformation square of the sample function as follows:

$$ S(jw)=\underset{T\to \infty }{\lim }{\left|\underset{0}{\overset{T}{\int }}x(t){e}^{- jwt} dt\right|}^2=\underset{T\to \infty }{\lim }{\left|{x}_{\tau }(jw)\right|}^2 $$
(11)

For the time series x0, x1xn (time increment is t), its Fourier transformation is in the form of as follows:

$$ X\left({jw}_m\right)=\triangle t\sum \limits_{k=0}^N{p}_k{x}_k{e}^{-{jkw}_m} $$
(12)
$$ {w}_m=2\pi \triangle tm/N,\kern0.5em m=0,1\cdots \left(N/2\right)-1 $$
(13)

pk is a time window, and X(jwm) can be obtained by using the fast Fourier transformation (FFT) algorithm.

Figure 4 is the power spectrum of the system (3) under the above parameters. It can be seen that the peak value of the power spectrum is continuous, so the system is a typical chaotic state.

Fig. 4
figure 4

The correlation dimension of the system

4.3 Fractal

Fractal is a very vivid illustration of the geometric characteristics of chaotic time series, that is, there are structural, morphological, and functional similarities between the local and the whole; the similarity does not change when the scale of the Ministry of Administration changes. The complexity and irregularity of fractal can be described quantitatively by correlation dimension, which can represent the characteristics of essential factors, the number of state variables, and the degree of influence on the system. It can be used to judge the chaos of supply chain and predict the future changes of production decisions.

Using the C-C method, the embedding dimension 15 and time delay T = 3 of the chaotic time series can be calculated. The correlation dimension of Grassberger-Procaccian design is calculated as follows:

Embedding the time series into the multi-dimensional phase space and connecting the phase points is the evolution trajectory of the system in the reconstructed phase space. The degree of correlation between the points can be measured by their Euclidean distance. The Euclidean distance formula between the two points is as follows:

$$ d\left({r}_i,{r}_j\right)=\sum \limits_{k=0}^{m-1}{\left({x}_{i+ kT}-{x}_{j+ kT}\right)}^{1/2} $$
(14)

Set a number r, and then check how many points have their distances d(ri, rj) < r, and use the correlation integral C(r) to represent the ratio of the logarithm of points whose distances are less than r to the logarithm of the total point Nm. And the C(r) can be expressed as follows:

$$ C(r)=\frac{1}{N_m\left({N}_m-1\right)}\sum \limits_{i,j=1,i\ne j}^{N_m}\theta \left(r-d\left({r}_i,{r}_j\right)\right) $$
(15)

In which, θ(x) is a step function.

$$ \theta (x)=\left\{\begin{array}{l}1\kern1.00em x>0\\ {}\begin{array}{ccc}0& & x<0\end{array}\end{array}\right. $$
(16)

Properly selecting of interval r, C(r) and r have the following relations:

$$ C(r)={r}^D $$
(17)

D is the relative dimension of the time series; it is obtained as follows:

$$ D=\underset{r\to 0}{\lim}\frac{\ln C(r)}{\ln r} $$
(18)

In practical calculation, if one interval of R is properly selected, multiple values of C(r) can be obtained. The correlation dimension D can be obtained from the slope of the regression line of lnC(r) and lnr, and then, the embedding dimension m can be increased. When D becomes stable gradually with the increase of m, the correlation dimension of the time series can be obtained.

By using the method of calculating the correlation dimension of chaotic time series, the relationship between the variables of system (3) and the lnC(r) − ln r is shown in Fig. 4, when the embedding dimension is 5, 6, and 7 (m = 1), and the correlation dimension is 1. 79664; it shows that the system is a complicated chaotic system.

From the above analysis, it can be seen that the system (3) shows the fractal and chaotic characteristics of the very complex nonlinear system in a certain range of parameters. The evolution of the manufacturer’s production strategy is shown in Fig. 5 when the parameter k1 changes continuously in [0, 1.8], and the market demand capacity varies in a certain range, but other parameters remain unchanged; there are obvious single cycle, bifurcation, and chaos phenomena in the system.

Fig. 5
figure 5

The evolution chart of quantity decision making with k1 changes

This is because, with the increasing demand of consumers, manufacturers can initially satisfy demand through recruitment, purchase of raw materials and equipment, and the production of enterprises can maintain a balanced one-cycle state of demand and distribution; but after all, the capital of enterprises is limited, and when supply can not meet demand, the two bifurcate. The deviation is bigger and bigger, and finally leads to chaos. At this time, the production of enterprises is still not random; it changes in the scope of the “attractor” of consumer demand. If enterprises make their production capacity and market demand match again through restructuring, mergers and acquisitions, and other self-organizing methods, they can jump out of the chaos and recur periodic phenomena, and continuously evolution, but ultimately towards chaos.

Chaos is a pseudo-random process of seemingly irregular motion, which can be predicted in the short term and unpredictable in the long term. The process of chaos changes with the exchange of material, energy, and information between the system and the external environment. The behavior of the nonlinear system can be changed from simple to complex. This process is usually carried out in a certain way. For example, with the occurrence of period-doubling bifurcation, the self-similarity in the supply chain appears, and the system trend. Chaos can predict the future of the system from the nature of system changes.

Chaos will have adverse effects on the operation of the supply chain, such as bullwhip effect. Bullwhip effect refers to the enlargement of market demand in supply chain and the instability of the system resulting from it, which makes the inventory and inventory cost increase, the inventory redundancy of distributors, and the excessive production of manufacturers in supply chain, resulting in the confusion of product inventory and production strategy in supply chain. This is mainly due to the fact that the manufacturer’s production decision-making is sensitive to the initial value of consumer demand under chaotic conditions, and any small change in consumer demand will make the forecast results vary greatly over time, as shown in Table 1. At the same time, demand information produces time delay and content twist in the process of progressive upload. The result of a slight change in the parameters is very different, as shown in Table 2. All these result in the inconsistency between the number of manufacturers and the actual market demand, that is, bullwhip effect.

Table 1 The difference of production decision-making caused by the change of consumption demand x1
Table 2 The difference of production decision-making caused by the change of k3

5 Results

In practice, people not only need to use the chaotic characteristics of the supply chain to organize flexible production but also to prevent the harm of chaos. Because the supply chain system is not always chaotic, whether chaos occurs and whether it occurs sooner or later is conditional, so it is feasible to control chaos according to different needs. By adjusting the parameters or initial values of the system, on the one hand, bifurcation can be stimulated, and chaos can be induced to implement flexible production; on the other hand, bifurcation can be restrained, and chaos can be eliminated or delayed, and chaos control can be finally realized.

When the total market demand increases to 200, the retailer’s sales will increase to 200, and the retailer and distributor’s replenishment demand will also increase to 200, so the manufacturer’s expected and actual output will eventually increase to 200. Since the expected inventory levels of retailers, distributors, and manufacturers are all 400, the inventory levels of retailers, distributors, and manufacturers should eventually stabilize to 400.

Figure 6 is the result of MTS simulation, and Fig. 7 shows the test result of the system dynamics model of the MTS production strategy when the demand increases to 100. It can be seen from Figs. 6 and 7 that the order quantity and inventory changes of retailers and distributors are completely in line with the actual situation.

Fig. 6
figure 6

The simulation results of MTS

Fig. 7
figure 7

Test results of the system dynamics model when the requirement is increased to 200

6 Discussion

Facing the rapid development of modern information technology and the increasingly complex competition trend, information sharing in supply chain enterprises is the necessary guarantee for enterprises to provide high-quality, high-satisfaction products and services in time. By introducing the characteristics of school uniform products and the problems existing in the supply chain of school uniform products, and the emerging Internet of things technology framework, this paper applies the Internet of things technology to the supply chain of school uniform industry and establishes an efficient and visual school uniform product supply chain system based on the Internet of things technology. And based on the characteristics of complexity, dynamics, user-oriented, and node-member crossover of supply chain system, this paper establishes a supply chain model under MTS and BTO strategy. By calculating Lyapunov exponent, power spectrum, and correlation dimension, the bifurcation and chaos of the supply chain system under certain conditions are analyzed. The following conclusions can be drawn: (1) Bullwhip effect will occur in the chaotic supply chain system, which can be suppressed by short-term forecasting and accelerating the speed of demand information transmission; (2) Chaos is also beneficial to enterprises, such as making low-cost flexible production possible, so there is a high theory and practical research value.