|
Algorithm 1 The PSO-MCC-SCBLS Algorithm for Truck-Scale Weighing |
-
1:
Data preprocessing.
-
2:
for ; do.
-
3:
Randomly initialize the parameters and of the feature mapping layer;
-
4:
Calculate ;
-
5:
end
-
6:
Construct feature-node matrix ;
-
7:
for ; do
-
8:
Randomly initialize the parameters and of the enhancement-mapping layer
-
9:
Calculate ;
-
10:
end
-
11:
Construct enhancement-node matrix ;
-
12:
Concatenate node matrices to form ;
-
13:
Compute the adjacency matrix S and the Laplacian matrix L using Equations (15) and (16);
-
14:
for ; do
-
15:
Initialize output-weight matrix W and construct state matrix A based on Equations (3)–(6);
-
16:
Compute diagonal matrix according to Equation (21);
-
17:
Update output-weight matrix W according to Equation (22);
-
18:
if ;
-
19:
break
-
20:
end
-
21:
Output-weight matrix W;
-
22:
for ; do
-
23:
Evaluate fitness of each particle;
-
24:
Update personal best and global best positions;
-
25:
Update particle velocity and position using Equations (8) and (9);
-
26:
end
-
27:
Output the optimized structural parameters of SCBLS;
-
28:
Train the model using the optimal parameters;
-
29:
Output Y;
-
30:
return Y
|