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

Function init_genes

examples/mo-1/example_mo1.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=10.0*rnd01();
37 p.y=10.0*rnd01();
38}
39
40bool eval_solution(
41 const MySolution& p,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected