evo 1.0.2+1 evo: ^1.0.2+1 copied to clipboard
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.
import "package:evo/evo.dart";
void main() {
double v = 1.0;
double s = 1.0;
Property p = new Property(v);
PropertyWithDeviation ps = new PropertyWithDeviation(v, s);
Agent a = Agent(<PropertyWithDeviation>[PropertyWithDeviation(1, 2)]);
Agent clone1 = Agent.createAsClone(a);
Agent clone2 = Agent.createAsClone(a);
clone1.mutate();
print(clone1);
print(clone2);
return;
}