![]() |
AGA V1
Asexual Genetic Algorithm Version 1.0
|
Global functions and subroutines module. More...
Go to the source code of this file.
Modules | |
module | mpi_module |
module mpi_module | |
module | func |
module func | |
Functions/Subroutines | |
subroutine | func::deltabox (npar, niter, nind, deltaconst, reduc, arrmain, delta0, delta) |
Updates the size of the hyper-boxes. | |
real | func::med (stat, N) |
Computes the mean value. | |
real | func::sigm (stat, N) |
Computes the standard deviation. | |
subroutine | func::spawn (npar, gensize, nmig, ngaussdev, delta, qpar, qbounds, qfam) |
Asexual reproduction routine. | |
subroutine | func::criterion (npar, q, delta, beta, ncrit) |
Evaluates convergence criterion. | |
subroutine | func::randdata (ndata, yobs, ysigma) |
Generates new realization from experimental data. | |
real | func::gaussdev (idum) |
Generates pseudo-random (Gaussian distributtion) | |
subroutine | func::pickbest (npar, nind, nparents, arrmain, fitness, arrpars) |
Select the fittest individuals (nparents number of future parents) from the entire population. Based in the smallest value of the merit function (smaller number=fittest, e.g. ![]() | |
subroutine | indexx (n, arr, indx) |
indexing routine | |
subroutine | func::gaussian (ngaus, i, arrmain) |
Variables | |
integer, parameter | mpi_module::master = 0 |
rank of the master node (who is in charge of the I/O) | |
integer, parameter | mpi_module::rank = 0 |
rank of each processor (if MPI is disabled has a value of 0) | |
integer, parameter | mpi_module::np = 1 |
total number of processors (if MPI is disabled has a value of 1) | |
integer | mpi_module::err |
MPI error variable. | |
integer, dimension(mpi_status_size) | mpi_module::status |
MPI status variable. |
subroutine pickbest::indexx | ( | integer,intent(in) | n, |
real,dimension(n),intent(in) | arr, | ||
integer,dimension(n),intent(out) | indx | ||
) |
indexing routine
Modified from "Numerical Recipes in Fortran 77, second ed." (Press et al., Cambridge University Press)
[in] | n,: | number of elements in the list |
[in] | arr(n) | : array to be indexed |
[in] | indx(n) | : index list, such that arr(indx(j)) is in ascending order for j=1, 2, 3 ...n. arr and n are not changed |
Definition at line 320 of file modules.f90.
Referenced by func::pickbest().