33 typedef typename Base::Residual_t Residual_t;
34 typedef typename Base::ALResidual_t ALResidual_t;
45 m_residualFun(Residual),
46 m_ALresidualFun(nullptr),
59 const Jacobian_t &Jacobian )
61 m_residualFun(Residual),
62 m_ALresidualFun(nullptr),
77 m_ALresidualFun(ALResidual),
83 return m_ALresidualFun(x,m_L,result);
95 const Jacobian_t &Jacobian )
97 m_ALresidualFun(ALResidual),
103 return m_ALresidualFun(x,m_L,result);
126 void reset()
override;
145 Residual_t m_residualFun;
146 const ALResidual_t m_ALresidualFun;
147 const Jacobian_t m_jacobian;
151 using Base::m_DeltaU;
152 using Base::m_deltaU;
155 using Base::m_DeltaL;
156 using Base::m_deltaL;
159 using Base::m_numIterations;
160 using Base::m_maxIterations;
170 using Base::m_residual;
171 using Base::m_residualIni;
172 using Base::m_residualOld;
175 using Base::m_options;
176 using Base::m_verbose;
182 using Base::m_headstart;
185 using Base::m_status;
189 template <
typename T>
230 #ifndef GISMO_BUILD_LIB
231 #include GISMO_HPP_HEADER(gsStaticOpt.hpp)
void jacobCon_into(const gsAsConstVector< T > &u, gsAsVector< T > &result) const
Returns Jacobian of the constraints at design value u. Format of result is sparse, complying to m_conJacRows and m_conJacCols.
Base class for static solvers.
Class defining an optimization problem.
Definition: gsOptProblem.h:24
void _init()
Initializes the method.
Definition: gsStaticOpt.hpp:165
void initOutput() override
See gsStaticBase.
Definition: gsStaticOpt.hpp:43
void reset() override
See gsStaticBase.
Definition: gsStaticOpt.hpp:158
gsStaticOpt(const ALResidual_t &ALResidual, const Jacobian_t &Jacobian)
Constructs a new instance.
Definition: gsStaticOpt.h:94
#define index_t
Definition: gsConfig.h:32
gsStatus
Definition: gsStructuralAnalysisTypes.h:20
void getOptions() override
See gsStaticBase.
Definition: gsStaticOpt.hpp:37
Creates a mapped object or data pointer to a vector without copying data.
Definition: gsLinearAlgebra.h:129
void _solve()
See solve()
Definition: gsStaticOpt.hpp:101
Static solver using the Dynamic Relaxation method.
Definition: gsStaticOpt.h:27
void gradObj_into(const gsAsConstVector< T > &u, gsAsVector< T > &result) const
Returns the gradient of the objective function at design value u By default it uses finite difference...
void defaultOptions() override
See gsStaticBase.
Definition: gsStaticOpt.hpp:31
T residualNorm() const
Return the residual norm.
Definition: gsStaticOpt.h:142
void evalCon_into(const gsAsConstVector< T > &u, gsAsVector< T > &result) const
Returns values of the constraints at design value u.
[OptProblemExample Class]
Definition: gsStaticOpt.h:190
T evalObj(const gsAsConstVector< T > &u) const
Returns the gradient value of the objective function at design value u.
gsStaticOpt(const ALResidual_t &ALResidual)
Constructs a new instance.
Definition: gsStaticOpt.h:75
Creates a mapped object or data pointer to a const vector without copying data.
Definition: gsLinearAlgebra.h:130
gsStaticOpt(const Residual_t &Residual)
Constructor.
Definition: gsStaticOpt.h:43
void initialize() override
See gsStaticBase.
Definition: gsStaticOpt.hpp:151
gsStaticOpt(const Residual_t &Residual, const Jacobian_t &Jacobian)
Constructor.
Definition: gsStaticOpt.h:58
gsStatus solve() override
gsStaticBase base functions
Definition: gsStaticOpt.hpp:75
void stepOutput(index_t k) override
See gsStaticBase.
Definition: gsStaticOpt.hpp:59
Base class for static solvers.
Definition: gsStaticBase.h:37