https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Optimize.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 "Steady.h"
13#include "OptimizeSolve.h"
14
15// System includes
16#include <string>
17
18// Forward declarations
19class InputParameters;
20class Optimize;
21class FEProblemBase;
22
23class Optimize : public Steady
24{
25public:
27
29
30 virtual void execute() override;
31
32 virtual bool lastSolveConverged() const override { return _last_solve_converged; }
33
35
36protected:
38
39private:
41};
const InputParameters & parameters() const
solveObject to interface with Petsc Tao
static InputParameters validParams()
Definition Optimize.C:16
OptimizeSolve _optim_solve
Definition Optimize.h:37
virtual bool lastSolveConverged() const override
Definition Optimize.h:32
virtual void execute() override
Definition Optimize.C:30
bool _last_solve_converged
Definition Optimize.h:40
OptimizeSolve & getOptimizeSolve()
Definition Optimize.h:34