Skip to main content
. 2021 Mar 24;23(4):387. doi: 10.3390/e23040387
Algorithm 1: Constrained parameter estimation algorithm (CPEA)
The inputs include the following: monitored cobalt ion concentration, monitored pH cCo2+,ij,j=1,,5,i=1,,nCo,j, pHl,l=1,,npH initial concentration vector c0j initial mixed potential E0 weight coefficient λpH Npop (the population size of the PSO algorithm), and MaxIters (the maximum number of iterations).
Output: Cobalt–hydrogen electrochemical competition model parameters p1
Steps:
  • (1)

    Use the PSO algorithm to solve Equation (59) for β1,α2,α3,z

  • (2)

    Calculate p1,2 according to Equation (58)

  • (3)

    Calculate p1 according to Equation (51)