https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
22public:
25
26 virtual Real computeObjective() override;
27
28protected:
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
38private:
39};
Optimization reporter that interfaces with TAO.
Real & _objective_val
Reporter that will hold the objective value.
virtual dof_id_type getNumParams() const override
Function to get the total number of parameters.
std::vector< dof_id_type > * _num_values_reporter
virtual void setICsandBounds() override
Sets the initial conditions and bounds right before it is needed.
virtual Real computeObjective() override
Function to compute objective.
static InputParameters validParams()
const InputParameters & parameters() const
Base class for optimization objects, implements routines for calculating misfit.