45 #include "MoochoPack_CalcDFromYPY_Step.hpp"
46 #include "MoochoPack_moocho_algo_conversion.hpp"
47 #include "IterationPack_print_algorithm_step.hpp"
48 #include "AbstractLinAlgPack_VectorMutable.hpp"
49 #include "AbstractLinAlgPack_VectorOut.hpp"
51 namespace MoochoPack {
58 NLPAlgo &algo = rsqp_algo(_algo);
61 EJournalOutputLevel olevel = algo.algo_cntr().journal_output_level();
65 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) ) {
66 using IterationPack::print_algorithm_step;
67 print_algorithm_step( algo, step_poss, type, assoc_step_poss, out );
71 VectorMutable &d_k = s.d().set_k(0) = s.Ypy().get_k(0);
73 if( (
int)olevel >= (
int)PRINT_ALGORITHM_STEPS ) {
74 out <<
"\n||d||inf = " << d_k.norm_inf() << std::endl;
77 if( (
int)olevel >= (
int)PRINT_VECTORS ) {
78 out <<
"\nd_k = \n" << d_k;
86 ,
poss_type assoc_step_poss, std::ostream& out,
const std::string& L
90 << L <<
"*** Calculates the search direction d from Ypy\n"
91 << L <<
"d_k = Ypy_k \n";
bool do_step(Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
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
rSQP Algorithm control class.
virtual std::ostream & journal_out() const
Reduced space SQP state encapsulation interface.
AlgorithmTracker & track()
NLPAlgoState & rsqp_state()
<<std aggr>="">> members for algo_cntr