99 namespace MoochoPack {
116 const decomp_sys_ptr_t& decomp_sys
122 :decomp_sys_(decomp_sys)
125 ,space_range_(space_range)
126 ,space_null_(space_null)
186 void NLPAlgoState::update_iq_id(
187 const std::
string& iq_name
191 namespace rcp = MemMngPack;
192 if(iq_id->iq_id == DOES_NOT_EXIST)
193 iq_id->iq_id = this->get_iter_quant_id(iq_name);
196 ,
"NLPAlgoState::update_iq_id(iq_name,iq_id) : Error, "
197 " The iteration quantity with name \'" << iq_name <<
198 "\' does not exist!" );
202 const std::string& iq_name
206 namespace rcp = MemMngPack;
214 new IterQuantityAccessContiguous<index_type>(
226 iq_id->
iq_id = _iq_id;
232 const std::string& iq_name
236 namespace rcp = MemMngPack;
244 new IterQuantityAccessContiguous<value_type>(
256 iq_id->
iq_id = _iq_id;
262 const std::string& iq_name
263 ,
const VectorSpace::space_ptr_t& vec_space
268 namespace rcp = MemMngPack;
276 new IterQuantityAccessContiguous<VectorMutable>(
285 iq_id->
iq_id = _iq_id;
301 for( iq_vector_list_t::const_iterator iq_itr = iq_vector_list.begin(); iq_itr != iq_vector_list.end(); ++iq_itr )
302 dyn_cast<IterQuantityAccessContiguous<VectorMutable> >(this->
iter_quant(*iq_itr)).set_factory(vec_space);
vec_space_ptr_t space_null_
f_dbl_prec const f_int f_dbl_prec * Y
iq_vector_list_t vector_iqs_lists_[NUM_VEC_SPACE_TYPES]
const std::string opt_kkt_err_name
const std::string lambda_name
const VectorSpace & space_null() const
const std::string GL_name
const std::string eta_name
const std::string feas_kkt_err_name
const std::string alpha_name
std::deque< iq_id_type > iq_vector_list_t
const std::string zeta_name
const std::string Ypy_name
const std::string rGL_name
#define STATE_SCALAR_IQ_DEF(CLASS, NAME, NAME_STR)
Add class definitions for a value_type iteration quantity.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
#define STATE_INDEX_IQ_DEF(CLASS, NAME, NAME_STR)
Add class definitions for a index_type iteration quantity.
const std::string Gc_name
vec_space_ptr_t space_range_
const std::string num_basis_name
const VectorSpace & space_range() const
void update_vector_iq_id(const std::string &iq_name, const VectorSpace::space_ptr_t &vec_space, EVecSpaceType vec_space_type, iq_id_encap *iq_id)
const std::string Gf_name
Thrown if name or id does not exist.
const std::string Zpz_name
virtual iq_id_type set_iter_quant(const std::string &iq_name, const IQ_ptr &iq)
Inserts the iteration quantity through a RCP<...> object.
const std::string merit_func_nlp_name
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
#define STATE_VECTOR_IQ_DEF(CLASS, NAME, NAME_STR, VEC_SPC, VEC_RN)
Add class definitions for a VectorMutable iteration quantity.
const f_int f_dbl_prec const f_int f_int const f_int f_int const f_dbl_prec f_int f_int f_dbl_prec w[]
const std::string phi_name
T_To & dyn_cast(T_From &from)
virtual IterQuantity & iter_quant(const std::string &iq_name)
Iteration quantity encapsulation object access with via iq_name.
void update_value_type_iq_id(const std::string &iq_name, iq_id_encap *iq_id)
const std::string pz_name
const std::string comp_kkt_err_name
Reduced space SQP state encapsulation interface.
const std::string rGf_name
virtual iq_id_type get_iter_quant_id(const std::string &iq_name) const
Return the iteration quantity id (iq_id) for the iteration quantity.
void update_vector_factories(EVecSpaceType vec_space_type, const vec_space_ptr_t &vec_space)
#define STATE_IQ_DEF(CLASS, TYPE, NAME, NAME_STR)
Add class definitions for an arbitrary iteration quantity.
const std::string mu_name
const std::string py_name
const std::string rHL_name
void set_space_null(const vec_space_ptr_t &space_null)
Set the VectorSpace of the null space (pz).
const std::string HL_name
const std::string qp_grad_name
const std::string Uy_name
void update_index_type_iq_id(const std::string &iq_name, iq_id_encap *iq_id)
NLPAlgoState(const decomp_sys_ptr_t &decomp_sys=Teuchos::null, const vec_space_ptr_t &space_x=Teuchos::null, const vec_space_ptr_t &space_c=Teuchos::null, const vec_space_ptr_t &space_range=Teuchos::null, const vec_space_ptr_t &space_null=Teuchos::null)
Construct.
const std::string nu_name
const std::string Uz_name
void set_space_range(const vec_space_ptr_t &space_range)
Set the VectorSpace of the range space (py).