98template <
typename TDomain,
typename TAlgebra>
121 static const int dim = TDomain::dim;
148 template <
typename TElem,
typename TIterator>
167 template <
typename TElem,
typename TIterator>
178 template <
typename TElem,
typename TIterator>
Definition smart_pointer.h:296
Definition smart_pointer.h:108
Active Set method.
Definition active_set.h:100
vector_type::value_type value_type
Type of algebra value.
Definition active_set.h:112
ActiveSet()
constructor
Definition active_set.h:125
static const int dim
domain dimension
Definition active_set.h:121
void set_obstacle(ConstSmartPtr< function_type > obs)
sets obstacle gridfunction, which limits the solution u
Definition active_set.h:132
GridFunction< TDomain, TAlgebra > function_type
Type of grid function.
Definition active_set.h:115
vector< DoFIndex > m_vActiveSetGlobOld
vector remembering the active set of global DoFIndices
Definition active_set.h:211
SmartPtr< DoFDistribution > m_spDD
pointer to the DofDistribution on the whole domain
Definition active_set.h:186
algebra_type::matrix_type matrix_type
Type of algebra matrix.
Definition active_set.h:106
void lagrange_mat_inv(matrix_type &lagrangeMatInv)
Definition active_set_impl.h:432
bool active_index(function_type &u, function_type &rhs, function_type &lagrangeMult, function_type &gap)
determines the active indices, stores them in a vector and sets dirichlet values in rhs for active in...
Definition active_set_impl.h:253
void set_lagrange_multiplier_disc(SmartPtr< ILagrangeMultiplierDisc< TDomain, function_type > > lagMultDisc)
sets a discretization in order to compute the lagrange multiplier
Definition active_set.h:139
bool check_conv(function_type &u, const function_type &lambda, const size_t step)
checks if all constraints are fulfilled & the activeSet remained unchanged
Definition active_set_impl.h:607
TAlgebra algebra_type
Type of algebra.
Definition active_set.h:103
SmartPtr< TDomain > m_spDom
Definition active_set.h:187
domain_traits< TDomain::dim >::grid_base_object TBaseElem
base element type of associated domain
Definition active_set.h:118
bool check_conv_elem(TIterator iterBegin, TIterator iterEnd, function_type &u, const function_type &lambda)
Definition active_set_impl.h:518
vector< DoFIndex > m_vActiveSetGlob
vector of the current active set of global DoFIndices
Definition active_set.h:209
algebra_type::vector_type vector_type
Type of algebra vector.
Definition active_set.h:109
bool check_inequ(const matrix_type &mat, const vector_type &u, const vector_type &lagrangeMult, const vector_type &rhs)
checks if all inequalities are fulfilled
Definition active_set_impl.h:673
bool m_bObs
Definition active_set.h:194
void residual_lagrange_mult(vector_type &lagMult, const matrix_type &mat, const vector_type &u, vector_type &rhs)
Definition active_set_impl.h:463
void lagrange_multiplier(function_type &lagrangeMult, const function_type &u)
computes the lagrange multiplier for a given disc
Definition active_set_impl.h:341
SmartPtr< ILagrangeMultiplierDisc< TDomain, function_type > > m_spLagMultDisc
pointer to a lagrangeMultiplier-Disc
Definition active_set.h:197
void lagrange_mat_inv_elem(TIterator iterBegin, TIterator iterEnd, matrix_type &lagrangeMatInv)
Definition active_set_impl.h:359
void active_index_elem(TIterator iterBegin, TIterator iterEnd, function_type &u, function_type &rhs, function_type &lagrangeMult)
checks the distance to the prescribed obstacle/constraint
Definition active_set_impl.h:115
ConstSmartPtr< function_type > m_spObs
number of functions
Definition active_set.h:193
void set_dirichlet_rows(matrix_type &mat)
Definition active_set_impl.h:331
void prepare(function_type &u)
Definition active_set_impl.h:73
vector< int > m_vActiveSubsets
vector of possible active subsets
Definition active_set.h:200
represents numerical solutions on a grid using an algebraic vector
Definition grid_function.h:121
Definition lagrange_multiplier_disc_interface.h:46
Definition smart_pointer.h:814
Definition domain_traits.h:53