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

Method updateDims

biteopt.h:1701–1722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1699 */
1700
1701 void updateDims( const int aParamCount, const int M = 6,
1702 const int PopSize0 = 0 )
1703 {
1704 if( aParamCount == ParamCount && M == OptCount )
1705 {
1706 return;
1707 }
1708
1709 deleteBuffers();
1710
1711 ParamCount = aParamCount;
1712 OptCount = M;
1713 Opts = new CBiteOptOwned< CBiteOpt >*[ OptCount ];
1714
1715 int i;
1716
1717 for( i = 0; i < OptCount; i++ )
1718 {
1719 Opts[ i ] = new CBiteOptOwned< CBiteOpt >( this );
1720 Opts[ i ] -> updateDims( aParamCount, PopSize0 );
1721 }
1722 }
1723
1724 /**
1725 * Function initializes *this optimizer. Performs N=PopSize objective

Callers

nothing calls this directly

Calls 1

updateDimsMethod · 0.45

Tested by

no test coverage detected