Binary and Real Coded genetic Algorithms and Application