Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)
Chrom = initrp(Nind, VLUB);
INITialize an Real value Population This function creates a population of given size of random real values. Syntax: Chrom = initrp(Nind, VLUB); Input parameters: Nind - A scalar containing the number of individuals in the new population. VLUB - A matrix of size 2 by number of variables describing the boundaries of each variable. It has the following structure: [lower_bound; (vector with lower bound for each veriable) upper_bound] (vector with upper bound for each veriable) [lower_bound_variable_1 lower_bound_var_2 ... lower_bound_var_Nvar; upper_bound_variable_1 upper_bound_var_2 ... upper_bound_var_Nvar] example - each individuals consists of 4 variables: VLUB = [-100 -50 -30 -20; % lower bound 100 50 30 20] % upper bound Output parameter: Chrom - A matrix containing the random valued individuals of the new population of size Nind by number of variables. See also: initip, initbp, initpp, initpop
This function is called by | |
---|---|