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

Method setStartParams

biteaux.h:2104–2120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2102 */
2103
2104 void setStartParams( const double* const InitParams )
2105 {
2106 if( InitParams == NULL )
2107 {
2108 return;
2109 }
2110
2111 int i;
2112
2113 for( i = 0; i < ParamCount; i++ )
2114 {
2115 StartParams[ i ] = (ptype) (( InitParams[ i ] - MinValues[ i ]) /
2116 DiffValues[ i ]);
2117 }
2118
2119 UseStartParams = true;
2120 }
2121
2122 /**
2123 * Function generates a random initial solution with Gaussian sampling

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected