54 namespace MoochoPack {
74 IterQuantityAccess<MeritFuncNLP>
75 &merit_func_nlp_iq = s.merit_func_nlp();
77 if(!merit_func_nlp_iq.updated_k(0)) {
78 const int last_updated_k = merit_func_nlp_iq.last_updated();
80 &merit_func_nlp_k = ( last_updated_k != IterQuantity::NONE_UPDATED
81 ? merit_func_nlp_iq.set_k(0,last_updated_k)
82 : merit_func_nlp_iq.set_k(0) );
83 MeritFuncNLPDirecDeriv
84 &direc_deriv =
dyn_cast<MeritFuncNLPDirecDeriv>(merit_func_nlp_k);
86 direc_deriv.calc_deriv(
102 ,
poss_type assoc_step_poss, std::ostream&
out,
const std::string& L
106 << L <<
"*** Simply sets the current merit function value for unconstrained linesearch\n"
107 << L <<
"if merit_func_nlp_k not updated set merit_func_nlp_k = merit_func_nlp_k(last_updated)\n";
rSQP Algorithm control class.
bool do_step(Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
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.
T_To & dyn_cast(T_From &from)
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.
AlgorithmTracker & track()
Acts as the central hub for an iterative algorithm.
NLPAlgoState & rsqp_state()
<<std aggr>="">> members for algo_cntr
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
NLPAlgo & rsqp_algo(Algorithm &algo)
Convert from a Algorithm to a NLPAlgo.