{'fraction_non_alphanumeric': 0.02388560054475931, 'fraction_numerical': 0.011680896757634488, 'mean_word_length': 4.962523422860712, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Ant Colony Optimization Algorithm for Continuous Domains Based on Position Distribution Model of Ant Colony Foraging

Ant colony optimization algorithm for continuous domains is a major research direction for ant colony optimization algorithm. In this paper, we propose a distribution model of ant colony foraging, through analysis of the relationship between the position distribution and food source in the process of ant colony foraging. We design a continuous domain optimization algorithm based on the model and give the form of solution for the algorithm, the distribution model of pheromone, the update rules of ant colony position, and the processing method of constraint condition. Algorithm performance against a set of test trials was unconstrained optimization test functions and a set of optimization test functions, and test results of other algorithms are compared and analyzed to verify the correctness and effectiveness of the proposed algorithm.


Introduction
Optimization is a kind of application technology using mathematical method to study how to search for the optimal solution for the problem in numerous solutions, as an important branch of science, which has been a widespread concern, and the rapid popularization and application in industrial production, economic and other fields. In the 1940s, with the increasingly widespread application of high-speed digital computers, optimization theory and algorithms developed rapidly and formed a new discipline. In recent years, swarm intelligence optimization theory has gradually developed into a new research direction of optimization techniques, typical algorithms with genetic algorithm [1], particle swarm optimization [2], ant colony optimization algorithm [3], artificial bee colony algorithm [4], firefly algorithm [5], and bat algorithm [6].
Inspired by the real ant colony foraging behavior in nature, early in the 1990s, the Italian scholars Dorigo et al. proposed ant colony optimization algorithm [3]. The algorithm adopts the distributed control, self-organizing, and positive feedback, and the optimization process does not depend on rigorous mathematical properties of optimization problem in itself and has the potential parallelism. Research on ant colony algorithm has shown that superiority of the algorithm for solving complex optimization problems. Because the ant colony optimization algorithm is essentially a kind of discrete optimization ideas, so the study of the optimization algorithm is mainly aimed at the problems of discrete domain optimization. But in real life, there are many optimization problems that are usually expressed as optimization problems of continuous domains. Therefore, how essentially discrete ant colony optimization algorithm would be applied to solve the optimization problems of continuous domains has become a new direction for research on ant colony optimization algorithm. In recent years, the studies of ant colony optimization algorithm for continuous domains have obtained some achievements and many scholars have proposed a variety of ant colony optimization algorithms for continuous domain [7][8][9][10][11][12][13][14][15][16][17]. Bilchev and Parmee first proposed a continuous ant colony optimization algorithm CACO [7], the algorithm for solving problems using genetic algorithms for global search of the solution space firstly and then using the ant colony optimization algorithm for local optimization to all the results. Dréo and Siarry proposed continuous interactive ant colony optimization algorithm CIAC [8], the algorithm modify the way of pheromone update and rules of path-searching, and use two ways of pheromone communication to guide ant optimization. Monmarché et al. proposed API algorithm [9]; All the ants set out from the same starting point, and each ant uses a complementary strategy that carried out optimization independently. Socha and Dorigo, who proposed continuous domain ant colony optimization algorithm ACO R [10], used a Gaussian kernel probability density function express as distribution model of pheromone and gave ACO R metaheuristic framework.
This paper proposes position distribution model of ant colony foraging and designs ant colony optimization algorithm for continuous domains based on the model to solve the standard test functions to verify the correctness and effectiveness of the algorithm. This paper is organized as follows. The relationship between the position distribution and food source in the process of ant colony foraging is analyzed in Section 2, and the position distribution model of ant colony foraging is given. To solve the unconstrained optimization problems and constrained optimization problems for ant colony optimization algorithm of continuous domains is designed in Section 3. The algorithm performance test trials and comparative analysis are given in Section 4. The conclusion is given in Section 5.

Position Distribution Model of Ant Colony Foraging
In the process of real-world ant colony foraging, people find that ant colony have a built-in optimization capability: they always can find the shortest path from nest to food. By studying this phenomenon, people propose the ant colony optimization algorithm.
We can see the process of ant colony foraging from another perspective. As shown in Figure 1, an individual ant has no guidance of pheromone in the initial of foraging and searches for food sources blindly in the whole space; at this point, ant colony is distributed uniformly in the continuous space. As the process for feeding food, ants aggregated around the source will be increased, and the density of pheromone will increase in the vicinity, thus raising more ants to the food source. Also, the higher quality of the food source will attract a greater number of ants. Thus, in the process of ant colony foraging, the position distribution of ant colony and food source and quality is the same.
We can give such a model through the above process of analysis and expansion: assuming the food source is everywhere throughout in the continuous space, the quality of food source is different. At the initial moment, ants of ant colony distribute uniformly in the continuous space and release pheromones according to food sources of their position. The higher the quality of the food source, the more the pheromone ants released. The pheromone is distributed throughout the continuous space in a certain dispersed model, and ants perceive spatial concentration of pheromone intensity, moving to the position of a higher concentration of pheromone in a certain way and achieve the exploration of unknown regions during the move. The movement of the single ant will cause the change of the whole position distribution of ant colony, so that all the ants keep aggregating to the higher quality of food source and search the highest quality of food source in the continuous space eventually. This model is called position distribution model of ant colony foraging.

Ant Colony Algorithm of Continuous Domains Design
Below, we discuss the design process of ant colony optimization algorithm of continuous domain for solving unconstrained optimization problems and constrained The Scientific World Journal 3 optimization problems based on position distribution model of ant colony foraging.

Expression of Solution.
Assuming the whole ant colony consists of groups of substructure, each group contains of ants. As shown in the following equation: the position ant corresponding to the value of the variable for j-ant in any subcolony , the subcolony of all the ants in the sequence of {ant 1 , ant 2 , . . . , ant } represents a solution of the optimization problem.

Distribution Model of Pheromones.
In the position distribution model of ant colony foraging, each ant releases pheromone according to the quality of a food source of their position; pheromones are dispersed in the entire space, with increasing distance of the source and the concentration decreasing. Therefore, we need to choose a probability density function as distribution model of ant pheromone in optimization algorithm of continuous domains. Gaussian function is a common probability density function; we assume ants of the ant colony release pheromone externally on the function. At this point, ant in any subcolony ant corresponding to pheromone distribution model ( ) can be expressed as where is the position ant of ant in the subcolony of ants , namely, the distribution center, ( > 0) means the width of the distribution function, is the maximum allowable value of the variable , is the minimum allowable value of the variable , is the dimension of solution for the optimization problem, ( > 0) is a parameter, and is used to adjust size.

Updating Position of Ant Colony.
Before updating the position of ant colony, we need to choose a group as a parent from m subcolony. First, we use formula (3) to calculate each group of subcolony corresponding to the assessed value of solution. Consider the following: where (ant 1 , ant 2 , . . . , ant n ) is the assessment value of the subcolony ant ; ( > 0) is the adjustment coefficient used to adjust the pressure of selection.
After assessment value for each group of subcolony is obtained, we calculate the selected probability for each group of subcolony according to Finally, we select parent colony according to formula (5) where 0 (0 ≤ 0 ≤ 1) is a given parameter, is a random variable which distributed in [0, 1] uniformly. is a random variable which is generated according to formula (4). After getting the parent ant colony c, the ant pheromone distribution model function ( ) in the ant colony corresponding to random number generator for sampling, the groups of children colony are generated. Then, according to the size of assessment value for each group of subcolony, we select the large assessment value of group from ( + ) group of subcolony in order to achieve position of ant colony update.

Algorithm of Solving Constrained Optimization Problem.
First, we define a solution of measure constrained optimization problem violate measure for the degree of constraint condition: For inequality constraint ( ) ≤ 0, ( ) = max{0, ( )}. For equality constraint ℎ ( ) = 0, where ℎ Min is a small positive number. viol( ) is equal to zero represent is feasible solution. viol( ) which is greater than 0 represent is infeasible solution. When using this algorithm for solving constrained optimization problems, we allow infeasible solutions with probability Max (0 ≤ Max ≤ 1) existing. Algorithm calculation process is consistent with Section 3.1, and we only adjust the update process of the position of ant colony to the following process.

Solution of Unconstrained Optimization Problems.
In the process of solving unconstrained optimization problems algorithm performance testing, we refer to [10] method; the entire test is divided into three groups; the use of this algorithm with a kind of probabilistic learning methods, a kind of continuous domains ant colony algorithm, and a kind of metaheuristic methods is compared. The operating parameters of the algorithm design in this paper are shown in Table 1.

Compare with a Kind of Learning of Probability Method.
In this experiment, we use the algorithm in this paper to compare with [10,[21][22][23][24] which used a kind of probabilistic learning method for performance. In order to ensure the fairness of the results of comparison, the entire test method according to [10,21] is given. The baseline function of this set of tests is given in Table 2. The stop condition of the algorithm is satisfied in where is the optimal solution for algorithm, * is the known optimal solution, and min needs to satisfy the accuracy, taken as 10 −10 .
The comparative test results are shown in Table 3, where the results of other methods for solving are provided by [10,21]. In the data of Table 3, the "1.0" represents the best algorithm for solving the extreme value of the basis functions. The actual median number of function evaluations is given in parentheses. Other algorithms corresponding evaluation data are the ratio of the evaluation number of the function and the best algorithms function when the stop condition is satisfied. "∞" represents the use of the algorithm that can not seek to satisfy the stop condition. The results marked " * " represent the use of the algorithm to get the corresponding extreme value of the basis functions, not to satisfy stop condition results are found every time.
By the test results, it can be found that the algorithm has better searching capability and faster speed of convergence. In the process of solving seven of the basis functions, four functions of solution have results significantly better than other probability learning algorithms.

Compare with a Kind of Ant Colony Algorithm of Continuous Domains.
In this experiment, we use the algorithm in this paper and a kind of ant colony of continuous domains in [10] for performance comparison. The method of test is given according to [10]. The basis functions of this test are given in Table 4. The stop condition of algorithm is satisfied in where 1 is relative error, the value is 10 −4 , 2 is the absolute error, and the value is 10 −4 . The results of comparative tests are shown in Table 5, where the percentage in brackets represents the minimum value of the independent use of the method for solving the corresponding basis functions 100 times, and ultimately the number of the stop conditions satisfied as a percentage of the total number of the algorithms is obtained. The symbol "-"represents that the algorithm is not used for solving the corresponding minimum of basis function; there is no data available for reference.
The results of this test prove that algorithm of this paper has better searching capability and faster speed of convergence. But we also find that the stability of the algorithm in this paper is relatively worse. In the process of solving the minimum of six basis functions, there are five solving functions which cannot guarantee that each stop solution condition satisfied the required accuracy.

Compare with a Kind of Metaheuristic Method.
In this experiment, we use the algorithm in this paper and a kind of metaheuristic method in [10] for performance comparison. The test is carried out according to methods given in [10]. The basis functions of this set of tests are shown in Table 6. In this experiment, except for the three basis functions given in Table 6, the function also uses B 2 function, GP function, and R 2 and R 5 functions given in Table 4.
The results of comparative tests are shown in Table 7. We can find that algorithm of this paper has better searching capability and faster speed of convergence. But it also expose the instability of the algorithm.
When solving the minimum of the basis function Easom, stop condition to satisfy the accuracy requirements of the solution is found in the process of the algorithm independently running 100 times in only 43.
The algorithm for solving the convergence curve of the minimum of B 2 function is shown in Figure 2. After the 158th iteration in the algorithm of this paper, the values of function have been less than 10 −10 ; then the optimal solution has been found in the algorithm.
In the process of solving the function B 2 in Figure 3, each group of ant colony corresponding to the solution with the change of the distribution of algorithm iteration The Scientific World Journal 7

Solution of Constrained Optimization Problems.
In this set of test experiments, we use this algorithm for solving the basis function G01∼G12 of constrained conditions, and [18][19][20] are compared. In order to guarantee the fairness of the test results, the method of test is consistent with the methods of [18][19][20] adopted. Using the algorithm for solving various basis functions 50 times independently, best results are compared.
In the process of running each algorithm, if the optimal value function obtained by consecutive 150 times does not change, the running algorithm exits. Otherwise, the algorithm exited after iteration 30,000 times. During solving the basis test function of constrained conditions, the parameter values of the algorithm in this paper are shown in Table 8.
The results of comparative tests are shown in Table 9.
We can see from the test results that effect of the algorithms in this paper for solving functions G01 and G02 was poor and solving the extreme values of function G03∼G06, G08, G09, G11, and G12 gets minimum. It is evident that the algorithm in this paper for solving constrained optimization problems is effective. The algorithm in this paper for solving the maximum convergence curve of function G08 is shown in Figure 4.
In the process of solving, the feasible solution is found in the 17th iteration; after the 19th iteration, each group of subcolony corresponding solution is a feasible solution; the maximum value 0.095825 is founded by algorithm in the 157th iteration; all 10 groups of ant colony have found the maximum value in the 210th iteration.  The process of the algorithm in this paper for solving function G08 shown in Figure 5. Distribution changes of each group of ant colony corresponding to the solution with algorithm iteration are shown. The initial distribution of ant colony is shown in Figure 5(a); position of all ant colony does not satisfy all constraint conditions. There have been 7 groups of ant colony corresponding to the position that satisfied the constraint condition in the 25th iteration ( Figure 5

Conclusion
In this paper, in the process of position distribution relationship between food sources of ant colony foraging for analysis, a new position distribution model by ant foraging is proposed. Any point in the solution space could be seen as a food source in the model, using multiple groups of subcolony for optimization; each group of subcolony represented a solution of the problem. In every iteration step, a group of ant colony was chosen from all subcolonies as the parent ant colony firstly and then sampled from pheromone 8 The Scientific World Journal  The Scientific World Journal 9 density function of the group, generated children colony, and finally updated position of ant colony, so that each group of subcolony continued moving towards the solution space of the higher fitness value, converging to the optimal solution eventually. By simulating the above process, we designed ant colony optimization algorithm of continuous domains; a set of test functions for unconstrained optimization problems and a set of test functions optimization comparison test were compared and gave the solving process of the B 2 test function and test function G08. Test results show that, in solving unconstrained optimization problems, the proposed algorithm has better searching capability and faster speed of convergence, but the stability of the algorithm is poor; when solving constrained optimization problems, the proposed algorithm has the basic optimization capability consistent with other algorithms.