You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the appendix of the reference paper, $PL$ is defined as follows: $$PL = \sum_{i=1}^{6}\sum_{j=1}^{6} x_{i}x_{j}B_{ij},$$
where, $\boldsymbol{x} = (x_1, \dots, x_6)$ is a decision vector, and $B$ is the matrix that describes the relation among the decision variables. This definition represents the square of a generalized norm in a distorted space by the matrix $B$, such as the Mahalanobis distance.
In contrast, $PL$ is calculated as the following code:
where the variable x is a matrix that stores the decision vector for each solution in each row.
Although the appendix seems to contain some errata, this code is clearly wrong. It seems strange to calculate the sum of the products with the first decision variable of the first six solutions (i.e., x(j)).
This code should be modified as follows:
PL = zeros(size(x,1),1);
for i =1: size(x,2)
for j =1: size(x,2)
PL =PL+ x(:,i) .* B(i,j) .* x(:,j);
endend
, or
PL = diag(x*B*x.')
I will send a PR with the former code. If there is no problem, please merge the PR.
The text was updated successfully, but these errors were encountered:
In the appendix of the reference paper,$PL$ is defined as follows:
$$PL = \sum_{i=1}^{6}\sum_{j=1}^{6} x_{i}x_{j}B_{ij},$$ $\boldsymbol{x} = (x_1, \dots, x_6)$ is a decision vector, and $B$ is the matrix that describes the relation among the decision variables. This definition represents the square of a generalized norm in a distorted space by the matrix $B$ , such as the Mahalanobis distance.
where,
In contrast,$PL$ is calculated as the following code:
PlatEMO/PlatEMO/Problems/Multi-objective optimization/RWMOPs/RWMOP50.m
Lines 44 to 49 in 3714c36
where the variable
x
is a matrix that stores the decision vector for each solution in each row.Although the appendix seems to contain some errata, this code is clearly wrong. It seems strange to calculate the sum of the products with the first decision variable of the first six solutions (i.e.,
x(j)
).This code should be modified as follows:
, or
I will send a PR with the former code. If there is no problem, please merge the PR.
The text was updated successfully, but these errors were encountered: