Algorithm 2: PSO based RBF kernel SVM algorithm |
---|
Result: HCCI emission model:
training data set: splitting data set: training , cross-validation , and test Random hyperparameters: Run Quadratic Programming of equation (11) to calculate and Calculate support vector sets based on equation (13) Calculate model based on random hyperparameters using Equations (15) and (16) Set PSO options: , , , and ; whilei∈ or over ≥ do Calculate cost function: Run PSO algorithm to minimize and find hyperparameters Update hyperparameters: Run Quadratic Programming of equation (11) to calculate and Calculate support vector sets based on equation (23) Calculate model based on Updated hyperparameters using equations (25) and (26) end 1. Maximum number of iterations for optimization ( ), 2. Positive integer ( ), 3. Non- negative scalar: Iterations end when the relative change in cost function value over the last MaxStallIterations iterations is less than FunctionTolerance , 4. Number of particles in the swarm , 5. Relative change |