46 #include "MoochoPack_CrossTermExactStd_Step.hpp"
47 #include "MoochoPack_moocho_algo_conversion.hpp"
48 #include "IterationPack_print_algorithm_step.hpp"
49 #include "ConstrainedOptPack/src/VectorWithNorms.h"
50 #include "AbstractLinAlgPack/src/AbstractLinAlgPack_MatrixOp.hpp"
51 #include "DenseLinAlgPack_LinAlgOpPack.hpp"
52 #include "DenseLinAlgPack_DVectorClass.hpp"
53 #include "DenseLinAlgPack_DVectorOut.hpp"
55 namespace LinAlgOpPack {
60 , poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
62 using LinAlgOpPack::V_MtV;
63 using DenseLinAlgPack::norm_inf;
65 NLPAlgo &algo = rsqp_algo(_algo);
66 NLPAlgoState &s = algo.rsqp_state();
68 EJournalOutputLevel olevel = algo.algo_cntr().journal_output_level();
69 std::ostream& out = algo.track().journal_out();
72 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) ) {
73 using IterationPack::print_algorithm_step;
74 print_algorithm_step( _algo, step_poss, type, assoc_step_poss, out );
83 if( static_cast<int>(olevel) >=
static_cast<int>(PRINT_ALGORITHM_STEPS) ) {
84 out <<
"\n||w||inf = " << s.w().get_k(0).norm_inf() << std::endl;
87 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_VECTORS) ) {
88 out <<
"\nw_k =\n" << s.w().get_k(0)();
95 , poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss
96 , std::ostream& out,
const std::string& L )
const
99 << L <<
"*** Evaluate the exact reduced QP cross term\n"
100 << L <<
"w_k = Z_k' * HL_k * Ypy_k\n";
void print_step(const Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss, std::ostream &out, const std::string &leading_str) const
bool do_step(Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
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)