C Language Programming Techniques for Genetic Algorithm in Electrical Engineering computations

ชัยณรงค์ วิเศษศักดิ์วิชัย, ประเสริฐ เผ่าชู, สายชล ชุดเจือจีน


The structure of C language programming is an appropriate for engineering calculations. The C language programming, in particular for the OOP (Object-Oriented Programming), having present in this paper which is implemented by the extended C language, also known as the C++ language programming. The programmatic objects of language are used to realize the genetic algorithm that is the data abstraction of the OOP for mathematic problems in electrical engineering computations. The constructors of class based object are used to initializing purpose for the chromosome consisting of the size, form and number of genes in the genetic algorithm. Where the attributes of chromosome are defined by the data member of C++ class while the genetic operators and evolutionary process will be implemented by the function members. The genetic object of this article gives satisfactory results for the numerical solutions in the economic power dispatch and load flow problems of electrical power system.


Object-oriented programming, Genetic algorithm, Economic power dispatch, Load flow

Full Text:



Belegundu, A. D. and Chandrupatla, T. R. Optimization Concepts and Applications in Engineering. Cambridge University Press ;2011; 318 - 324.

Duman, S., Özturk, A., Dosoglu, M. K., and Tosun, S. Economic Dispatch by Using Different Crossover Operators of Genetic Algorithm. IU - JEEE, 2010; vol.10, Issue 19; 1173-1183.

Ghiasi, M., Rashtchi, V. and Hoseini, S. H. Optimum Location and Sizing of Passive Filters in Distribution Networks Using Genetic Algorithm. In: Emerging Technologies, 2008. ICET 2008. 4th International Conference on. IEEE 2008; 162-166.

Gjylapi, D. and Kasëmi, V. The Genetic Algorithm for Finding The Maxima of Single-variable Functions. International Journal Of Engineering And Science 2014; , Vol.4, Issue 3: PP 46-54.

Kaur, A., Singh, H. P. and Bhardwaj, A. Analysis of Economic Load Dispatch Using Genetic Algorithm. IJAIEM 2014 , vol.3, Issue 3: 240 – 246.

Kim, H., Samann, N., Shin, D., and Ko, B. Jang, G. and Cha, J. A New Concept of Power Flow Analysis. JEET 2007 , vol. 2 no. 3312 – 319.

Lubkeman, D.L., Ghosh, A. and Zhu, J. Object- oriented Programming for Power Engineering Education. Proc. SSST '93., Twenty-Fifth South eastern Symposium on, Tuscaloosa: 1993;, 69-73.

Mastorakis, N.E. Solving Non-linear Equations via Genetic Algorithms. Proc. the 6th WSEAS Int, Lisbon: 2005; 24 -28.

Nasiruzzaman, A.B.M. and Rabbani, M.G. Implementation of Genetic Algorithm and Fuzzy Logic in Economic Dispatch Problem. Proc. ICECE 2008, Dhaka:2008: 360 -365.

Toso, R.F. and Resende, M. G. A C++

Appli cation Programming Interface for Biased Random-key Genetic Algorithms. Optimization Methods and Software 2015; Vol.30, Issue 181-93