SlideShare uma empresa Scribd logo
1 de 5
Baixar para ler offline
International Journal of Research in Computer Science
 eISSN 2249-8265 Volume 2 Issue 2 (2012) pp. 1-5
 © White Globe Publications
 www.ijorcs.org


     ADOPTION OF PARALLEL GENETIC ALGORITHMS
     FOR THE SOLUTION OF SYSTEM OF EQUATIONS
                                            Shilpa S Babalad1, Anand M Shivapuji2
                                1
                                 Faculty, Dept of Computer Science, CITech, Bangalore, India
                           2
                               Research Scholar, CST, Indian Institute of Science, Bangalore, India

  Abstract: - Analysis and understanding of physical           the set of variables such that they satisfy all the
systems require modeling the system as set of                  equations simultaneously [5].
simultaneous linear / non-linear equations and
                                                                  Literature reports several methods towards the
generating solutions to satisfy the system of equations.
                                                               solution of simultaneous equations with the simplest
Analytical approach towards solving the system of
                                                               being the graphical technique and the Gaussian
equations remains practical so long as considerable
                                                               elimination method [5][6]. As the size of the
constraints are imposed on the modeled system to
                                                               simultaneous equations increases, recourse is taken to
bring in significant simplicity so as to retain the
                                                               adopting iterative approaches considering that they are
system model within the scope of defined algorithms
                                                               more advantageous and less prone to round off errors
for solving system of equations. The current work
                                                               [7]. Apart from the fact that the iterative approaches
adopts the concept of genetic algorithm towards
                                                               are less prone to round off and such errors, a thorough
evolving a solution to a system of equations. The
                                                               understanding of the physical system helps in making
fundamental strength of genetic algorithms lies in the
                                                               a very good initial guess leading to faster
fact the solution generation is practically
                                                               convergence.
unconstrained permitting the methodology to become
the superset for all possible realizable problems. One             The current work primarily focuses on the
of the oft repeated and highlighted / drawbacks of             extension of the generic concept of using “guesses” by
genetic algorithm i.e. requirements of huge initial            adopting Genetic Algorithms (GA) towards solving a
population and corresponding extended number of                set of simultaneous equations. The fundamental idea
computations and hence time is addressed by                    behind using GA is that a set of equations offering a
exploiting multi-processing capabilities of the current        close to practical representation of any physical
generation hardware as well as system software.                system would be difficult to solve using any of the
Adopted strategy for selecting the best population,            standard established techniques. The primary
implementation flow chart along with a case study is           advantage of GA is that they represent a more scalable
presented.                                                     choice [8] apart from the fact that they are not under
                                                               any mathematical constraint or bound by error surface
Keywords: Evolution, Genetic algorithms, parallel              and can solve multi-dimensional, non-differential,


                 I. INTRODUCTION
programming, system of equations.                              non-continuous, and as well as non-parametrical
                                                               problems. One of the primary drawbacks of GA has
                                                               been that they are time intensive considering that they
    The solution of a system of simultaneous equations         spawn a large initial population space (user
is probably one of the most important topics in                dependent) and it could be many generations before a
modern computational engineering [1]. Placing the              solution within the error band actually materializes.
criticality of simultaneous equations at any level             Towards overcoming this fundamental drawback,
below would be a gross understatement considering              recourse is taken to parallelize segments of the
the fact that almost all recent ground breaking                primary code with the focus being mainly on the
technological advances are a direct result of                  initial population space and fitness evaluation space.
increasing ability to solve complex simultaneous               Parallelizing these hot-spots reduces the overall
equations. Simultaneous equations practically rule the         execution time of the code reducing the time footprint
roost in so far as formulating engineering problems in         of the code.
the form of mathematical equations are concerned                  A sample well defined problems is taken up for
with the applications spanning such broad areas as             investigation and solved using the standard Gauss
computational fluid dynamics [2], structural analysis          elimination technique, the Gauss Seidel method [5]
[3], circuit analysis [4], etc. Solution of a set of           and finally using the GA developed for the purpose.
simultaneous equations primarily means quantifying             The detailed approach and the representative


                                                                                  www.ijorcs.org
2                                                                                           Shilpa S Babalad, Anand M Shivapuji

algorithm towards the methods                 described         are   to note that each time the solution procedure is run,
presented in the next section.                                        these values could be different and depend on the seed
                                                                      used for generating the random numbers.
           II. IMPLEMENTATION APPROACH
   The investigation starts off with the formulation of a
                                                                          The initial population generated is subjected to
well defined problem having a definite solution. The
                                                                      fitness evaluation as discussed below;
case study involved a system of equations with five
unknowns and 5 equations. The considered system of                     1. Determine a LHS column vector obtained by
equations is of the form as given below in figure 1.                      substituting the first solution vector and
                                                                          multiplying the coefficient matrix with the solution
                                                                          vector.
           7    3      4   8     8      X1            29               2. Determine an error column vector by subtracting
                                                                          the LHS column vector with the actual RHS
           6    4      8   7 11         X2            23
                                                                          column vector.
           9    3      6   9     3      X3        =   26               3. Determine an error coefficient (EC) which is the
                                                                          sum of square of the individual entries of the error
           8 12        9 10      5      X4            22
                                                                          vector.
           7    9      5   2     5      X5            19               4. Determine an actual coefficient (AC) which is the
                                                                          sum of square of the individual entities of the RHS
     Figure 1. Matrix representation of system of equations               vector.
                                                                       5. The relative accuracy R is defined as
   The solution vector for the above defined set of
equations is composed of the values X1=2.701,                                             R = (AC - EC) /AC
X2=0.009, X3=-1.544, X4=0.806, X5=1.224 with the
solutions beings arrived at by adopting the Gaussian                      The R value generated is compared against the
elimination method with scaled partial pivoting [9]. The              defined accuracy level required. If the accuracy is
same set of equations is subsequently solved using GA                 higher or equal to the required magnitude, then the
which is formulated as mentioned below;                               population vector is directly accepted as the final
                                                                      solution and the program terminates. In the event of
   Genetic algorithm fundamentally relies on the
                                                                      the accuracy being lower than the desired accuracy, the
principal of having a randomly generated initial                      next population vector is taken up for evaluation. This
population. The initial population primarily is a column              follows for the entire population set. In the event of
vector representing the potential solution of the system              any of the population set satisfying the desired
of equations. In GA, many such initial population                     criterion, the same is selected as the final solution and
vectors can be defined and for the present analysis the
                                                                      the iteration is terminated. In case none of the 5 initial
size of the initial population is taken as 5 column                   vectors satisfy the accuracy criterion, the program
vectors. This is fundamentally a random and arbitrary                 proceeds to evolve. In this evolution, the solution
choice and the 5 columns representing the initial                     vector that came closest to the required accuracy in the
population are as given below.                                        first generation is carried forward as it is and four
                Table 1. Initial population vectors                   more solution vectors are generated randomly. In a
                                                                      random selection, one of the four vectors is selected
      V1          V2           V3            V4            V5         for cross over and on that vector, by another random
                                                                      selection, a position from one to five is selected and
    -0.0935    +1.6509     +1.5275      +1.5275        -0.6326        starting from one till the chosen position, the values
                                                                      are replaced using the corresponding values from the
    +1.8911    +0.2291     -0.9091      -0.9091        +1.1320        second best solution from the previous generation.
                                                                      Thus, a new set of vectors are made available which
    +0.6578    +0.6302     +0.5089      +0.5089        +0.2794        are assessed for their fitness and in case of no
                                                                      convergence in terms of the satisfaction of the
    +1.1521    +1.8153     +1.7267      -0.3792        -0.4224        accuracy criterion, a third generation population is
                                                                      generated and so on. This process continues till the
    +2.6221    -0.4632     +0.2722      +0.9258        -0.2686        system evolves a final solution satisfying the required
                                                                      criterion. The carry forwards of one complete solution
   This initial population is generated using the intrinsic           from the (i)th iteration to the (i+1)th iteration allows
random number generator function with an appropriate                  benchmarking of the new set while the cross over
seeding function for generating different random                      permits part carry forward of the goodness of fit from
numbers each time the code is executed. It is important               the previous solution.


                                                                                       www.ijorcs.org
Adoption of Parallel Genetic Algorithms for the Solution of System of Equations                                               3

   There are two regions of the program that are
independently repetitive i.e. the random number
generation and the fitness estimation. The independent
repetitiveness permits introduction of parallelization
wherein depending on the number of processors on the
machine, number of threads are created to handle these
two tasks with these two tasks themselves being in
series.
   Towards implementation of the above described
methodology for solution of a system of equations, C
programming languages is used on GCC 4.6.1 open                             Figure 2. Variation of standard deviation
source compiler [10] with the parallelization being
implemented using OpenMP [11].                                        The system seems to be significantly less sensitive
                                                                   to variable X1 while being highly sensitive to X2 and
         III. RESULTS AND DISCUSSIONS                              X3 as evident from the above graph. A
                                                                   multidimensional space with the longest dimension
   Implementation of the scheme as discussed above                 along the X1 axis would be the solution space for the
allowed solution of the problem presented in a matrix              above system which is one of the most important
form as in figure 1. Towards assessing the response of             outcomes of the adoption of GA to the solution of
the developed algorithm, the same system of equation               simultaneous equations. In terms of physical systems,
was solved with different initial population sets one of           this would translate into a significant understanding in
them indicated in table 1. Table 2 presents the results            terms of the flexibility and restrictions in the
obtained in five trials for an accuracy requirement of             considered system since the evaluation has been
99% and compares against the actual analytical                     against a random set of inputs ruling out any pattern
solution.                                                          and hence bias.
         Table 2. Evaluated coefficients for the trials                The next investigation pertains to understanding
Actual       T-1        T-2        T-3        T-4          T-5     how the choice of initial population affects the number
                                                                   of iterations required for attaining convergence.
2.701        1.976     2.429      1.813      2.651         2.614
0.009        0.165     0.019      0.104      -0.170       -0.432
-1.544      -0.968     -0.842     -0.651     -0.767       -0.433
0.806        1.355     0.296      0.716      0.589         0.321
1.224        0.723     1.535      1.322      0.885         1.055

            Table 3. Comparison of trial solutions
    Actual      T-1       T-2      T-3      T-4       T-5
      29         27       28        27       27           26
      23         22       27        26       23           24            Figure 3. Variation of ‘R’ and number of iterations
      26         27       24        23       27           26           In a very surprising outcome, no real correlation
      22         26       23        24       23           20       seems to emerge between the quality of the initial
                                                                   population and the number of iterations as evident
      19         17       21        18       19           18
                                                                   from figure 3. In case P-3 the R value for initial
   One of the important features that is brought out is            population is over 0.9 but the number of iteration at
the fact that a considerable spread is noticed in the              about 450 are also the highest among the 5 iterations
values of the variables but the same does not reflect in           while P-2 with very low R has the lowest number of
terms of any major deterioration in the results. This              iterations. The primary outcome of this analysis is that,
indicates a rather broad solution space for the system             the way in which the best chromosomes from the
of equations indicating flexibility in the system                  initial population move over to the next generation
behavior near the optimal range. The other important               either full or in part as cross over / mutation needs a
feature brought out by the analysis is the differential            thorough analysis and the way this happens could have
sensitivity of the coefficients as indicated in figure 2.          an impact on the behavior of the GA in general. This
                                                                   aspect of GA as used in the current investigation is
                                                                   being revisited.


                                                                                     www.ijorcs.org
4                                                                                        Shilpa S Babalad, Anand M Shivapuji

   Figure 4 deals with the general trend of how the                   The above results indicate an important trend that
value of R varies with the number of iterations for the            though the solution was significantly impacted by the
best case initial population pertaining to V2 which has            choice of the initial population, it does not depend on
only 63 iterations for convergence. As can be seen,                the quality of the initial population. This is a rather
through the data seems to be having a general scatter, a           surprising find and needs more investigation.
clear trend emerges on including a least square fit
profile for the data. The value of R tends to increase                Considering the fact that, the number of iterations
before finally reaching convergence indicating a                   depends on the choice of the initial population and a
gradual improvement with number of iterations. It is               particular solution could lead to excessively high
the slope of this least square fit that is of importance           number of iterations, parallelization of the hot spots
considering that a higher slope would mean faster rate             within the code was taken up. The fundamental issue
of improvement in the value of R with increasing                   while attempting a comparison between a serial and a
number of iterations.                                              parallel code is that since the solution depends on the
                                                                   choice of random numbers, it really is impossible to
                                                                   genuinely compare the two since the random numbers
                                                                   generated in each of the run could be different and
                                                                   could lead to a situation where in the serial code
                                                                   having a better choice of population could outdo the
                                                                   parallel code. The hot spots have however been
                                                                   parallelized using OpenMP and it is believed that the
                                                                   runs are faster as compared to serial code. However no
                                                                   genuine quantification can be provided for the case in
                                                                   question.

                                                                                   IV. CONCLUSIONS
       Figure 4. Variation of R with number of iterations              The focus of the current work has been towards the
                                                                   application of parallel genetic algorithms for solving a
    Extending the effort of least square fit to all the five       set of simultaneous equations. A comparison done
trails conducted, it can be observed that, except for              between the solutions obtained using the above method
trials T-2 and T-4 all other trials indicated a general            with the analytical results highlights the ability of GA
degradation of the solution as the number of iterations            as a versatile tool capable of handling even non
progressed. The solution obtained is due to pure                   standard system of equations. GA’s also provide the
random behavior and the quality of the previous                    solution band / space when a large initial population is
solution did not have any significant positive impact              considered which can subsequently be curtailed to
on the current population. Again, comparing figure 3               make the process adaptive in nature. GAs also helps in
and 5, it can be observed that, the number of iterations           assessing the sensitivity of the variables. Knowledge
were within 75 for the case wherein the slope of the               of the solution space and the variable sensitivity is a
curve has been positive i.e. there is a qualitative                very critical requirement in especially in case of
improvement in the solution over the previous                      physical systems. GA also indicates the possibility of
solution. In case where this is not true, it the slope is          existence of more than one solution within an error
negative, the number of iterations are significantly               band even when a perfect solution exists. This again is
high. Trial T-3 seems to have a close to zero slope                critical in physical systems which operate in a band
taking up around 300 iterations while the other two                rather than at a particular point.
iterations that have greater negative slope require
significantly higher number of iterations.                             On the solution itself, the convergence rate seems
                                                                   to be highly sensitive to the initial population but not
                                                                   in the sense of the accuracy criterion. This is a general
                                                                   anomaly and is being investigated further. This is a
                                                                   very interesting outcome considering the fact that
                                                                   generally if the solution band is known then a system
                                                                   is programmed to be prejudiced to initiate the guess
                                                                   from within the same space. However as the current
                                                                   investigation indicates, this need not be true for all
                                                                   qualification     criterion    that     are     designed.
                                                                   Parallelization of hotspots is seen to significantly
                                                                   reduce the time taken for convergence and hence is
                                                                   recommended as a de facto standard to exploit the
                                                                   capabilities of the current generation of hardware and
    Figure 5. Variation of R with iterations for the five trials


                                                                                    www.ijorcs.org
Adoption of Parallel Genetic Algorithms for the Solution of System of Equations                                  5

compilers to reduce the processing times especially                                 VI. APPENDIX
while adopting iterative approaches as in the case of
                                                                 The figure below describes the scheme adopted for
genetic algorithm.
                                                              the solution of system of equations using Genetic
                                                              Algorithms.
                   V. REFERENCES
[1] Wang D and Zhiming Z, “Differential equations with
     symbolic computation”, Birkhauser Basel, 2005
[2] Versteeg H and Malalasekara W, “An introduction to                                   calculate()
     computational fluid dynamics – The finite volume
     method”, Pearson, 2008
[3] Smith I M and Griffiths D V, “Programming the finite
     element method”, John Wiley & Sons, 2004
                                                                                      Generate initial
[4] Hayt W H, Kemmerly J E and Durbin S M,
                                                                                        population
     “Engineering Circuits Analysis”, Tata McGraw-Hill
     Education, 2006
[5] Chapra S and Canale R, “Numerical Methods for
     Engineers”, McGraw-Hill Higher Education, 2009
[6] Hamming R W, “Numerical methods for scientists and                             calculate the value of
     engineers”, Dover Publications, 1973                                          R for the population
[7] Sarkar T, Siarkiewicz K and Stratton R, “Survey of                                   generated
     numerical methods for solution of large systems of
     linear equations for electromagnetic field problems”,
     IEEE Transactions on Antennas and Propagation, Vol,
     29, No 6, 1981, pp: 847-856
[8] Gerardo Canfora, Massimiliano Di Penta, Raffaele
     Esposito, Maria Luisa Villani (2005) “An approach for                Yes            Is there a
     QoS-aware service composition based on genetic                                   solution vector
     algorithms”. Proceedings of the 2005 conference on                               within the error
     Genetic and evolutionary computation GECCO 05                                          band
     (2005).
[9] Markus OLSCHOWKA, “A new pivoting strategy for
     Gaussian elimination”, Linear Algebra and its                                              No
     Applications, Vol 240, 1996, pp:131-151
[10] GNU (2011), “GCC, the GNU Compiler Collection,                                 Carry the best soln to
     Version 4.6.1”, Available: http://gcc.gnu.org/gcc-4.6/                           the next iteration,
[11] OpenMP (2011), “The OpenMP API Specification for                                   generate next
     Parallel Programming, Version 3.1”, Available:                                     population by
     http://openmp.org/wp/                                                          performing crossover
                                                                                        and mutation


                                                                                          Stop the
                                                                                         algorithm




                                                                                  www.ijorcs.org

Mais conteúdo relacionado

Destaque (12)

Green ideas # 29 le spiagge italiane sono sempre più biocompatibili e tecnolo...
Green ideas # 29 le spiagge italiane sono sempre più biocompatibili e tecnolo...Green ideas # 29 le spiagge italiane sono sempre più biocompatibili e tecnolo...
Green ideas # 29 le spiagge italiane sono sempre più biocompatibili e tecnolo...
 
Aydın
AydınAydın
Aydın
 
Overview of water panning in queensland, kaylene power
Overview of water panning in queensland, kaylene powerOverview of water panning in queensland, kaylene power
Overview of water panning in queensland, kaylene power
 
Nps nyheter i novapoint samhällsplanering
Nps nyheter i novapoint samhällsplaneringNps nyheter i novapoint samhällsplanering
Nps nyheter i novapoint samhällsplanering
 
Frases celebres de mama
Frases celebres de mamaFrases celebres de mama
Frases celebres de mama
 
Fraternidad Arenas de San Pedro. Boletín Mayo 2012
Fraternidad Arenas de San Pedro. Boletín Mayo 2012Fraternidad Arenas de San Pedro. Boletín Mayo 2012
Fraternidad Arenas de San Pedro. Boletín Mayo 2012
 
NPP 2011/12 R2 Globalni
NPP 2011/12 R2 GlobalniNPP 2011/12 R2 Globalni
NPP 2011/12 R2 Globalni
 
Vol18jn
Vol18jnVol18jn
Vol18jn
 
JPRart Portfolio
JPRart PortfolioJPRart Portfolio
JPRart Portfolio
 
XM Vs SIRIUS
XM Vs SIRIUSXM Vs SIRIUS
XM Vs SIRIUS
 
Wolfram alpha para facilitadores de matemáticas
Wolfram alpha para facilitadores de matemáticas Wolfram alpha para facilitadores de matemáticas
Wolfram alpha para facilitadores de matemáticas
 
Outdoor Publicity Marketing - Global Advertisers
Outdoor Publicity Marketing - Global AdvertisersOutdoor Publicity Marketing - Global Advertisers
Outdoor Publicity Marketing - Global Advertisers
 

Mais de IJORCS

Help the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on IntersectionsHelp the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on IntersectionsIJORCS
 
Call for Papers - IJORCS, Volume 4 Issue 4
Call for Papers - IJORCS, Volume 4 Issue 4Call for Papers - IJORCS, Volume 4 Issue 4
Call for Papers - IJORCS, Volume 4 Issue 4IJORCS
 
Real-Time Multiple License Plate Recognition System
Real-Time Multiple License Plate Recognition SystemReal-Time Multiple License Plate Recognition System
Real-Time Multiple License Plate Recognition SystemIJORCS
 
FPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
FPGA Implementation of FIR Filter using Various Algorithms: A RetrospectiveFPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
FPGA Implementation of FIR Filter using Various Algorithms: A RetrospectiveIJORCS
 
Using Virtualization Technique to Increase Security and Reduce Energy Consump...
Using Virtualization Technique to Increase Security and Reduce Energy Consump...Using Virtualization Technique to Increase Security and Reduce Energy Consump...
Using Virtualization Technique to Increase Security and Reduce Energy Consump...IJORCS
 
Algebraic Fault Attack on the SHA-256 Compression Function
Algebraic Fault Attack on the SHA-256 Compression FunctionAlgebraic Fault Attack on the SHA-256 Compression Function
Algebraic Fault Attack on the SHA-256 Compression FunctionIJORCS
 
Enhancement of DES Algorithm with Multi State Logic
Enhancement of DES Algorithm with Multi State LogicEnhancement of DES Algorithm with Multi State Logic
Enhancement of DES Algorithm with Multi State LogicIJORCS
 
Hybrid Simulated Annealing and Nelder-Mead Algorithm for Solving Large-Scale ...
Hybrid Simulated Annealing and Nelder-Mead Algorithm for Solving Large-Scale ...Hybrid Simulated Annealing and Nelder-Mead Algorithm for Solving Large-Scale ...
Hybrid Simulated Annealing and Nelder-Mead Algorithm for Solving Large-Scale ...IJORCS
 
CFP. IJORCS, Volume 4 - Issue2
CFP. IJORCS, Volume 4 - Issue2CFP. IJORCS, Volume 4 - Issue2
CFP. IJORCS, Volume 4 - Issue2IJORCS
 
Call for Papers - IJORCS - Vol 4, Issue 1
Call for Papers - IJORCS - Vol 4, Issue 1Call for Papers - IJORCS - Vol 4, Issue 1
Call for Papers - IJORCS - Vol 4, Issue 1IJORCS
 
Voice Recognition System using Template Matching
Voice Recognition System using Template MatchingVoice Recognition System using Template Matching
Voice Recognition System using Template MatchingIJORCS
 
Channel Aware Mac Protocol for Maximizing Throughput and Fairness
Channel Aware Mac Protocol for Maximizing Throughput and FairnessChannel Aware Mac Protocol for Maximizing Throughput and Fairness
Channel Aware Mac Protocol for Maximizing Throughput and FairnessIJORCS
 
A Review and Analysis on Mobile Application Development Processes using Agile...
A Review and Analysis on Mobile Application Development Processes using Agile...A Review and Analysis on Mobile Application Development Processes using Agile...
A Review and Analysis on Mobile Application Development Processes using Agile...IJORCS
 
Congestion Prediction and Adaptive Rate Adjustment Technique for Wireless Sen...
Congestion Prediction and Adaptive Rate Adjustment Technique for Wireless Sen...Congestion Prediction and Adaptive Rate Adjustment Technique for Wireless Sen...
Congestion Prediction and Adaptive Rate Adjustment Technique for Wireless Sen...IJORCS
 
A Study of Routing Techniques in Intermittently Connected MANETs
A Study of Routing Techniques in Intermittently Connected MANETsA Study of Routing Techniques in Intermittently Connected MANETs
A Study of Routing Techniques in Intermittently Connected MANETsIJORCS
 
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...Improving the Efficiency of Spectral Subtraction Method by Combining it with ...
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...IJORCS
 
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed System
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed SystemAn Adaptive Load Sharing Algorithm for Heterogeneous Distributed System
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed SystemIJORCS
 
The Design of Cognitive Social Simulation Framework using Statistical Methodo...
The Design of Cognitive Social Simulation Framework using Statistical Methodo...The Design of Cognitive Social Simulation Framework using Statistical Methodo...
The Design of Cognitive Social Simulation Framework using Statistical Methodo...IJORCS
 
An Enhanced Framework for Improving Spatio-Temporal Queries for Global Positi...
An Enhanced Framework for Improving Spatio-Temporal Queries for Global Positi...An Enhanced Framework for Improving Spatio-Temporal Queries for Global Positi...
An Enhanced Framework for Improving Spatio-Temporal Queries for Global Positi...IJORCS
 
A PSO-Based Subtractive Data Clustering Algorithm
A PSO-Based Subtractive Data Clustering AlgorithmA PSO-Based Subtractive Data Clustering Algorithm
A PSO-Based Subtractive Data Clustering AlgorithmIJORCS
 

Mais de IJORCS (20)

Help the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on IntersectionsHelp the Genetic Algorithm to Minimize the Urban Traffic on Intersections
Help the Genetic Algorithm to Minimize the Urban Traffic on Intersections
 
Call for Papers - IJORCS, Volume 4 Issue 4
Call for Papers - IJORCS, Volume 4 Issue 4Call for Papers - IJORCS, Volume 4 Issue 4
Call for Papers - IJORCS, Volume 4 Issue 4
 
Real-Time Multiple License Plate Recognition System
Real-Time Multiple License Plate Recognition SystemReal-Time Multiple License Plate Recognition System
Real-Time Multiple License Plate Recognition System
 
FPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
FPGA Implementation of FIR Filter using Various Algorithms: A RetrospectiveFPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
FPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
 
Using Virtualization Technique to Increase Security and Reduce Energy Consump...
Using Virtualization Technique to Increase Security and Reduce Energy Consump...Using Virtualization Technique to Increase Security and Reduce Energy Consump...
Using Virtualization Technique to Increase Security and Reduce Energy Consump...
 
Algebraic Fault Attack on the SHA-256 Compression Function
Algebraic Fault Attack on the SHA-256 Compression FunctionAlgebraic Fault Attack on the SHA-256 Compression Function
Algebraic Fault Attack on the SHA-256 Compression Function
 
Enhancement of DES Algorithm with Multi State Logic
Enhancement of DES Algorithm with Multi State LogicEnhancement of DES Algorithm with Multi State Logic
Enhancement of DES Algorithm with Multi State Logic
 
Hybrid Simulated Annealing and Nelder-Mead Algorithm for Solving Large-Scale ...
Hybrid Simulated Annealing and Nelder-Mead Algorithm for Solving Large-Scale ...Hybrid Simulated Annealing and Nelder-Mead Algorithm for Solving Large-Scale ...
Hybrid Simulated Annealing and Nelder-Mead Algorithm for Solving Large-Scale ...
 
CFP. IJORCS, Volume 4 - Issue2
CFP. IJORCS, Volume 4 - Issue2CFP. IJORCS, Volume 4 - Issue2
CFP. IJORCS, Volume 4 - Issue2
 
Call for Papers - IJORCS - Vol 4, Issue 1
Call for Papers - IJORCS - Vol 4, Issue 1Call for Papers - IJORCS - Vol 4, Issue 1
Call for Papers - IJORCS - Vol 4, Issue 1
 
Voice Recognition System using Template Matching
Voice Recognition System using Template MatchingVoice Recognition System using Template Matching
Voice Recognition System using Template Matching
 
Channel Aware Mac Protocol for Maximizing Throughput and Fairness
Channel Aware Mac Protocol for Maximizing Throughput and FairnessChannel Aware Mac Protocol for Maximizing Throughput and Fairness
Channel Aware Mac Protocol for Maximizing Throughput and Fairness
 
A Review and Analysis on Mobile Application Development Processes using Agile...
A Review and Analysis on Mobile Application Development Processes using Agile...A Review and Analysis on Mobile Application Development Processes using Agile...
A Review and Analysis on Mobile Application Development Processes using Agile...
 
Congestion Prediction and Adaptive Rate Adjustment Technique for Wireless Sen...
Congestion Prediction and Adaptive Rate Adjustment Technique for Wireless Sen...Congestion Prediction and Adaptive Rate Adjustment Technique for Wireless Sen...
Congestion Prediction and Adaptive Rate Adjustment Technique for Wireless Sen...
 
A Study of Routing Techniques in Intermittently Connected MANETs
A Study of Routing Techniques in Intermittently Connected MANETsA Study of Routing Techniques in Intermittently Connected MANETs
A Study of Routing Techniques in Intermittently Connected MANETs
 
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...Improving the Efficiency of Spectral Subtraction Method by Combining it with ...
Improving the Efficiency of Spectral Subtraction Method by Combining it with ...
 
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed System
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed SystemAn Adaptive Load Sharing Algorithm for Heterogeneous Distributed System
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed System
 
The Design of Cognitive Social Simulation Framework using Statistical Methodo...
The Design of Cognitive Social Simulation Framework using Statistical Methodo...The Design of Cognitive Social Simulation Framework using Statistical Methodo...
The Design of Cognitive Social Simulation Framework using Statistical Methodo...
 
An Enhanced Framework for Improving Spatio-Temporal Queries for Global Positi...
An Enhanced Framework for Improving Spatio-Temporal Queries for Global Positi...An Enhanced Framework for Improving Spatio-Temporal Queries for Global Positi...
An Enhanced Framework for Improving Spatio-Temporal Queries for Global Positi...
 
A PSO-Based Subtractive Data Clustering Algorithm
A PSO-Based Subtractive Data Clustering AlgorithmA PSO-Based Subtractive Data Clustering Algorithm
A PSO-Based Subtractive Data Clustering Algorithm
 

Último

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 

Adoption of Parallel Genetic Algorithms for the Solution of System of Equations

  • 1. International Journal of Research in Computer Science eISSN 2249-8265 Volume 2 Issue 2 (2012) pp. 1-5 © White Globe Publications www.ijorcs.org ADOPTION OF PARALLEL GENETIC ALGORITHMS FOR THE SOLUTION OF SYSTEM OF EQUATIONS Shilpa S Babalad1, Anand M Shivapuji2 1 Faculty, Dept of Computer Science, CITech, Bangalore, India 2 Research Scholar, CST, Indian Institute of Science, Bangalore, India Abstract: - Analysis and understanding of physical the set of variables such that they satisfy all the systems require modeling the system as set of equations simultaneously [5]. simultaneous linear / non-linear equations and Literature reports several methods towards the generating solutions to satisfy the system of equations. solution of simultaneous equations with the simplest Analytical approach towards solving the system of being the graphical technique and the Gaussian equations remains practical so long as considerable elimination method [5][6]. As the size of the constraints are imposed on the modeled system to simultaneous equations increases, recourse is taken to bring in significant simplicity so as to retain the adopting iterative approaches considering that they are system model within the scope of defined algorithms more advantageous and less prone to round off errors for solving system of equations. The current work [7]. Apart from the fact that the iterative approaches adopts the concept of genetic algorithm towards are less prone to round off and such errors, a thorough evolving a solution to a system of equations. The understanding of the physical system helps in making fundamental strength of genetic algorithms lies in the a very good initial guess leading to faster fact the solution generation is practically convergence. unconstrained permitting the methodology to become the superset for all possible realizable problems. One The current work primarily focuses on the of the oft repeated and highlighted / drawbacks of extension of the generic concept of using “guesses” by genetic algorithm i.e. requirements of huge initial adopting Genetic Algorithms (GA) towards solving a population and corresponding extended number of set of simultaneous equations. The fundamental idea computations and hence time is addressed by behind using GA is that a set of equations offering a exploiting multi-processing capabilities of the current close to practical representation of any physical generation hardware as well as system software. system would be difficult to solve using any of the Adopted strategy for selecting the best population, standard established techniques. The primary implementation flow chart along with a case study is advantage of GA is that they represent a more scalable presented. choice [8] apart from the fact that they are not under any mathematical constraint or bound by error surface Keywords: Evolution, Genetic algorithms, parallel and can solve multi-dimensional, non-differential, I. INTRODUCTION programming, system of equations. non-continuous, and as well as non-parametrical problems. One of the primary drawbacks of GA has been that they are time intensive considering that they The solution of a system of simultaneous equations spawn a large initial population space (user is probably one of the most important topics in dependent) and it could be many generations before a modern computational engineering [1]. Placing the solution within the error band actually materializes. criticality of simultaneous equations at any level Towards overcoming this fundamental drawback, below would be a gross understatement considering recourse is taken to parallelize segments of the the fact that almost all recent ground breaking primary code with the focus being mainly on the technological advances are a direct result of initial population space and fitness evaluation space. increasing ability to solve complex simultaneous Parallelizing these hot-spots reduces the overall equations. Simultaneous equations practically rule the execution time of the code reducing the time footprint roost in so far as formulating engineering problems in of the code. the form of mathematical equations are concerned A sample well defined problems is taken up for with the applications spanning such broad areas as investigation and solved using the standard Gauss computational fluid dynamics [2], structural analysis elimination technique, the Gauss Seidel method [5] [3], circuit analysis [4], etc. Solution of a set of and finally using the GA developed for the purpose. simultaneous equations primarily means quantifying The detailed approach and the representative www.ijorcs.org
  • 2. 2 Shilpa S Babalad, Anand M Shivapuji algorithm towards the methods described are to note that each time the solution procedure is run, presented in the next section. these values could be different and depend on the seed used for generating the random numbers. II. IMPLEMENTATION APPROACH The investigation starts off with the formulation of a The initial population generated is subjected to well defined problem having a definite solution. The fitness evaluation as discussed below; case study involved a system of equations with five unknowns and 5 equations. The considered system of 1. Determine a LHS column vector obtained by equations is of the form as given below in figure 1. substituting the first solution vector and multiplying the coefficient matrix with the solution vector. 7 3 4 8 8 X1 29 2. Determine an error column vector by subtracting the LHS column vector with the actual RHS 6 4 8 7 11 X2 23 column vector. 9 3 6 9 3 X3 = 26 3. Determine an error coefficient (EC) which is the sum of square of the individual entries of the error 8 12 9 10 5 X4 22 vector. 7 9 5 2 5 X5 19 4. Determine an actual coefficient (AC) which is the sum of square of the individual entities of the RHS Figure 1. Matrix representation of system of equations vector. 5. The relative accuracy R is defined as The solution vector for the above defined set of equations is composed of the values X1=2.701, R = (AC - EC) /AC X2=0.009, X3=-1.544, X4=0.806, X5=1.224 with the solutions beings arrived at by adopting the Gaussian The R value generated is compared against the elimination method with scaled partial pivoting [9]. The defined accuracy level required. If the accuracy is same set of equations is subsequently solved using GA higher or equal to the required magnitude, then the which is formulated as mentioned below; population vector is directly accepted as the final solution and the program terminates. In the event of Genetic algorithm fundamentally relies on the the accuracy being lower than the desired accuracy, the principal of having a randomly generated initial next population vector is taken up for evaluation. This population. The initial population primarily is a column follows for the entire population set. In the event of vector representing the potential solution of the system any of the population set satisfying the desired of equations. In GA, many such initial population criterion, the same is selected as the final solution and vectors can be defined and for the present analysis the the iteration is terminated. In case none of the 5 initial size of the initial population is taken as 5 column vectors satisfy the accuracy criterion, the program vectors. This is fundamentally a random and arbitrary proceeds to evolve. In this evolution, the solution choice and the 5 columns representing the initial vector that came closest to the required accuracy in the population are as given below. first generation is carried forward as it is and four Table 1. Initial population vectors more solution vectors are generated randomly. In a random selection, one of the four vectors is selected V1 V2 V3 V4 V5 for cross over and on that vector, by another random selection, a position from one to five is selected and -0.0935 +1.6509 +1.5275 +1.5275 -0.6326 starting from one till the chosen position, the values are replaced using the corresponding values from the +1.8911 +0.2291 -0.9091 -0.9091 +1.1320 second best solution from the previous generation. Thus, a new set of vectors are made available which +0.6578 +0.6302 +0.5089 +0.5089 +0.2794 are assessed for their fitness and in case of no convergence in terms of the satisfaction of the +1.1521 +1.8153 +1.7267 -0.3792 -0.4224 accuracy criterion, a third generation population is generated and so on. This process continues till the +2.6221 -0.4632 +0.2722 +0.9258 -0.2686 system evolves a final solution satisfying the required criterion. The carry forwards of one complete solution This initial population is generated using the intrinsic from the (i)th iteration to the (i+1)th iteration allows random number generator function with an appropriate benchmarking of the new set while the cross over seeding function for generating different random permits part carry forward of the goodness of fit from numbers each time the code is executed. It is important the previous solution. www.ijorcs.org
  • 3. Adoption of Parallel Genetic Algorithms for the Solution of System of Equations 3 There are two regions of the program that are independently repetitive i.e. the random number generation and the fitness estimation. The independent repetitiveness permits introduction of parallelization wherein depending on the number of processors on the machine, number of threads are created to handle these two tasks with these two tasks themselves being in series. Towards implementation of the above described methodology for solution of a system of equations, C programming languages is used on GCC 4.6.1 open Figure 2. Variation of standard deviation source compiler [10] with the parallelization being implemented using OpenMP [11]. The system seems to be significantly less sensitive to variable X1 while being highly sensitive to X2 and III. RESULTS AND DISCUSSIONS X3 as evident from the above graph. A multidimensional space with the longest dimension Implementation of the scheme as discussed above along the X1 axis would be the solution space for the allowed solution of the problem presented in a matrix above system which is one of the most important form as in figure 1. Towards assessing the response of outcomes of the adoption of GA to the solution of the developed algorithm, the same system of equation simultaneous equations. In terms of physical systems, was solved with different initial population sets one of this would translate into a significant understanding in them indicated in table 1. Table 2 presents the results terms of the flexibility and restrictions in the obtained in five trials for an accuracy requirement of considered system since the evaluation has been 99% and compares against the actual analytical against a random set of inputs ruling out any pattern solution. and hence bias. Table 2. Evaluated coefficients for the trials The next investigation pertains to understanding Actual T-1 T-2 T-3 T-4 T-5 how the choice of initial population affects the number of iterations required for attaining convergence. 2.701 1.976 2.429 1.813 2.651 2.614 0.009 0.165 0.019 0.104 -0.170 -0.432 -1.544 -0.968 -0.842 -0.651 -0.767 -0.433 0.806 1.355 0.296 0.716 0.589 0.321 1.224 0.723 1.535 1.322 0.885 1.055 Table 3. Comparison of trial solutions Actual T-1 T-2 T-3 T-4 T-5 29 27 28 27 27 26 23 22 27 26 23 24 Figure 3. Variation of ‘R’ and number of iterations 26 27 24 23 27 26 In a very surprising outcome, no real correlation 22 26 23 24 23 20 seems to emerge between the quality of the initial population and the number of iterations as evident 19 17 21 18 19 18 from figure 3. In case P-3 the R value for initial One of the important features that is brought out is population is over 0.9 but the number of iteration at the fact that a considerable spread is noticed in the about 450 are also the highest among the 5 iterations values of the variables but the same does not reflect in while P-2 with very low R has the lowest number of terms of any major deterioration in the results. This iterations. The primary outcome of this analysis is that, indicates a rather broad solution space for the system the way in which the best chromosomes from the of equations indicating flexibility in the system initial population move over to the next generation behavior near the optimal range. The other important either full or in part as cross over / mutation needs a feature brought out by the analysis is the differential thorough analysis and the way this happens could have sensitivity of the coefficients as indicated in figure 2. an impact on the behavior of the GA in general. This aspect of GA as used in the current investigation is being revisited. www.ijorcs.org
  • 4. 4 Shilpa S Babalad, Anand M Shivapuji Figure 4 deals with the general trend of how the The above results indicate an important trend that value of R varies with the number of iterations for the though the solution was significantly impacted by the best case initial population pertaining to V2 which has choice of the initial population, it does not depend on only 63 iterations for convergence. As can be seen, the quality of the initial population. This is a rather through the data seems to be having a general scatter, a surprising find and needs more investigation. clear trend emerges on including a least square fit profile for the data. The value of R tends to increase Considering the fact that, the number of iterations before finally reaching convergence indicating a depends on the choice of the initial population and a gradual improvement with number of iterations. It is particular solution could lead to excessively high the slope of this least square fit that is of importance number of iterations, parallelization of the hot spots considering that a higher slope would mean faster rate within the code was taken up. The fundamental issue of improvement in the value of R with increasing while attempting a comparison between a serial and a number of iterations. parallel code is that since the solution depends on the choice of random numbers, it really is impossible to genuinely compare the two since the random numbers generated in each of the run could be different and could lead to a situation where in the serial code having a better choice of population could outdo the parallel code. The hot spots have however been parallelized using OpenMP and it is believed that the runs are faster as compared to serial code. However no genuine quantification can be provided for the case in question. IV. CONCLUSIONS Figure 4. Variation of R with number of iterations The focus of the current work has been towards the application of parallel genetic algorithms for solving a Extending the effort of least square fit to all the five set of simultaneous equations. A comparison done trails conducted, it can be observed that, except for between the solutions obtained using the above method trials T-2 and T-4 all other trials indicated a general with the analytical results highlights the ability of GA degradation of the solution as the number of iterations as a versatile tool capable of handling even non progressed. The solution obtained is due to pure standard system of equations. GA’s also provide the random behavior and the quality of the previous solution band / space when a large initial population is solution did not have any significant positive impact considered which can subsequently be curtailed to on the current population. Again, comparing figure 3 make the process adaptive in nature. GAs also helps in and 5, it can be observed that, the number of iterations assessing the sensitivity of the variables. Knowledge were within 75 for the case wherein the slope of the of the solution space and the variable sensitivity is a curve has been positive i.e. there is a qualitative very critical requirement in especially in case of improvement in the solution over the previous physical systems. GA also indicates the possibility of solution. In case where this is not true, it the slope is existence of more than one solution within an error negative, the number of iterations are significantly band even when a perfect solution exists. This again is high. Trial T-3 seems to have a close to zero slope critical in physical systems which operate in a band taking up around 300 iterations while the other two rather than at a particular point. iterations that have greater negative slope require significantly higher number of iterations. On the solution itself, the convergence rate seems to be highly sensitive to the initial population but not in the sense of the accuracy criterion. This is a general anomaly and is being investigated further. This is a very interesting outcome considering the fact that generally if the solution band is known then a system is programmed to be prejudiced to initiate the guess from within the same space. However as the current investigation indicates, this need not be true for all qualification criterion that are designed. Parallelization of hotspots is seen to significantly reduce the time taken for convergence and hence is recommended as a de facto standard to exploit the capabilities of the current generation of hardware and Figure 5. Variation of R with iterations for the five trials www.ijorcs.org
  • 5. Adoption of Parallel Genetic Algorithms for the Solution of System of Equations 5 compilers to reduce the processing times especially VI. APPENDIX while adopting iterative approaches as in the case of The figure below describes the scheme adopted for genetic algorithm. the solution of system of equations using Genetic Algorithms. V. REFERENCES [1] Wang D and Zhiming Z, “Differential equations with symbolic computation”, Birkhauser Basel, 2005 [2] Versteeg H and Malalasekara W, “An introduction to calculate() computational fluid dynamics – The finite volume method”, Pearson, 2008 [3] Smith I M and Griffiths D V, “Programming the finite element method”, John Wiley & Sons, 2004 Generate initial [4] Hayt W H, Kemmerly J E and Durbin S M, population “Engineering Circuits Analysis”, Tata McGraw-Hill Education, 2006 [5] Chapra S and Canale R, “Numerical Methods for Engineers”, McGraw-Hill Higher Education, 2009 [6] Hamming R W, “Numerical methods for scientists and calculate the value of engineers”, Dover Publications, 1973 R for the population [7] Sarkar T, Siarkiewicz K and Stratton R, “Survey of generated numerical methods for solution of large systems of linear equations for electromagnetic field problems”, IEEE Transactions on Antennas and Propagation, Vol, 29, No 6, 1981, pp: 847-856 [8] Gerardo Canfora, Massimiliano Di Penta, Raffaele Esposito, Maria Luisa Villani (2005) “An approach for Yes Is there a QoS-aware service composition based on genetic solution vector algorithms”. Proceedings of the 2005 conference on within the error Genetic and evolutionary computation GECCO 05 band (2005). [9] Markus OLSCHOWKA, “A new pivoting strategy for Gaussian elimination”, Linear Algebra and its No Applications, Vol 240, 1996, pp:131-151 [10] GNU (2011), “GCC, the GNU Compiler Collection, Carry the best soln to Version 4.6.1”, Available: http://gcc.gnu.org/gcc-4.6/ the next iteration, [11] OpenMP (2011), “The OpenMP API Specification for generate next Parallel Programming, Version 3.1”, Available: population by http://openmp.org/wp/ performing crossover and mutation Stop the algorithm www.ijorcs.org