Computer system using genetic optimization techniques

Abstract: A computer system comprises at least one genetic optimization agent holding a pool of genotypes, representing possible solutions to a problem. The genetic optimization agent generates new genotypes from the pool, evaluates the new genotypes according to predetermined fitness criteria, and selects the fittest of the genotypes to form a new generation of genotypes in the pool. The system also includes a number of further agents, for generating further solutions to the problem, using different techniques, such as simulated annealing, constraint logic, and neural networks. These further solutions are also represented by genotypes. The genetic optimization agent imports genotypes from the further agents and adds them to its pool of genotypes for breeding and selection. The genetic optimization agent thus provides a way of integrating a number of different problem-solving agents, in such a way as to achieve synergy between them.

Description: This invention relates to computer systems for problem solving. More specifically, the invention is concerned with a novel use of genetic optimization techniques in such a system. Genetic optimization is a technique for solving complex non-deterministic problems by a process based on evolution and natural selection. The parameters to the problem are encoded in data structures that are modelled on chromosomes and genes. An individual solution to the problem is represented by a "genotype" that comprises a particular pattern of these chromosomes. The genetic optimization process takes a pool of such genotypes and breeds them to make new genetic combinations. It then evaluates each individual for fitness (i.e. how good that particular solution is), and selects the fittest for further breeding. By repeating this process, possibly thousands or millions of times, a very good solution frequently emerges. For further details of genetic optimization techniques, reference is made to David E. Goldberg, Genetic Algorithms in Search, Optimization and Machine Learning, Addison-Wesley, Reading Ma, 1989. For particularly complex non-deterministic problems however, the search spaces become so huge that relying on genetic optimization alone is sometimes not enough. It may generate millions of genotypes that by chance are nowhere near an optimal solution and do not converge towards one quickly. The conventional answer is to add problem-specific intelligence into the genetic optimization process. This makes it create genotype encodings based pragmatic knowledge and constraints from the real-world issues. This does help the genetic optimization process to home in on good solutions early in its search. However it has several drawbacks: The genetic optimization process runs slower and therefore does far fewer iterations, reducing the degree of improvement in the fitness of solution that can be achieved in a given time. Assumptions built into the intelligent part can actually steer the genetic optimization process away from innovative and radical solutions that just may be far more effective. The solver engine itself ceases to be generic and cannot be reused without modification. In addition, not all problems are suitable for solving by genetic optimization. Some may be more suited to other known techniques such as simulated annealing, constraint reasoning or neural networks. However, it is not currently possible to decide a priori which technique will definitely be best for a given problem. Furthermore even a specific problem may be data-sensitive: that is, with one pattern of data the genetic optimization process may find a good answer quickly; but with different data a different technique may happen to work best. A.P.de Weijer et al.: "Using Genetic Algorithms for an Artificial Neural Network Model", Chemometrics and Intelligent Laboratory Systems, vol.20, no.1, 1st August 1993, pp.45-55, describes a genetic algorithm, in which a neural network is used to evaluate the solutions. WO 9114990A describes a genetic algorithm, in which programs are judged for fitness on the basis of the value of the results they produce, and the programs with the highest fitness are selected for breeding. M.C.Moed et al: "Reducing the Search time of a Steady State Genetic Algorithm using the Immigration Operator", Proc. Int. Conf. on Tools for Artificial Intelligence (IEEE, San Jose, 5th-8th November 1991) pp.500-501, describes a genetic algorithm using an "immigration" operator, which infuses random members into successive generations. D.Adler: "Genetic Algorithms and Simulated Annealing: a Marriage Proposal", Proc. Int. Conf. on Neural Networks (IEEE, San Francisco, 28th March - 1st April 1993) vol.2, pp. 1104-1109, describes a genetic algorithm in which a simulated annealing operator gets a solution as input, mutates it, and decides whether to accept the mutated solution or to stay with the previous solution. The object of the present invention is to overcome the above-mentioned problems in a novel manner. According to the invention there is provided a computer system comprising at least one genetic optimization agent comprising means for storing a pool of genotypes, representing a plurality of possible solutions to a problem, encoded in a predetermined manner, breeding means for generating new genotypes from said pool of genotypes, evaluation means for evaluating said new genotypes according to predetermined fitness criteria, and selection means for selecting the fittest of the genotypes to form a new generation of genotypes in said pool; characterised by: at least one further agent, operating independently of said genetic optimization agent, for generating further solutions to said problem, using non-genetic techniques, and for representing said further solutions by further genotypes; wherein said genetic optimization agent includes means for importing said further genotypes from said further agent and adding them to said new generation of genotypes in said pool for breeding and selection. As will be shown, in such a system, the genetic optimization agent provides a framework within which a number of different problem-solving techniques can be integrated, in such a way as to achieve synergy between the different techniques. Figure 1 is a block diagram of a computer system embodying the invention. Figure 2 is a schematic diagram illustrating a genetic optimization agent forming part of the system. Figure 3 is a schematic diagram illustrating a mutation operation used by the genetic optimization agent. Figure 4 is a schematic diagram illustrating a crossover operation used by the genetic optimization agent. One embodiment of the invention will now be described by way of example with reference to the accompanying drawings. Figure 1 shows a computer system 10, comprising a plurality of agents 11-16. These agents may be processes running on separate processors. Alternatively one or more of the agents may run as time-sharing processes on the same processor. The agents can communicate with each other by a message passing mechanism 17, which allows any one of the agents to send a message to any other agent. The system includes at least one genetic optimization agent, capable of solving problems by genetic optimization techniques. In this example there are two genetic optimization agents 11,12 but in other examples of the invention there may be only one genetic optimization agent, or more than two genetic optimization agents. The genetic optimization agent will be described in more detail below. The system also includes one or more further agents which are capable of solving problems by other (non-genetic) techniques. In this example, these further agents comprise a simulated annealing agent 13, a constraint logic programming (CLP) agent 14, and a neural network agent 15. Simulated annealing, CLP, and neural networks are well-known techniques in the art, and details of these processes do not form any part of the present invention, so that it is not necessary to describe the agents 13-15 in any further detail. In this example, the system also includes a manual optimization agent 16, which allows a human user to create and to modify solutions manually, as will be described in more detail below. In operation, each of the agents 11-16 attempts to create possible solutions to a given problem, using its own particular method. Each of these possible solutions is encoded in some predetermined manner, for example as a string of bits. The encoded solution is referred to as a "genotype". All the agents use the same predetermined genotype coding scheme, so that any genotype can be understood by all the agents. For example, in a transport scheduling problem, each genotype may contain coded information representing a particular sequence of collections and deliveries to be performed by each of a number of truck drivers. The genetic optimization agent 11 or 12 will now be described in more detail with reference to Figure 2. The genetic optimization agent maintains a pool of genotypes 20, representing a current generation of solutions to the problem in question. When the genetic optimization agent is started up, a process 21 creates an initial generation of genotypes, for example by randomization, or by using genotypes stored from a previous run. The genetic optimization agent includes a breeding process 22, which processes the genotypes in the pool 20, to produce a set of new genotypes 23. Each new genotype passes through a validation process 24 which checks whether the genotype satisfies any problem-specific constraints. For example, in the transport scheduling problem, the validation process may check whether the delivery schedule represented by the genotype would involve a driver working for more than a maximum permitted number of hours. If the genotype does not satisfy the constraints, the validation process performs a "gene-repair" operation, by searching for values which satisfy the constraints. If such values cannot be found, the new genotype is discarded. The genetic optimization agent also includes an evaluation process 25, which evaluates the new genotypes, to produce a fitness value for each one, indicating how good a solution the genotype represents. For example, in the transport scheduling problem, the fitness value may represent the efficiency of the delivery schedule represented by the genotype. The genetic optimization agent further includes a selection process 26 which selects the best of the genotypes (both from the genotype pool 20 and the new genotype set 23), and places the selected genotypes in the genotype pool. The worst of the genotypes are discarded. The breeding, validation, evaluation and selection processes are executed cyclically, to produce successive generations of genotypes. This loop continues until some criterion is satisfied, such as one of the following: A fixed number of generations have been produced. The percentage improvement in the average fitness value drops below a predetermined level. A predetermined time has elapsed. The breeding process 22 comprises a number of operators, including a mutation operator 27, a crossover operator 28, and an import operator 29. Each of these operators has a weighting value associated with it, which determines the probability of using that operator. These weighting values are adjusted for successive generations, so as to increase the probability of use of those operators that produce fitter genotypes. The mutation operator 27 takes one of the genotypes from the pool 20, and mutates it in some manner. For example, in the case of bitwise encoded genotypes, the mutation may consist of inverting a randomly-selected one of its bits. As an illustration, Figure 3 shows such a mutation operator applied to a genotype 31, where the fifth bit is selected for inversion. The crossover operator 28 selects two of the genotypes from the pool 20 as "parents", and generates two new "offspring" genotypes from these, by swapping part of their genetic information. The parents are chosen randomly, with a probability based on their fitness values, so that genotypes with higher fitness values will tend to produce more offspring. As an example, Figure 4 shows one possible crossover operator applied to two parent genotypes 41,42 to produce two offspring genotypes 43,44. A crosspoint 45 is randomly selected, in this example after the fifth bit. The first offspring 43 is created by taking the bits of the first parent 41 preceding crosspoint, and the bits of the second parent 42 that follow the crosspoint. Similarly, the second offspring 44 is created by taking the bits of the second parent 42 preceding crosspoint, and the bits of the first parent 41 that follow the crosspoint. It will be appreciated that in practice other forms of crossover operator may be used, depending on the way the genotypes are encoded. The import operator 29 sends a message to one of the other agents in the system, requesting it to send the best genotype so far created by that other agent. When the requested genotype is received, it is validated and added to the set of new genotypes 23 in exactly the same way as locally generated genotypes, produced by the mutation and crossover operators. The imported genotype will then be available for further evolution by the genetic optimization agent. The manual optimization agent 16 allows the user to select the current best genotype from any of the other agents 11-15, and to display the solution represented by the selected genotype on a screen in some readily-understandable form. The agent 16 also allows the user to manipulate the displayed solution, in an attempt to improve it. For example, in the case of the transport scheduling problem, the agent 16 may display the delivery schedule represented by the genotype in the form of a Gantt chart. The user may then modify this Gantt chart, by using a mouse or other pointer device to drag one or more bars on the chart to different locations. When the user has finished, the agent 16 reconverts the modified solution into a genotype, and makes this genotype available for export to the genetic optimization agent. The genetic optimization agent will then import this genotype, validate it, repair it, and add it to the set of new genotypes, as described above. Thus, it can be seen that the user can browse through the best solutions so far, modify the Gantt chart using his/her skill and experience, and then offer this new genotype up to genetic optimization agent. If the genotype represents a good new starting point, it will then be used by the genetic optimization agent to generate still better solutions. In summary, it can be seen that the genetic optimization agent will constantly import fit-looking genotypes from other agents and try to evolve them into even fitter individuals. In the meantime, the other agents will be trying to create good solutions their own way. If one of these other agents happens to come up with a particularly brilliant solution very quickly, it offers up this solution to the genetic optimization agent for further refinement. If not, the genetic optimization agent will operate in the normal manner, to generate its own solution. What this means in practice is that the genetic optimization process is doing two things. First, it is doing its normal job of evolving individual solutions; but second, it is also in effect evolving the fittest techniques for solving the particular problem with the particular pattern of input data. In terms of solving commercial problems this has a particularly important advantage. It is possible initially to use off-the-shelf solver agents alone to address a problem. As more problem-tailored approaches are developed, new agents can then be simply added into the architecture without changing the existing agents. If the new agents work well, a good solution will be found more quickly; if they do not, their results will simply be ignored by the genetic optimization agent. This effectively de-risks developments in one of the most high-risk areas of current computer application development. It will be appreciated that many modifications may be made to the system described above without departing from the scope of the present invention. For example, some possible modifications are as follows. The system may include a central pool of genotypes that have been offered for export by the agents. In this case, whenever the genetic optimization agent requires to import a new genotype, it would obtain it from this central pool, rather than from the other agents. The system may include a shared evaluation agent, which provides an evaluation service for each of the genetic optimization agents in the system. Instead of just the best genotype, the import operator may import several best genotypes from each other agent (assuming that more than one genotype is available in that other agent). Some method, such as tagging, may be used to avoid a recently exported genotype being re-imported into the same agent. A mechanism may be provided to keep track of the sources of genotypes, so as to keep a history of which technique worked best at what stage of optimization.

Claims: A computer system comprising at least one genetic optimization agent (11;12) comprising means for storing a pool of genotypes (20), representing a plurality of possible solutions to a problem, encoded in a predetermined manner, breeding means (22) for generating new genotypes from said pool of genotypes, evaluation means (25) for evaluating said new genotypes according to predetermined fitness criteria, and selection means (26) for selecting the fittest of the genotypes to form a new generation of genotypes in said pool; characterised by: at least one further optimization agent (13-16), operating independently of said genetic optimization agent, for generating further solutions to said problem, using non-genetic techniques, and for representing said further solutions by further genotypes; wherein said genetic optimization agent (11;12) includes means (29) for importing said further genotypes from said further agent and adding them to said new generation of genotypes in said pool for breeding and selection. A system according to Claim 1 wherein said further agent comprises one of the following: (a) a simulated annealing agent (13); (b) a constraint logic agent (14); and (c) a neural network agent (15). A system according to either preceding claim further including a manual optimization agent (16) comprising: (a) means for importing a genotype from said genetic optimizer agent or from said further agent; (b) means for converting the imported genotype into a visible representation of the solution represented by that genotype; (c) means for allowing a user to manipulate said representation to generate a modified solution; and (d) means for converting said modified solution into a genotype and for making that genotype available for import by the genetic optimizer agent. A system according to any preceding claim wherein said breeding means comprises: (a) a plurality of operators (27, 28) for operating on existing genotypes in said pool to produce new genotypes; (b) means for allocating a weighting value to each of said operators; (c) means for selecting said operators for use, with probabilities determined by the weighting values of those operators; and (d) means for adjusting said weighting values by increasing the weighting values of operators that have generated fitter genotypes and decreasing the weighting values of operators that have generated less fit genotypes. A system according to Claim 4 wherein said operators include a mutation operator (27) for applying mutations to the existing genotype to generate the new genotypes. A system according to Claim 4 or 5 wherein said operators include a crossover operator (28) for combining two existing parent genotypes to generate a new offspring genotype. A system according to any one of Claims 4 to 6 wherein said operators include an import operator (29), which constitutes said means for importing said further genotypes from said further agent. A system according to any preceding claim wherein there is a plurality of said further agents (13-16). A system according to Claim 8 wherein said further agents comprise: (a) a simulated annealing agent (13); (b) a constraint logic agent (14); and (c) a neural network agent (15).

Inventors: ARCI FRANCESCO DAVIDE LUIGI, JAMIESON MAURICE CARNDUFF, SHUTTLEWORTH MARK ANDREW, ARCI, FRANCESCO DAVIDE LUIGI, JAMIESON, MAURICE CARNDUFF, SHUTTLEWORTH, MARK ANDREW
Applicants: INT COMPUTERS LTD, INTERNATIONAL COMPUTERS LIMITED
Application year: 1996
Main classification: G06F15
IPC codes: G06N3, G06F15