MCPcopy Create free account
hub / github.com/Arash-codedev/openGA / init_genes

Function init_genes

examples/so-1/example_so1.cpp:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32typedef EA::GenerationType<MySolution,MyMiddleCost> Generation_Type;
33
34void init_genes(MySolution& p,const std::function<double(void)> &rnd01)
35{
36 p.x=20.0*rnd01()-10.0;
37 p.y=20.0*rnd01()-10.0;
38}
39
40bool eval_solution(
41 const MySolution& p,

Callers 1

init_population_rangeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected