52 namespace MoochoPack {
67 const Range1D equ_decomp = s.equ_decomp();
79 IterQuantityAccess<VectorMutable>
83 IterQuantityAccess<MatrixOpNonsing>
85 IterQuantityAccess<MatrixOp>
89 VectorMutable &py_k = py_iq.set_k(0);
90 V_InvMtV( &py_k, R_iq.get_k(0),
no_trans, *c_iq.get_k(0).sub_view(equ_decomp) );
97 out <<
"\n||py|| = " << py_iq.get_k(0).norm_inf() << std::endl
98 <<
"\n||Ypy||2 = " << Ypy_iq.get_k(0).norm_2() << std::endl;
101 if( static_cast<int>(olevel) >= static_cast<int>(
PRINT_VECTORS) ) {
102 out <<
"\npy_k =\n" << py_iq.get_k(0);
103 out <<
"\nYpy_k =\n" << Ypy_iq.get_k(0);
111 ,
poss_type assoc_step_poss, std::ostream&
out,
const std::string& L
115 << L <<
"*** Calculate the range space step\n"
116 << L <<
"py_k = - inv(R_k) * c_k(equ_decomp)\n"
117 << L <<
"Ypy_k = Y_k * py_k\n";
void Vt_S(VectorMutable *v_lhs, const value_type &alpha)
v_lhs *= alpha
rSQP Algorithm control class.
void V_StV(VectorMutable *v_lhs, value_type alpha, const V &V_rhs)
v_lhs = alpha * V_rhs.
virtual std::ostream & journal_out() const
Return a reference to a std::ostream to be used to output debug information and the like...
EJournalOutputLevel
enum for journal output.
Reduced space SQP state encapsulation interface.
void print_algorithm_step(const Algorithm &algo, Algorithm::poss_type step_poss, EDoStepType type, Algorithm::poss_type assoc_step_poss, std::ostream &out)
Prints to 'out' the algorithm step.
void V_InvMtV(VectorMutable *v_lhs, const MatrixNonsing &M_rhs1, BLAS_Cpp::Transp trans_rhs1, const Vector &v_rhs2)
v_lhs = inv(op(M_rhs1)) * v_rhs2
AlgorithmTracker & track()
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
void V_MtV(VectorMutable *v_lhs, const MatrixOp &M_rhs1, BLAS_Cpp::Transp trans_rhs1, const V &V_rhs2)
v_lhs = op(M_rhs1) * V_rhs2.
Acts as the central hub for an iterative algorithm.
NLPAlgoState & rsqp_state()
<<std aggr>="">> members for algo_cntr
bool do_step(Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
RangePack::Range1D Range1D
NLPAlgo & rsqp_algo(Algorithm &algo)
Convert from a Algorithm to a NLPAlgo.