BIMK / PlatEMO

Evolutionary multi-objective optimization platform
1.5k stars 455 forks source link

CEC 2010 F1 gives negative value #152

Open Md-Ashraful-Pramanik opened 6 months ago

Md-Ashraful-Pramanik commented 6 months ago

CEC 2010 F1 gives negative objective value. In code I found -abs(...) in the implementation of the function.

function PopObj = CalObj(obj,PopDec)
    Z = PopDec - repmat(obj.O(1:size(PopDec,2)),size(PopDec,1),1);
    PopObj = -abs(sum((cos(Z).^4),2)-2*prod((cos(Z).^2),2))./sqrt(sum(repmat(1:size(Z,2),size(Z,1),1).*(Z.^2),2));
end