Java Implementation of Bees Algorithm. It contains a BeesAlgoImpl class can extended to override the function "function" which is the objective function to be minimized.

For eg,

public class MyImpl extends BeesAlgoImpl {
public double function(double[] x) {
//Min sigma Xi^2 or Max -sigma Xi^2
double result = 0;
for (int j = 0; j < var; j++) { //var = no of variables -
public field in BeesAlgoImpl class
result = result + (x[j]-1) * (x[j]-1);
}
return (-result);
}

//constructor
public MyImpl(){
//super( .... ) - set the no of variables, parameters n, m, e,
ngh, nep, nsp (look into the bees algo paper), no of iterations,
uperlimit and lower limit of search, integerize - search only integers
true or false
}

public static void main(String[] args){
MyImpl a = new MyImpl();
a.run();
int i=0;
a.optimalPoint[i]; //Xi of the optimal point
}
}

Project Activity

See All Activity >

Follow Bees Algorithm Implementation

Bees Algorithm Implementation Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Bees Algorithm Implementation!

Additional Project Details

Registered

2010-05-28