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

Method updateDims

mbopt.h:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 */
66
67 void updateDims( const int aParamCount, const int PopSize0 = 0 )
68 {
69 const int aPopSize = ( PopSize0 > 0 ? PopSize0 :
70 calcPopSizeBiteOpt( aParamCount ));
71
72 if( aParamCount == ParamCount && aPopSize == PopSize )
73 {
74 return;
75 }
76
77 initBuffers( aParamCount, aPopSize );
78
79 ParOpt.updateDims( aParamCount, aPopSize * 4 / 3 );
80 }
81
82 /**
83 * Function initializes *this optimizer. Does not perform objective

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected