44 #include "MoochoPack_SetDBoundsStd_AddedStep.hpp"
45 #include "MoochoPack_moocho_algo_conversion.hpp"
46 #include "IterationPack_print_algorithm_step.hpp"
47 #include "AbstractLinAlgPack_LinAlgOpPack.hpp"
48 #include "AbstractLinAlgPack_VectorOut.hpp"
50 namespace MoochoPack {
62 NLPAlgo &algo = rsqp_algo(_algo);
65 EJournalOutputLevel olevel = algo.algo_cntr().journal_output_level();
66 EJournalOutputLevel ns_olevel = algo.algo_cntr().null_space_journal_output_level();
70 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) ) {
71 using IterationPack::print_algorithm_step;
72 print_algorithm_step( algo, step_poss, type, assoc_step_poss, out );
76 var_dep = s.var_dep(),
77 var_indep = s.var_indep();
80 &x_k = s.x().get_k(0),
81 &xl = algo.nlp().xl(),
82 &xu = algo.nlp().xu();
84 &dl = dl_iq_(s).set_k(0),
85 &du = du_iq_(s).set_k(0);
93 if( static_cast<int>(ns_olevel) >= static_cast<int>(PRINT_VECTORS) ) {
94 if(var_indep.size()) {
95 out <<
"\ndl(var_indep)_k = \n" << *dl.sub_view(var_indep);
96 out <<
"\ndu(var_indep)_k = \n" << *du.sub_view(var_indep);
100 if( static_cast<int>(olevel) >= static_cast<int>(PRINT_VECTORS) ) {
102 out <<
"\ndl(var_dep)_k = \n" << *dl.sub_view(var_dep);
103 out <<
"\ndu(var_dep)_k = \n" << *du.sub_view(var_dep);
105 out <<
"\ndl_k = \n" << dl;
106 out <<
"\ndu_k = \n" << du;
114 ,
poss_type assoc_step_poss, std::ostream& out,
const std::string& L
118 << L <<
"*** Set the bounds on d\n"
119 << L <<
"d_bounds_k.l = xl - x_k\n"
120 << L <<
"d_bounds_k.u = xu - x_k\n"
rSQP Algorithm control class.
SetDBoundsStd_AddedStep()
virtual std::ostream & journal_out() const
Reduced space SQP state encapsulation interface.
AlgorithmTracker & track()
bool do_step(Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
NLPAlgoState & rsqp_state()
<<std aggr>="">> members for algo_cntr
void V_VmV(VectorMutable *v_lhs, const V1 &V1_rhs1, const V2 &V2_rhs2)
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