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

Method init_genes

examples/so-bind/example_bind.cpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 void init_genes(MySolution& p,const std::function<double(void)> &rnd01)
56 {
57 p.x=20.0*rnd01()-10.0;
58 p.y=20.0*rnd01()-10.0;
59 }
60
61 bool eval_solution(
62 const MySolution& p,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected