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

Function calcBeale

tests/testfn.h:195–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 &calcRosenbrock, NULL };
194
195static double calcBeale( const double* const x, const int N )
196{
197 return( sqr(1.5-x[0]+x[0]*x[1])+sqr(2.25-x[0]+x[0]*sqr(x[1]))+
198 sqr(2.625-x[0]+x[0]*pow(x[1],3.0) ));
199}
200
201static const CTestFn TestFnBeale = { "Beale", 2, -10.0, 10.0, 0.0,
202 &calcBeale, NULL };

Callers

nothing calls this directly

Calls 1

sqrFunction · 0.85

Tested by

no test coverage detected