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


function [val,sol] = coranaMin(sol,options) 
% function [val,sol] = coranaMin(sol,options) 
% Function to minimize the Corana function. 
% val - the value of the Corana function at point sol 
% sol - the location to evaluate the Corana function 
 
numVar=size(sol,2)-1; 
val = coranaEval(sol(1:numVar)); 
val = -val;