MCPcopy Create free account
hub / github.com/avaneev/biteopt / calcPopSizeBiteOpt

Method calcPopSizeBiteOpt

biteaux.h:2030–2037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2028 */
2029
2030 static int calcPopSizeBiteOpt( const int aParamCount )
2031 {
2032 const double cx = tanh( 0.008 * aParamCount );
2033 const double psl = 10 + aParamCount * 3;
2034 const double psh = 11.0 * sqrt( (double) aParamCount );
2035
2036 return( (int) ( psl * ( 1.0 - cx ) + psh * cx + 0.5 ));
2037 }
2038
2039 /**
2040 * Function returns specified parameter's value taking into account

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected