https://mooseframework.inl.gov
ScaledAbsDifferenceDRLRewardFunction.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 #include "Function.h"
13 #include "FunctionInterface.h"
14 
17 {
18 public:
20 
22 
23  virtual Real value(Real t, const Point & p) const override;
24  virtual ADReal value(const ADReal & t, const ADPoint & p) const override;
25 
26 protected:
29 
32 
34  const Real & _c1;
35  const Real & _c2;
36 };
ScaledAbsDifferenceDRLRewardFunction(const InputParameters &parameters)
const PostprocessorValue & _observed_value
Postprocessor containing the observed value.
A simple reward function which uses c1*|x-x_target|+c2.
Real PostprocessorValue
const Real & _c1
Coefficients for the reward function.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual Real value(Real t, const Point &p) const override
const Function & _design_function
Value we would like to reach (can be time and space dependent)