26 paramError(
"x",
"Eggholder problem requires exactly 2 inputs, but ",
x.size(),
" were given.");
35 mooseAssert(
x.size() == 2,
"Eggholder problem requires exactly 2 inputs.");
37 return -(
x[1] + 47.0) * std::sin(std::sqrt(std::abs(
x[0] / 2.0 + (
x[1] + 47.0)))) -
38 x[0] * std::sin(std::sqrt(
abs(
x[0] - (
x[1] + 47.0))));
MetaPhysicL::DualNumber< V, D, asd > abs(const MetaPhysicL::DualNumber< V, D, asd > &a)
registerMooseObject("StochasticToolsTestApp", Eggholder)
void paramError(const std::string ¶m, Args... args) const
const std::vector< double > x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static Real eggholder(const std::vector< Real > &x)
https://en.wikipedia.org/wiki/Test_functions_for_optimization
Real function(const std::vector< Real > &x) const override final
static InputParameters validParams()
Eggholder(const InputParameters ¶meters)
static InputParameters validParams()