https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
Real PostprocessorValue
static InputParameters validParams()
void declareControllable(const std::string &name, std::set< ExecFlagType > execute_flags={})
void addRequiredParam(const std::string &name, const std::string &doc_string)
const std::vector< Real > & _x
OptimizationTestFunction(const InputParameters &parameters)
virtual Real function(const std::vector< Real > &x) const =0
static InputParameters validParams()
PostprocessorValue getValue() const override final