https://mooseframework.inl.gov
EvaluateSurrogate.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 
10 #pragma once
11 
12 // MOOSE includes
13 #include "StochasticReporter.h"
15 #include "SurrogateModel.h"
16 
21 {
22 public:
24 
26  virtual void initialize() override {}
27  virtual void execute() override;
28  virtual void finalize() override {}
29 
30 protected:
36  std::vector<bool> _doing_std;
38  std::vector<const SurrogateModel *> _model;
41  std::vector<std::vector<Real> *> _real_values;
42  std::vector<std::vector<std::vector<Real>> *> _vector_real_values;
43  std::vector<std::vector<Real> *> _real_std;
44  std::vector<std::vector<std::vector<Real>> *> _vector_real_std;
46 };
A tool for output Sampler data.
virtual void execute() override
virtual void initialize() override
std::vector< std::vector< Real > * > _real_std
virtual void finalize() override
const MultiMooseEnum _response_types
The data type for the response value.
EvaluateSurrogate(const InputParameters &parameters)
std::vector< std::vector< std::vector< Real > > * > _vector_real_std
Sampler & _sampler
Sampler for evaluating surrogate model.
std::vector< const SurrogateModel * > _model
Pointers to surrogate model.
std::vector< bool > _doing_std
Whether or not to compute standard deviation.
std::vector< std::vector< std::vector< Real > > * > _vector_real_values
Interface for objects that need to use samplers.
static InputParameters validParams()
const InputParameters & parameters() const
std::vector< std::vector< Real > * > _real_values