Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CEC 2010 F1 gives negative value #152

Open
Md-Ashraful-Pramanik opened this issue Jan 13, 2024 · 0 comments
Open

CEC 2010 F1 gives negative value #152

Md-Ashraful-Pramanik opened this issue Jan 13, 2024 · 0 comments

Comments

@Md-Ashraful-Pramanik
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant