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

Method copy

nmsopt.h:435–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433 */
434
435 void copy( const double* const ip, const double Cost )
436 {
437 y[ xhi ] = Cost;
438 double* const xH = x[ xhi ];
439
440 copyParams( xH, ip );
441 findhi();
442
443 const double* const nxH = x[ xhi ];
444
445 if( xH != nxH )
446 {
447 int i;
448
449 for( i = 0; i < N; i++ )
450 {
451 x0[ i ] += ( xH[ i ] - nxH[ i ]) * M1i;
452 }
453 }
454
455 StallCount = 0;
456 }
457
458 /**
459 * Function evaluates parameter vector and applies value range wrapping,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected