SOLVING
LINEAR
EQUATIONS
WITH GENETIC
SUBMITTED TO: DR ALI
MUHAMMAD LATIF
PRESENTED: SAJID ALI
1
Basic concept of Linear Equation in GA:
 For solving linear system of equations iterative algorithms are used.
 GA in finding optimal solution of systems of simultaneous linear equations.
 Conventional numerical methods such as Gaussian Elimination method produce a set of solutions for a
particular system of simultaneous linear equations
 GA includes a search for optimal values for the unknown variables in the equation that best fit the
system of linear equation. In mathematics solving for avoid the rounding errors(big dis-advantage of
mathematical solving systems) and inverting large matrices.
2
How genetic algorithms can be used to find the unknowns in a
system of linear equations?
We want to figure out which x and y values we can use to solve both equations
simultaneously
3
Creating Class, Gens
we can do with our genetic
engine using one gene for
each unknown and a gene set
containing all numbers in the
range of expected values
4
Fitness Function
we can substitute the gene values directly into x and y
5
Fitness Class
With Fitness defined as:
6
Optimal fitness
That means the optimal fitness value in our test is going to be zero.
7
Display
In display, we can write out the x and y values
8
Final Part Just Running
9
10

Solving linear equations with genetic algorithm by Sajid ali

  • 1.
    SOLVING LINEAR EQUATIONS WITH GENETIC SUBMITTED TO:DR ALI MUHAMMAD LATIF PRESENTED: SAJID ALI 1
  • 2.
    Basic concept ofLinear Equation in GA:  For solving linear system of equations iterative algorithms are used.  GA in finding optimal solution of systems of simultaneous linear equations.  Conventional numerical methods such as Gaussian Elimination method produce a set of solutions for a particular system of simultaneous linear equations  GA includes a search for optimal values for the unknown variables in the equation that best fit the system of linear equation. In mathematics solving for avoid the rounding errors(big dis-advantage of mathematical solving systems) and inverting large matrices. 2
  • 3.
    How genetic algorithmscan be used to find the unknowns in a system of linear equations? We want to figure out which x and y values we can use to solve both equations simultaneously 3
  • 4.
    Creating Class, Gens wecan do with our genetic engine using one gene for each unknown and a gene set containing all numbers in the range of expected values 4
  • 5.
    Fitness Function we cansubstitute the gene values directly into x and y 5
  • 6.
  • 7.
    Optimal fitness That meansthe optimal fitness value in our test is going to be zero. 7
  • 8.
    Display In display, wecan write out the x and y values 8
  • 9.
    Final Part JustRunning 9
  • 10.