No BSD License  

Highlights from
Model Determination using Genetic Algorithm: Application to Vapour Pressure vs Temperature Equations

image thumbnail

Model Determination using Genetic Algorithm: Application to Vapour Pressure vs Temperature Equations

by

 

19 Aug 2007 (Updated )

Model determination using the genetic algorithm

binous2
function [X,FVAL,REASON,OUTPUT,POPULATION,SCORES] =  binous2
%%   This is an auto generated M file to do optimization with the Genetic Algorithm and
%    Direct Search Toolbox. Use GAOPTIMSET for default GA options structure.

global X

%%Fitness function
fitnessFunction = @objsimple;
%%Number of Variables
nvars = 3 ;
%Start with default options
options = gaoptimset;
%%Modify some parameters
options = gaoptimset(options,'PopInitRange' ,[5  1500   200 ; 10  1700   250 ]);
options = gaoptimset(options,'PopulationSize' ,10);
options = gaoptimset(options,'CrossoverFraction' ,0.5);
options = gaoptimset(options,'Generations' ,20);
options = gaoptimset(options,'StallGenLimit' ,Inf);
options = gaoptimset(options,'StallTimeLimit' ,Inf);
options = gaoptimset(options,'SelectionFcn' ,@selectionuniform);
options = gaoptimset(options,'MutationFcn' ,{ @mutationuniform 0.1 });
options = gaoptimset(options,'Display' ,'off');
% options = gaoptimset(options,'PlotFcns' ,{ @gaplotbestf });
%%Run GA
[X,FVAL,REASON,OUTPUT,POPULATION,SCORES] = ga(fitnessFunction,nvars,options);

Contact us