https://mooseframework.inl.gov
Loading...
Searching...
No Matches
OptimizationTestFunction.h
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#pragma once
10
12
14{
15public:
18 virtual void initialize() override {}
19 virtual void execute() override {}
20
21 PostprocessorValue getValue() const override final;
22
23protected:
24 // Function to override
25 virtual Real function(const std::vector<Real> & x) const = 0;
26
27private:
28 // Input values
29 const std::vector<Real> & _x;
30};
const std::vector< double > x
Real PostprocessorValue
const InputParameters & parameters() const
const std::vector< Real > & _x
virtual void execute() override
virtual Real function(const std::vector< Real > &x) const =0
static InputParameters validParams()
virtual void initialize() override
PostprocessorValue getValue() const override final