www.pudn.com > GA_Toolbar.rar > MAXGENTE.M, change:1997-04-07,size:362b


function [done] = maxGenTerm(ops,bPop,endPop) 
% function [done] = maxGenTerm(ops,bPop,endPop) 
% ops    - a vector of options [current_gen maximum_generation] 
% bPop   - a matrix of best solutions [generation_found solution_string] 
% endPop - the current generation of solutions 
currentGen = ops(1); 
maxGen     = ops(2); 
done       = currentGen >= maxGen;