can i implement this function using artificial bee colony algorithm or any other except with genetic and pso(optimization)??????

1 visualizzazione (ultimi 30 giorni)
function y = simple_fitness(x)
y = 100*(x(1)^2 - x(2))^2 + (1 - x(1))^2;
lb<x(1)<ub % lb is lower bound and ub is upper bound
lb<x(2)<ub

Risposte (1)

Walter Roberson
Walter Roberson il 3 Giu 2015
Yes, you can do some simple mathematical analysis, such as I recently did and posted Here. The case corresponds to z1i = 100 and z2i = 1. There is a simple formula for the solution and the only thing to check is whether the solutions are within the bounds that have been set; if the solutions are not within the given bounds then the solution occurs at one of the two bounds.
The most complicated bit of all of it is determining the least number greater than lb but not equal to it, or the greatest number less than ub but not equal to it, as your constraints are strict inequalities .
  2 Commenti
karra
karra il 3 Giu 2015
sir thanks for ur response actually i can do it using genetic and particle swarm optimization i am facing difficulty while using artificial bee colony algorithm
Walter Roberson
Walter Roberson il 3 Giu 2015
Your Question asked about ABC "or any other", and I showed you any "any other".
If you have ABC code and you are getting syntax errors or runtime errors, you could post those and we can help figure out what the problem with your code is. We are not going to provide you with ABC code though, only help you fix ABC code you have written.

Accedi per commentare.

Categorie

Scopri di più su Food Sciences in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by