https://mooseframework.inl.gov
GeneralOptimization.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 
13 #include "libmesh/id_types.h"
14 #include "libmesh/libmesh_common.h"
15 
21 {
22 public:
25 
26  virtual Real computeObjective() override;
27 
28 protected:
31 
32  std::vector<dof_id_type> * _num_values_reporter;
33 
34  virtual dof_id_type getNumParams() const override;
35 
36  virtual void setICsandBounds() override;
37 
38 private:
39 };
std::vector< dof_id_type > * _num_values_reporter
Real & _objective_val
Reporter that will hold the objective value.
virtual Real computeObjective() override
Function to compute objective.
virtual dof_id_type getNumParams() const override
Function to get the total number of parameters.
Base class for optimization objects, implements routines for calculating misfit.
GeneralOptimization(const InputParameters &parameters)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual void setICsandBounds() override
Sets the initial conditions and bounds right before it is needed.
uint8_t dof_id_type
Optimization reporter that interfaces with TAO.