# Help me minimize my objective function using genetic algorithm in Matlab

Status
Not open for further replies.

#### krishnahari

##### Newbie level 1
hello,
i need to minimize my objective function using genetic algorithm. can anyone please help me to generate code using matlab for my objective function and minimize it using genetic algorithm

my objective function is,
F(α1, α2, . . . , αN )= (B1 − mi )^2 + B2^2+ B3^2+ ·· ·+ Bn^2

B1 = 1 − 2/π summation(i=1 to 5) (−1)^i [αi − (sin 2αi/2)]
Bn= 2/π summation [sin(n − 1)αi/(n − 1)− sin(n + 1)αi/(n + 1)

Status
Not open for further replies.