https://mooseframework.inl.gov
OptimizationTestFunction.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
14 {
16  params.addRequiredParam<std::vector<Real>>("x", "Input values.");
17  params.declareControllable("x");
18  return params;
19 }
20 
22  : GeneralPostprocessor(parameters), _x(getParam<std::vector<Real>>("x"))
23 {
24 }
25 
28 {
29  return function(_x);
30 }
PostprocessorValue getValue() const override final
const std::vector< Real > & _x
void addRequiredParam(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
OptimizationTestFunction(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Scalar< const PostprocessorValue > PostprocessorValue
static InputParameters validParams()
void declareControllable(const std::string &name, std::set< ExecFlagType > execute_flags={})