| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected