https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
18public:
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
26protected:
29
32
34 const Real & _c1;
35 const Real & _c2;
36};
DualNumber< Real, DNDerivativeType, true > ADReal
const Real p
Real PostprocessorValue
const InputParameters & parameters() const
A simple reward function which uses c1*|x-x_target|+c2.
const Function & _design_function
Value we would like to reach (can be time and space dependent)
const PostprocessorValue & _observed_value
Postprocessor containing the observed value.
virtual Real value(Real t, const Point &p) const override
const Real & _c1
Coefficients for the reward function.