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