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