Initialization.cpp File Reference

This file contains declaration of functions for initialization and finalization of the library. More...

#include "Initialization.h"
#include "Random.h"
#include "CrossoverOperations.h"
#include "MutationOperations.h"
#include "FitnessComparators.h"
#include "Population.h"
#include "SelectionOperations.h"
#include "CouplingOperations.h"
#include "ReplacementOperations.h"
#include "ScalingOperations.h"
#include "StopCriterias.h"

Functions

void GaInitialize ()
 This function initializes GAL. Main purpose is to initialize global random generators and operation catalogues.
void GaFinalize ()
 GaFinalize should be call before exiting application, and after work with GAL is done. It releases all acquired memory and resources needed for library.

Variables

GAL_API Common::GaRandomIntegerGaGlobalRandomIntegerGenerator = 0
 Global object used by GAL to generate random integer numbers. It cannot be used prior calling GaInitialize and after calling GaFinalize. For more details see GaRandomInteger class.
GAL_API Common::GaRandomFloatGaGlobalRandomFloatGenerator = 0
 Global object used by GAL to generate random single precision floating point numbers. It cannot be used prior calling GaInitialize and after calling GaFinalize. For more details see GaRandomInteger class.
GAL_API Common::GaRandomDoubleGaGlobalRandomDoubleGenerator = 0
 Global object used by GAL to generate random double precision floating point numbers. It cannot be used prior calling GaInitialize and after calling GaFinalize. For more details see GaRandomInteger class.
GAL_API Common::GaRandomBoolGaGlobalRandomBoolGenerator = 0
 Global object used by GAL to generate random Boolean values. It cannot be used prior calling GaInitialize and after calling GaFinalize. For more details see GaRandomInteger class.


Detailed Description

This file contains declaration of functions for initialization and finalization of the library.


Function Documentation

void GaFinalize (  ) 

GaFinalize should be call before exiting application, and after work with GAL is done. It releases all acquired memory and resources needed for library.

Objects which were instantiated by the user, except those objects which was added to global operation catalogues, must be destroyed prior calling GaFinalize. Note that any object of operation which was added to global catalogues will be deleted after GaFinalize call.

void GaInitialize (  ) 

This function initializes GAL. Main purpose is to initialize global random generators and operation catalogues.

No library feature should be called before calling GaInitialize.


Variable Documentation

Global object used by GAL to generate random Boolean values. It cannot be used prior calling GaInitialize and after calling GaFinalize. For more details see GaRandomInteger class.

Global object used by GAL to generate random double precision floating point numbers. It cannot be used prior calling GaInitialize and after calling GaFinalize. For more details see GaRandomInteger class.

Global object used by GAL to generate random single precision floating point numbers. It cannot be used prior calling GaInitialize and after calling GaFinalize. For more details see GaRandomInteger class.

Global object used by GAL to generate random integer numbers. It cannot be used prior calling GaInitialize and after calling GaFinalize. For more details see GaRandomInteger class.


Genetic Algorithm Library
Coolsoft Software Development