• No results found

Mathematics Programming based on Genetic Algorithms Education

N/A
N/A
Protected

Academic year: 2021

Share "Mathematics Programming based on Genetic Algorithms Education"

Copied!
7
0
0

Loading.... (view fulltext now)

Full text

(1)

Procedia - Social and Behavioral Sciences 192 ( 2015 ) 70 – 76

Available online at www.sciencedirect.com

1877-0428 © 2015 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).

Peer-review under responsibility of Academic World Research and Education Center. doi: 10.1016/j.sbspro.2015.06.011

ScienceDirect

2nd GLOBAL CONFERENCE on LINGUISTICS and FOREIGN LANGUAGE TEACHING,

LINELT-2014, Dubai – United Arab Emirates, December 11 – 13, 2014

Mathematics Programming Based on Genetic Algorithms Education

Farshad Kiyoumarsi

a

*

aIslamic Azad University - Shahrekord Branch, Iran

Abstract

Genetic algorithms are optimizing algorithms, inspired by natural evolution. Investigations on genetic algorithms reveal that these algorithms are different from other search-based optimizing methods. In most optimizing techniques based on a point, the analysis is done according to only some of the decision-making regulations. These techniques could yield an incorrect answer in the searching spaces having several maximum points. In other words, it is possible that the local maximum point be obtained as the answer. Hence, genetic algorithms could also be used in mathematical programming. The common techniques utilized in this field are not effective since they need a series of limitations such as functions continuity and differentiation to be optimized. Moreover, there is no originality in these techniques and this is why the genetic algorithm method could be used in these cases, especially for non-linear programing to reach desirable outcomes.

© 2015 The Authors. Published by Elsevier Ltd.

Peer-review under responsibility of Academic World Research and Education Center. Keywords: Genetic Algorithm, Linear, Non-Linear, Programming, Optimization.

1. Introduction

Genetic algorithms produce a complete population of answering points. Each point is tested independently and to establish new populations, including modified points, existing points merits could be tested (Dehini etal., 2012). Genetic algorithms consider many points simultaneously and these characteristics conform them with more parallel processors, since considering each point needs some calculations including the target function differentiation, etc (Sivanandam etal., 2007).

In this algorithm, different operands and mechanisms are implemented, that is described here to invention of genetic algorithms as optimizing algorithms (Asfaw etal., 2011) is mainly according to natural evolution simulation

* Farshad Kiyoumarsi Tel.: +8723458126784 E-mail address: [email protected]

© 2015 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).

(2)

and they have not been based on strong mathematical theories. This technique uses natural genetics, statistical methods (D`Ambra etal., 2010) and a type of creativity and tries to reach on optimized conclusion by the use of these tools (Alden, 2005).

At the moment, there are 3 general methods for optimizing search that include: analytical, enumeration and random (Rajni etal. 2005). Analytical techniques have been studied extensively (Enrique, 2009). They are divided into two direct and indirect categories (Iyer, 2008; Bernholtz, 1964). The indirect methods obtain the optimized points by solving a set of non-linear equations that are achieved by putting the target function differentiation equal to zero (Griva etal., 2009). The direct methods search the optimized points by the target function and moving in gradient direction (Fletcher, 1970). These two techniques are optimized and developed but some proofs to be described later show that they are incapable of optimizing properly. The reasons include (Baptiste, 2009):

(1) Both techniques have a local field. The optimized point these techniques are searching is the best point in the neighbourhood of the present point. For example, if we have a function with two peaks, of which one is false and one is real, then reaching the smaller peak cause us to be hindered from the real point. Therefore, we should use other methods, such as random restarting with other loops to achieve the best response.

(2) Analytical techniques depend on existence of differentiations. Even if we use an approximate numerical differentiation in the calculations, we will end up with an intensive shortage. Therefore it is clear therewith that the techniques based on continuation limits and derivatives are not suitable for every case.

Although the random search algorithms have more popularity and perform better than the other two methods, but they do not operate appropriately, when the responsive domain is large. But the genetics algorithm has all the advantages of the mentioned methods, as well as not having their disadvantages, and uses creativity, which is mostly evident in human attitudes. It also gets the aid of probability functions as its tool. Hence the differences of the other techniques with genetic algorithm are dividing into four categories (Sivanandam etal., 2007):

a) Genetic algorithms with a set of coding.

b) Genetic algorithms with a set of points, that start search from not only a point.

c) Genetic algorithms use a final of information (target function), not from the derivatives or other auxiliary information.

Genetic algorithms use probability laws and not a fixed law. 2. Linear programming

linear programming is among the mathematical programming models, which is considered as recognized tools that cause millions of dollars savings for large trade units in the world`s advanced cities and its use is rapidly advancing in other parts of the community (Mamat etal., 2012). best and optimal solution. In other words, in case performing the activities are related to utilizing limited resources, commonly needed for them, the resource allocation and hence determination of the activate rates should be considered (Golabi etal., 2008).

Indeed, it can be said that there are tens of published books and articles in this regard for its important applications and about ¼ of the total practical calculations for computers are related to linear programming and its derivations (Griva etal., 2009).In brief, linear programming is related to the problems of limited resources between competitive activities to find the

Mathematical models are used in linear programming to explain the considered problem. The word “linear” indicates that all the mathematical relation in this model should necessary be linear functions (Luenberger, 2008). Therefore, linear programming is programming the activities to obtain an optimum result, which is better than the alternative results.

The evident specification of linear programming models is that the target functions and the constraints in them are linear and the linearity of some models could be justified in accordance with the physical characteristics. 3.Non-linear programming

Most economists (Andleeb etal., 2011) have realized that non-linearity of functions in economic programming is not considered as exception, but it is quite general (Pant etal.,2008). Therefore the extent of applying linear programming requires this important subject to be considered, too.

(3)

The aim of non-linear programming, as a whole is finding the values of x= (xΌ,x΍,…..,xn), such that (Griva etal., 2009):

Maximize F(X)

gi(x)≤bi i=1,2,……,m x ≥ 0

Where f(x) and gi(x) are definite functions from n deciding variables.

There is no algorithm capable of solving all the problems within the above framework but by applying specific theories and assumptions about the functions, numerous significant models are obtained that remarkable developments have been achieved for their solutions and new investigations are being done. The extent of non-linear programming (Hosseinpourtehrani etal., 2011) is such that not all its types could be considered and therefore some examples of non-linear programming applications are to be analyzed in this part and compared with genetic algorithm technique (Kangrang etal., 2011).

4. Comparison of steepest descent method with genetic algorithm

As mentioned, this technique uses function gradient to achieve the target and optimum solution, which in turn requires derivability and continuity of the function in all the slope, since if the function does not have such characteristics, we will confront difficulties in obtaining the gradient and in this case, this technique is not applicable, while the genetic algorithm technique has no dependence to derivability and continuing of the function and starts by selecting some points in the slope, and searches the optimal answer by using the primary points. Moreover, this technique does not need additional calculations, such as differentiation and obtaining gradients and also replacing values in complex functions. Meanwhile the solution of different problems by both methods, empirically, indicates that the answer is obtained in a shorter time by genetic algorithm (implementing genetic algorithm technique is done by “C” programming, and implementation of Steepest descent is by BASIC language). Thence, by the above comparisons we conclude that genetic algorithm is a more efficient method than steepest descent (Russell, 2010).

For example, to minimize:

F(xΌ,x΍,xΎ,xΏ) = (xΌ + 10x΍)² + 5(xΎ - xΏ)² + 10(xΌ - xΏ)΀ + (x΍ - xΎ)΀

We used the program consisting of Steepest descent method and started the point (1,0,-1,3) as the starting point, and we reached the minimum of 3. 663253664E-13 with the following coordinates:

xΌ = 1.550654466E – 04 x΍ = - 1.773445193E – 05 xΎ = 3.891654581E – 04 xΏ = 3.082981066E – 04

On the same computer used previously, and after some repeated procedures after 482ms, although the real min, point is the point (0, 0, 0, 0) and the genetic Algorithm technique obtained the answer after 320ms.

The justification made for this result is that since the genetic Algorithm technique uses the primary population, randomly, it would be possible for the primary selected points to be close to the optimal and we, therefore, could get to the result very soon. In such conditions that the primary points are selected farther than the optimal points, it takes more time to get to the answer.

5. Comparison of Dividen – Flether – POWELL METHOD with genetic algorithm technique

As discussed about quadratic functions and assuming continuity, the function starts approximation and obtaining the next points. Thus, continuity of the function is a vital and inseparable condition to get to the answer by such methods. But Dividen-Fletcher-Powell method (Murtagh etal., 2005) has a great advantage comparing to the previous method, which is that we needed to obtain Housian matrix and also its inverse case in calculations, that required a long time, but fortunately the aforementioned method does not need those calculations, however, it seems that the derivability and continuity of the function in this method are intensely required. Moreover, this method has complicated and long calculations that may cause inaccuracy in the results, since according to these program logics,

(4)

the linear search is done by 3rd order internal search and the searches are not continued up to the final convergence. Instead, a smaller amount for the function is searched, which of course it means that the convergence characteristics related to the quadratic functions in this method are lost. But the genetic algorithm technique does not have any of the defects and does not use any approximation in obtaining the value of the functions. Hence, the genetic algorithm technique in this case is a more efficient method, too. For example, to minimize:

F(xΌ,x΍,xΎ,xΏ) = (xΌ + 10x΍)² + 5(xΎ - xΏ)² + 10(xΌ - xΏ)΀ + (x΍ - xΎ)΀

We used the program consisting of Dividen-Filcher-Powell method and started the point (1,0,-1,3) as the starting point, and we reached the minimum of 3.046283678E-13 with the following coordinates:

xΌ = 1.8568677E – 04 x΍ = -1.85806523E – 05 xΎ = 3.51518448E – 04 xΏ = 3.51564962E – 04

On the same computer used previously, and after some repeated procedures after 500ms, although the real min, point is the point (0, 0, 0, 0) and the genetic Algorithm technique obtained the answer after 320ms.

6. Comparison of Fletcher-Reeves method with genetic algorithm

The direction of sequential search in Fletcher-Reeves method (Jella, 2011) is pained and this method finds the minimum of quadratic function with “n” variables, after “n” searches. This is particularly true if the linear searches are properly and accurately done and there is no error due to rounding up. Of course this method is used for non-quadratic functions, too. When the approximation gets close to minimum, such that the 2nd order approximation is allowed, then we will have the 2nd order convergence characteristic. Fletcher and reeves suggest that in this case the position of the nth search should be in the direction of the Steepest descent. Also the construction of paired directions should start all over again, in which case it will possess all the defects of the used methods and hence it will not have the applicability of Fletcher-Powell technique. Therefore, obviously the generic algorithm will be more efficient as compared to this method. For example, to minimize:

F(xΌ,x΍,xΎ,xΏ) = (xΌ + 10x΍)² + 5(xΎ - xΏ)² + 10(xΌ - xΏ)΀ + (x΍ - xΎ)΀

We used the program consisting of Steepest descent method and started the point (1,0,-1,3) as the starting point, and we reached the minimum of 3.796383388E-13 with the following coordinates:

xΌ = 1.146311896E – 04 x΍ = - 1.786272352E – 05 xΎ = 3.824374431E – 04 xΏ = 3.835257332E – 04

On the same computer used previously, and after some repeated procedures after 480ms, although the real min, point is the point (0, 0, 0, 0) and the Genetic Algorithm technique obtained the answer after 320ms.

7.Comparison of genetic algorithm technique with simplex method

Simplex method (Faigle etal., 2010) is a useful method that could be used for a wide variety of optimizing problems. But it should not be viewed as the general remedy, in this aspect. With convex target function and constraint area, this technique could be successful, although it is possible that specific characteristics of a problem cause us to slightly change the pausing criterion. If the target function is concave or if the constraint area is not convex, it could simply be observed how this method could fail. Therefore, this technique is not comparable with genetic algorithm, since it could be applied for only one field of problems and is not applicable for concave functions, although genetic algorithm has no limits. Hence the genetic algorithm is suggested here, too.

8. Hook and jeeves evolved technique and its comparison with genetic algorithm method

The previous methods that were used for solving unconstraint optimizing problems were not effective. It could be imagined that they could be changed in such a way to include the constraints, too. Indeed, it is suggested that only the relativity of very large values to the target function (in minimizing problem) is sufficient, when the constraints are not considered. Certainly, this idea is an evident and practical suggestion and could be programmed simply. The examining point is considered whether it is within the constraint area or not.

(5)

value for the target function. In this way, the searching would be possible and conducted towards the main point within the area But this method is not a completely logical method, since sometimes, it reaches to wrong answers (Giannessi etal.,2010). For example, to minimize:

F(xΌ,x΍,xΎ,xΏ) = (xΌ + 10x΍)² + 5(xΎ - xΏ)² + 10(xΌ - xΏ)΀ + (x΍ - xΎ)΀

We used the program consisting of Steepest descent method and started the point (1,0,-1,3) as the starting point, and we reached the minimum of 3.046283678E-13 with the following coordinates:

xΌ = 1.235485796E – 04 x΍ = - 1.164908927E – 05 xΎ = 3.527013664E – 04 xΏ = 3.186153137E – 04

On the same computer used previously, and after some repeated procedures after 450ms, although the real min, point is the point (0, 0, 0, 0) and the genetic Algorithm technique obtained the answer after 320ms.

9. Results And Discussion

Linear programming is a valuable technique, dealing with limited resource allocation to competitive activities and also other problems that their mathematical models are similar to allocation problems. This technique is considered as an important and competent tool for industrial and commercial organizations. Simplex method is a competent and effective algorithm that solves problems regarding linear programming, with hundreds or thousands of limitations and variables, by the aid of computer.

Fig.1 Comprarison between methods by solving times (MS)

Nevertheless, all the allocation problems could not be formulized, even with logical approximation, with linear programming models. However, all the linear programming problems could be solved by genetic algorithm method, but we get to the answer in most cases, later than the ordinary methods. Therefore, we do not propose genetic algorithm technique for solving linear programming problems. Some general conclusion could be observed by the analysis of all the techniques and all these techniques have common problems and some specific matters. But, genetic algorithm has none of these defects and moreover, the speed of operation in most of these methods is low, due to some complicated operations that increases the calculation time, but the calculation time in genetic algorithm is very low. About the defects of the ordinary techniques and the advantages of genetic algorithm could be stated that all these methods depend on the existence of derivatives, which by itself is a imitation, since even if we use approximate numerical derivatives in the calculations, we will end up with an intensive shortage. Meanwhile, some

(6)

of the scientific spatial parameters have a fewer relations, for expressing a derivative. It is why that the techniques, based on continuing limits and existence of derivatives, are not suitable for every type of problems. Moreover, since these techniques are the search methods, searching the vest neighboring point to the present one, it would be possible that a false peak or a false optimal point prevent us from reaching the real optimal point. Therefore, to solve these problems, non-linear functions are suggested and this is where the genetic algorithm is used, since it has none of the above problems, and secondly, it has a higher accessing speed to reach the optimal point, as compared to ordinary techniques. It also has higher operating speed, since there is no need, in genetic algorithm for differentiation calculations and extra operations, and thirdly, it has all the advantages of genetic algorithm, which include:

1- A set of codes are used in genetic algorithm, instead of parameters and in each time the algorithm is repeated, these codes may change and indeed a parameter is changed with a better parameter.

2- In genetic algorithms a set of points is used instead of one.

3- Genetic algorithm used the target functions to obtain the final result, not the derivatives. 4- Genetic algorithm uses probability laws, instead of a specific law.

The dynamic programming method has problems, too that includes finding the appropriate revocable relation for each specific problem that causes the lack of having a general method to solve such problems and since no general procedures could be found in this respect, then no algorithm and computer programs could be invented to solve such problems in classical way. Moreover, we observed in this method that we started from one process and by using the target function; we decided which others process to tend to. Again, such problems are referred to the target function and its continuity or discretion, and whether it is derivable in all points. If the target function is non-linear, then the previous section discussion will be considered and the methods to solve the non-linear functions that as defined, using the algorithm technique is the optimal way to solve the problems are also taken into account.

Reference

Alden, H., (2005). Foundations of genetic algorithms: 8th international workshop, FOGA 2005, Aizu-Wakamatsu City, Japan, January 5-9: revised selected papers, Volume 8, Springer.

Andleeb, L., Munshi, A., H., and Dar, A., R., (2011). Genetic Diversity in Salix viminalis in the Kashmir Valley, India. American Journal of Biochemistry and Molecular Biology, 1: 178-184.

Asfaw, T., D., and Saiedi, S., (2011). Optimal Short-term Cascade Reservoirs Operation using Genetic Algorithm. Asian Journal of Applied Sciences, 4: 297-305.

Baptiste, J., (2009). Optimisation et analyse convexe: exercices et problemes corriges, avec rappels de cours, L'Editeur : EDP Sciences. Bernholtz, B., (1964). A new derivation of the Kuhn – Tucker conditions, Operations Rescarch 12.NO.2.295-299.

D`Ambra, A. and Sarnacchiaro, P., (2010). Some Data Reduction Methods to Analyze the Dependence with Highly Collinear Variables: A Simulation Study. Asian Journal of Mathematics & Statistics, 3: 69-81.

Dehini, R., Ferdi, B., and Bekkouche, B., (2012). Fuzzy Logic Controller Optimization Based on GA for Harmonic Mitigation. Journal of Artificial Intelligence, 5: 26-36.

Enrique, A., (2009). Optimization techniques for solving complex problems, John Wiley and Sons.

Faigle ,U., Kern , G., (2010). Algorithmic Principles of Mathematical Programming (Texts in the Mathematical Sciences), Springer; 1st ed. Softcover of orig. ed. 2002 edition, ISBN-10: 9048161177, December 7.

Fletcher, R.,(1970). A new approach to variable metric algorithms, Comp Journal . 13.317-322.

Golabi, M., Papan, P., and Karami, B., 2008. Leaching Mathematical Modeling for Two Zones of North Khuzestan Province. Asian Journal of Scientific Research, 1: 394-402.

Giannessi, F., Komlosi, S., Rapcsak, T., (2010). New Trends in Mathematical Programming: Homage to Steven Vajda (Applied Optimization), Springer; Softcover reprint of hardcover 1st ed. 1998 edition, ISBN-10: 1441947930, December 7, 2010.

Griva, I., Nash, S., Sofer, A., (2009). Linear and Nonlinear Optimization, SIAM.

Hosseinpourtehrani, M. and Ghahraman, B., (2011). Optimal Reservoir Operation for Irrigation of Multiple Crops using Fuzzy Logic. Asian Journal of Applied Sciences, 4: 493-513.

Iyer, F., (2008). Operation Research, Tata McGraw-Hill Education.

Jella, N., (2011). Mathematical Programming: Potential Optimization Methods: Linear, Non-Linear, and Dynamic Programming, LAP LAMBERT Academic Publishing, ISBN-10: 3844384324, May 31.

Kangrang, A., Phumphan, A., Homwuttiwong, S. and Compliew, S., 2011. A Fuzzy-GAs for Calculating Grass Reference Evapotranspiration. Journal of Applied Sciences, 11: 2599-2605.

Luenberger, D., (2008). Linear and nonlinear programming, Springer.

Mamat, M., Deraman, S., K., Mohamad Noor, N., M., and Rokhayati, Y., 2012. Diet Problem and Nutrient Requirement using Fuzzy Linear Programming Approach. Asian Journal of Applied Sciences, 5: 52-59.

Murtagh, B., A., Saunders, M., A., (2005). Large-scale linearly constrained optimization MATHEMATICAL PROGRAMMING, Volume 14, Number 1, 41-72, May 16.

(7)

Pant, M., Sharma, P., Radha, T., Sangwan R., S. and Roy, U., 2008. Nonlinear Optimization of Enzyme Kinetic Parameters. Journal of Biological Sciences, 8: 1322-1327.

Rajni, V., Patel, F., Shadpey, (2005). Control of redundant robot manipulators: theory and experiments, Springer.

Russell, C., 2010. Introduction to Mathematical Programming, Pearson Learning Solutions, 3 edition, ISBN-10: 0558859143, November 18. Sivanandam, S., N., Deepa, S., N., (2007). Introduction to genetic algorithms , Springer.

References

Related documents

The aim of the study was to measure behavioral data (such as eye and head movements) and to assess how the two age groups differ in terms of number of safe street crossings,

The most important contributions of this paper are (i) the proposal of a concern mining approach for KDM, what may encourage other groups to start researching on

The monitor screen on the mobile exhibits the real time values of level detector, gas detection, fire detection, moving motion detection and obstacle detection by

And the fish species richness, total abundance, total biomass and total abundance and total biomass dominant fish species were significantly changed in seasons in

The influence of concentration of gelling agent on release and permeation of lycopene across egg membrane as at fourth hour from the prepared formulation is depicted in

Recently, the interaction of a high intensity laser pulse with a nanometer thin foil has raised great interest as it promises the creation of a dense, attosecond short,

An important question in managing patients with prior anti- NMDAR encephalitis concerns the duration of long-term monitoring after the initial episode to facilitate early