Research Article

Imperfect Reworking Process Consideration in Integrated Inventory Model under Permissible Delay in Payments

Algorithm 1

Step 1: set 𝑛 = 1 .
Step 2: determine the 𝑝 0 by solving (4.16).
Step 3: if there exists a 𝑝 1 where 𝑝 1 ≀ 𝑝 0 , and satisfies both the first-order condition as in (4.20) and
     the second-order condition as in (4.21), then we compute 𝐿 1 ( 𝑝 1 ) by (4.6) and
     E J T P 1 ( 𝑛 , 𝑝 1 , 𝐿 1 ( 𝑝 1 ) ) by (4.8). If not, we set E J T P 1 ( 𝑛 , 𝑝 1 , 𝐿 1 ( 𝑝 1 ) ) = 0 .
Step 4: if there exists a 𝑝 2 where 𝑝 2 β‰₯ 𝑝 0 , and satisfies both the first-order condition as in (4.22) and
     the second-order condition as in (4.23), then we compute 𝐿 2 ( 𝑝 2 ) by (4.11) and
     E J T P 2 ( 𝑛 , 𝑝 2 , 𝐿 2 ( 𝑝 2 ) ) by (4.13). If not, we set E J T P 2 ( 𝑛 , 𝑝 2 , 𝐿 2 ( 𝑝 2 ) ) = 0 .
Step 5: if E J T P 1 ( 𝑛 , 𝑝 1 , 𝐿 1 ( 𝑝 1 ) ) β‰₯ E J T P 2 ( 𝑛 , 𝑝 2 , 𝐿 2 ( 𝑝 2 ) ) . Set E J T P ( 𝑛 , 𝑝 [ 𝑛 ] , 𝐿 [ 𝑛 ] ) = E J T P 1 ( 𝑛 , 𝑝 1 , 𝐿 1 ( 𝑝 1 ) ) ,
     then ( 𝑝 [ 𝑛 ] , 𝐿 [ 𝑛 ] ) is an optimal solution for a given 𝑛 . If not, E J T P ( 𝑛 , 𝑝 [ 𝑛 ] , 𝐿 [ 𝑛 ] ) =
     E J T P 2 ( 𝑛 , 𝑝 2 , 𝐿 2 ( 𝑝 2 ) ) .
Step 6: set 𝑛 = 𝑛 + 1 , repeat steps 2–5 to obtain E J T P ( 𝑛 , 𝑝 [ 𝑛 ] , 𝐿 [ 𝑛 ] ) .
Step 7: if E J T P ( 𝑛 , 𝑝 [ 𝑛 ] , 𝐿 [ 𝑛 ] ) β‰₯ E J T P ( 𝑛 βˆ’ 1 , 𝑝 [ 𝑛 βˆ’ 1 ] , 𝐿 [ 𝑛 βˆ’ 1 ] ) , go to step 6. If not, go to step 8
     and stop.
Step 8: set E J T P ( 𝑛 βˆ— , 𝑝 βˆ— , 𝐿 βˆ— ) = E J T P ( 𝑛 βˆ’ 1 , 𝑝 [ 𝑛 βˆ’ 1 ] , 𝐿 [ 𝑛 βˆ’ 1 ] ) , so ( 𝑛 βˆ— , 𝑝 βˆ— , 𝐿 βˆ— ) is an optimal solution.
     Consequently, the buyer’s optimal order quantity per order is 𝑄 βˆ— = 𝐷 ( 𝑝 βˆ— ) 𝐿 βˆ— .