# Simple Evolutionary Algorithm

### Description

Simple Evolutionary Algorithm for Minimization.

### Usage

1 2 |

### Arguments

`fn` |
the objective function to be minimized. |

`lower` |
vector of lower bounds for all coordinates. |

`upper` |
vector of upper bounds for all coordinates. |

`N` |
number of children per parent. |

`...` |
additional parameters to be passed to the function. |

`con` |
percentage of individuals concentrating to the best parents. |

`new` |
percentage of new individuals not focussed on existing parents. |

`tol` |
tolerance; if in the last three loops no better individuals were found up to this tolerance, stop. |

`eps` |
grid size bound to be reached. |

`scl` |
scaling factor for shrinking the grid. |

`confined` |
logical; shall the set of individuals be strictly respect the boundary? Default: FALSE. |

`log` |
logical, should best solution found be printed per step. |

### Details

Evolutionary search to minimize a function: For each point in the current
generation, *n* random points are introduced and the *n* best
results of each generation (and its parents) are used to form the next
generation.

The scale shrinks the generation of new points as the algorithm proceeds. It is possible for some children to lie outside the given rectangle, and therefore the final result may lie outside the unit rectangle well. (TO DO: Make this an option.)

### Value

List with the following components:

`par` |
numeric vector representing the minimum found. |

`val` |
function value at the minimum found. |

`fun.calls` |
number of function calls made. |

`rel.scl` |
last scaling factor indicating grid size in last step. |

`rel.tol` |
relative tolerance within the last three minima found. |

### Note

Original Mathematica Version by Stan Wagon in the SIAM textbook. Translated to R by Hans W Borchers.

### Author(s)

HwB <hwborchers@googlemail.com>

### References

Stan Wagon. “Think Globally, Act Locally". Chapter 4 In: F. Bornemann, D. Laurie, S. Wagon, and J. Waldvogel (Eds.). The SIAM 100-Digit Challenge. Society of Industrial and Applied Mathematics, 2004.

### See Also

`DEoptim`

in the ‘DEoptim’ package.

### Examples

1 2 3 4 5 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.