Research Article

Neutrosophic Cost Pattern of Inventory System with Novel Demand Incorporating Deterioration and Discount on Defective Items Using Particle Swarm Algorithm

Algorithm 1

Proposed PSO algorithm for the inventory model.
(1)Read: Swarm Population (SwarmP), Maximum Iteration (MaxI), particle(i).Velocity , particle(i).Position , particle(i).Best.Position , Global Best.Position , particle(i).Cost , particle(i).Best.Cost , Global Best.Cost ,
(2)Set the objective function:
(a); (Optimum for ),
(b); (Optimum for ).
(3)Set the parameters of PSO for Inventory system:
(a), , , , .
(b) Set coefficient of inertia, ; the damping ratio of inertial coefficient , , and .
(c) Set inventory parameters as .
(4)Define the structure of void particles:
(a) Set , , , , and .
(b) Create vector of void particles of size equal to SwarmP.
(c) Set initial  =  .
(5)Initialize the population member: For to SwarmP initiate and .
(6)Estimate and evaluate:
(a) Set , find , and .
(b) then .
(c).
(7)Optimize and update for every iteration:
(a) For to MaxI, and for to SwarmP update the velocity and position.
(b).
(c).
(d) If , then set ; .
(e) If , then set ;
(8)Set up the global best cost:
(a).
(b) Set and continue the iteration by going back to 6.
(9)Stop