evolution 0.1.3 copy "evolution: ^0.1.3" to clipboard
evolution: ^0.1.3 copied to clipboard

outdated

Simulated evolution. An evolutionary algorithm library for Dart. It will be used to optimize next trials in adaptive experimentation and can become part of flutter or web projects.

evolution #

A simple to use optimization library based on evolutionary algorithms.

It can be used in both dart and flutter projects.

Getting started #

Add the dependency to your pubspec.yaml file:

dependencies:
  evolution: #latest version

Add this import statement to your source files:

import 'package:evolutionSimple/evolution.dart';

Example #

import 'package:evolutionSimple/evolution.dart';

void main() {
 
  10.times((int i) {
    var ret =
        diff2(4, 25, 10, 10, 25, i, 10000, 10.0, fitnessOriginal, 50, 150);
    print(" TD: i: ${i} - f: ${ret.fitness()} - ag: ${ret}   ");
    return ret;
  });

}

Evolutionary algorithms [EA] optimize a problem iteratively by trying to improve a candidate solution stochastically with regard to a given measure of quality. An EA maintains a population of candidate solutions and creates new candidate solutions by mutation and recombination from existing ones keeping whichever candidate solution has the best score or fitness on the optimization problem. EAs are metaheuristics making few assumptions about the problem being optimized except for restricting the search space of candidate solutions. In this way the optimization problem is treated as a black box that merely provides a measure of quality given a candidate solution in terms of its fitness and the gradient of the problem function is therefore not needed. EAs can be used for multidimensional real-valued functions but does not use the gradient of the problem being optimized, which means they do not require the optimization problem to be differentiable, as is required by classic optimization methods such as gradient descent and quasi-newton methods. They can therefore also be used on optimization problems that are not even continuous, are noisy, change over time, etc. EAs do not guarantee an optimal solution is ever found.

1
likes
0
points
26
downloads

Publisher

verified publisherwelopment.com

Weekly Downloads

Simulated evolution. An evolutionary algorithm library for Dart. It will be used to optimize next trials in adaptive experimentation and can become part of flutter or web projects.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on evolution