FAQ Database Discussion Community


Initial Population of Genetic Algorithm [closed]

matlab,initialization,genetic-algorithm,population
How to generate the chromosome which is x=[1 0;0 1;1 0;1 0] or [1 0;1 0;0 1;1 0] like this. I need to generate the chromosomes only with the help of "x=1 when ith machine is in cell l, otherwise 0 when i= no of machine and l= no of...

Filling PHP array with “for” loop

php,arrays,for-loop,population
I'm trying to populate an array in PHP as following : <?php $maxPages = 20; for ($i = 0; $i <= $maxPages; $i++) { $url = 'http://127.0.0.1/?page='.$i; $targets = array( $url => array( CURLOPT_TIMEOUT => 10 ), ); } print_r($targets); ?> However it only seems to display the last populated...

Density Dependent Growth

r,model,population,growth
I'm trying to create a graph in R to show the carrying capacity of a population using an example given to me which is: install.packages("deSolve", dependencies = TRUE) clogistic <- function(times, y, parms){ n <- y[1] r <- parms[1] alpha <- parms [2] dN.dt <- r * n * (1...