44 #include "ConstrainedOptPack_QPSchurInitKKTSystemHessianRelaxed.hpp" 45 #include "ConstrainedOptPack_MatrixSymHessianRelaxNonSing.hpp" 46 #include "AbstractLinAlgPack/src/AbstractLinAlgPack_GenPermMatrixSlice.hpp" 47 #include "AbstractLinAlgPack_GenPermMatrixSliceOp.hpp" 48 #include "AbstractLinAlgPack_SpVectorOp.hpp" 49 #include "DenseLinAlgPack_LinAlgOpPack.hpp" 50 #include "Midynamic_cast_verbose.h" 59 void QPSchurInitKKTSystemHessianRelaxed::initialize_kkt_system(
63 ,
const SpVectorSlice& dL
64 ,
const SpVectorSlice& dU
67 ,
const DVectorSlice* f
68 ,
const DVectorSlice& d
69 ,
const SpVectorSlice& nu
72 ,i_x_fixed_t* i_x_fixed
73 ,bnd_fixed_t* bnd_fixed
74 ,j_f_decomp_t* j_f_decomp
83 const MatrixSymHessianRelaxNonSing
84 *G_relax_ptr =
dynamic_cast<const MatrixSymHessianRelaxNonSing*
>(&G);
86 if( G_relax_ptr == NULL ) {
87 init_kkt_full_.initialize_kkt_system(
88 g,G,etaL,dL,dU,F,trans_F,f,d,nu,n_R,i_x_free,i_x_fixed,bnd_fixed
89 ,j_f_decomp,b_X,Ko,fo);
93 const MatrixSymHessianRelaxNonSing
94 &G_relax = *G_relax_ptr;
97 const MatrixSymWithOpFactorized
98 &G_orig = G_relax.G(),
104 TEUCHOS_TEST_FOR_EXCEPT( !( no + nr == nd ) );
111 i_x_free->resize(no);
113 (*i_x_free)[l-1] = l;
116 i_x_fixed->resize(nr+1);
120 (*i_x_fixed)[l-1] = no+l;
122 (*i_x_fixed)[nr] = nd+1;
124 bnd_fixed->resize(nr+1);
127 std::fill_n( bnd_fixed->begin(), nr, LOWER );
129 (*bnd_fixed)[nr] = LOWER;
131 j_f_decomp->resize(0);
140 *Ko = G_relax.G_ptr();
void Vp_StV(VectorMutable *v_lhs, const value_type &alpha, const Vector &v_rhs)
void V_StV(VectorMutable *v_lhs, value_type alpha, const V &V_rhs)
void assign(MatrixOp *M_lhs, const MatrixOp &M_rhs, BLAS_Cpp::Transp trans_rhs)
void Vp_StMtV(VectorMutable *v_lhs, value_type alpha, const MatrixOp &M_rhs1, BLAS_Cpp::Transp trans_rhs1, const Vector &v_rhs2, value_type beta=1.0)