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

empty_nests parameters #9

Open
Maryom opened this issue Nov 17, 2017 · 0 comments
Open

empty_nests parameters #9

Maryom opened this issue Nov 17, 2017 · 0 comments

Comments

@Maryom
Copy link

Maryom commented Nov 17, 2017

Hi,

Thanks for your repo.

According to the following lines, I'm wondering why you passed new_nest to empty_nests ??
I checked the original code in Matlab they passed nest

new_nest=get_cuckoos(nest,bestnest,lb,ub,n,dim)
           
# Evaluate new solutions and find best
fnew,best,nest,fitness=get_best_nest(nest,new_nest,fitness,n,dim,objf)
         
new_nest=empty_nests(new_nest,pa,n,dim) ;

Here is Matlab code:

% Generate new solutions (but keep the current best)
new_nest=get_cuckoos(nest,bestnest,Lb,Ub);   
[fnew,best,nest,fitness]=get_best_nest(nest,new_nest,fitness);

% Update the counter
N_iter=N_iter+n; 

% Discovery and randomization
new_nest=empty_nests(nest,Lb,Ub,pa) ;
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