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

Method updateDims

nmsopt.h:69–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 */
68
69 void updateDims( const int aParamCount, const int PopSize0 = 0 )
70 {
71 const int aPopSize = ( PopSize0 > 0 ? PopSize0 :
72 ( aParamCount + 1 ) * 4 );
73
74 if( aParamCount == ParamCount && aPopSize == PopSize )
75 {
76 return;
77 }
78
79 N = aParamCount;
80 M = aPopSize;
81 M1 = aPopSize - 1;
82 M1i = 1.0 / M1;
83
84 initBuffers( N, M );
85 }
86
87 /**
88 * Function initializes *this optimizer. Performs N=PopSize objective

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected