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

Function calcGulfResearchProblem

tests/testfn.h:1715–1728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1713 -7.3069987313245, &calcUrsemWaves, &calcUrsemWaves_p };
1714
1715static double calcGulfResearchProblem( const double* const x, const int N )
1716{
1717 double s = 0.0;
1718 int i;
1719
1720 for( i = 1; i <= 99; i++ )
1721 {
1722 const double ti = i/100.0;
1723 const double ui = 25.0+pow(-50.0*log(ti),1.0/1.5);
1724 s += sqr(exp(-pow(ui-x[1],x[2])/x[0])-ti);
1725 }
1726
1727 return( s );
1728}
1729
1730static void calcGulfResearchProblem_p( double* const minv, double* const maxv,
1731 const int N, double* const optv )

Callers

nothing calls this directly

Calls 1

sqrFunction · 0.85

Tested by

no test coverage detected