AGA V1
Asexual Genetic Algorithm Version 1.0
Functions/Subroutines
input Module Reference

Input from data and options file. More...

Functions/Subroutines

subroutine ReadData (xobs, yobs, ysigma, ndata)
 Observational/experimental data input.
subroutine InitCond (nsteps, nruns, nparent, nind, nerr, deltaconst, nmig, ngaussdev, igaus, npar, gensize, reduc, beta, qbounds, q0, delta0, fit, arrmain, arrpar, arrgen)
 Reads runtime parameters from file and initializes arrays.

Detailed Description

Input from data and options file.

contains routines to read the input data and run-time parameters.


Function/Subroutine Documentation

subroutine input::InitCond ( integer,intent(out)  nsteps,
integer,intent(out)  nruns,
integer,intent(out)  nparent,
integer,intent(out)  nind,
integer,intent(out)  nerr,
integer,intent(out)  deltaconst,
integer,intent(out)  nmig,
integer,intent(out)  ngaussdev,
integer,intent(out)  igaus,
integer,intent(out)  npar,
integer,intent(out)  gensize,
real,intent(out)  reduc,
real,intent(out)  beta,
real,dimension(:,:),intent(out),allocatable  qbounds,
real,dimension(:),intent(out),allocatable  q0,
real,dimension(:),intent(out),allocatable  delta0,
real,dimension(:),intent(out),allocatable  fit,
real,dimension(:,:),intent(out),allocatable  arrmain,
real,dimension(:,:),intent(out),allocatable  arrpar,
real,dimension(:,:),intent(out),allocatable  arrgen 
)

Reads runtime parameters from file and initializes arrays.

Reads from file (InitCond.dat) all the runtime input parameters, initializes the values of the hyperboxes, and allocates memory for all the parents and population.

Parameters:
[out]nsteps: Number of iterations before the hyperboxes are restored to their initial size
[out]nruns: Number of times that the hyperboxes are returned to their initial size
[out]nparent: Number of parents
[out]nind: Number of individuals
[out]nerr: Number of realizations performed to obtain an estimate of the errors
[out]deltaconst: if equal to 1 the reduction of the hyperboxes is at a constant rate (see reduc), otherwise hyperboxes are reduced with the standard deviation of each parameter.
[out]nmig: turns on/off migration. If its value is 0, migration is disabled, otherwise is enabled
[out]ngaussdev: : if value equal to 1, offsprinf is obtained with a Gaussian distribution, otherwise they are obtained with uniform random deviates.
[out]igaus: ????? Quiza deberia pasarse al modulo de las gaussianas
[out]npar: number of free parameters
[out]gensize: size of the new generation from each parent. Since the parent is kept gensize=num of sons + 1
[out]reduc: reducing factor, if a constant speed is chosen the hyper-box is reduced according to:
[out]beta: Tolerance value
[out]qbounds(2,npar): limits of the original (user provided) hyperbox
[out]q0(npar): Initial guess, computed as the position at the center of the initial hyperbox
[out]delta0(npar): Initial window half-size
[out]fit(nind): Array to store the fitness level of the population
[out]arrmain(npar,nind): Array for the entire population
[out]arrpar(npar,nparent): Array for the parents only
[out]arrgen(npar,gensize): Array to store a single generation of each parent

Definition at line 278 of file extfunc.f90.

Referenced by agav1::Algorithm().

subroutine input::ReadData ( real,dimension(:),intent(out),allocatable  xobs,
real,dimension(:),intent(out),allocatable  yobs,
real,dimension(:),intent(out),allocatable  ysigma,
integer,intent(out)  ndata 
)

Observational/experimental data input.

Reads experimental/observational data from file. Data are ordered by columns (see example in ObsData.dat)

Parameters:
[out]xobs(ndata): vector of abscissae
[out]yobs(ndata): vector of ordinates
[out]ysigma(ndata): vector of uncertainties of the ordinates
[out]ndata: number of experimental points.

Definition at line 206 of file extfunc.f90.

Referenced by test().

 All Namespaces Files Functions Variables