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

Method eval

nmsopt.h:466–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464 */
465
466 double eval( CBiteRnd& rnd, const double* const Params )
467 {
468 int i;
469
470 for( i = 0; i < N; i++ )
471 {
472 NewValues[ i ] = wrapParamReal( rnd, Params[ i ], i );
473 }
474
475 const double NewCost = fixCostNaN( optcost( NewValues ));
476 NewCosts[ 0 ] = NewCost;
477
478 updateBestCost( NewCost, NewValues );
479
480 return( NewCost );
481 }
482};
483
484#endif // NMSOPT_INCLUDED

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected