Line data Source code
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: 26 : static InputParameters validParams(); 27 : 28 : Optimize(const InputParameters & parameters); 29 : 30 : virtual void execute() override; 31 : 32 9223 : virtual bool lastSolveConverged() const override { return _last_solve_converged; } 33 : 34 2556 : OptimizeSolve & getOptimizeSolve() { return _optim_solve; } 35 : 36 : protected: 37 : OptimizeSolve _optim_solve; 38 : 39 : private: 40 : bool _last_solve_converged = true; 41 : };