Code covered by the BSD License  

Highlights from
Particle Swarm Optimization Toolbox

image thumbnail

Particle Swarm Optimization Toolbox

by

 

22 Apr 2005 (Updated )

With Trelea, Common, and Clerc types along with ...

[out]=f6(in)
% f6.m
% Schaffer's F6 function
% commonly used to test optimization/global minimization problems
%
% z = 0.5+ (sin^2(sqrt(x^2+y^2))-0.5)/((1+0.01*(x^2+y^2))^2)

function [out]=f6(in)
 x=in(:,1);
 y=in(:,2);
 num=sin(sqrt(x.^2+y.^2)).^2 - 0.5;
 den=(1.0+0.01*(x.^2+y.^2)).^2;

 out=0.5 +num./den;


Contact us