45 #include "MoochoPack_CalcDFromZPZ_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();
62 EJournalOutputLevel ns_olevel = algo.algo_cntr().null_space_journal_output_level();
66 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) ) {
67 using IterationPack::print_algorithm_step;
68 print_algorithm_step( algo, step_poss, type, assoc_step_poss, out );
72 VectorMutable &d_k = s.d().set_k(0) = s.Zpz().get_k(0);
74 if( (
int)olevel >= (
int)PRINT_ALGORITHM_STEPS ) {
75 out <<
"\n||d||inf = " << d_k.norm_inf() << std::endl;
78 if( (
int)olevel >= (
int)PRINT_VECTORS ) {
79 out <<
"\nd_k = \n" << d_k;
87 ,
poss_type assoc_step_poss, std::ostream& out,
const std::string& L
91 << L <<
"*** Calculates the search direction d from Zpz\n"
92 << L <<
"d_k = Zpz_k \n";
bool do_step(Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
rSQP Algorithm control class.
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
virtual std::ostream & journal_out() const
Reduced space SQP state encapsulation interface.
AlgorithmTracker & track()
NLPAlgoState & rsqp_state()
<<std aggr>="">> members for algo_cntr