59 #define min(a,b) ( (a < b) ? a : b )
60 #define max(a,b) ( (a > b) ? a : b )
62 namespace MoochoPack {
68 barrier_nlp_(barrier_nlp)
73 "PostProcessBarrierLineSearch_Step given NULL NLPBarrier."
104 VectorMutable& Gf_kp1 = s.Gf().set_k(+1);
109 out <<
"\nf = " << f_kp1
114 if( static_cast<int>(olevel) >= static_cast<int>(
PRINT_VECTORS) )
116 out <<
"Gf = \n" << Gf_kp1
126 ,
poss_type assoc_step_poss, std::ostream&
out,
const std::string& L
131 out << L <<
"# Process out the temporary barrier term used for line search\n"
132 << L <<
"f_k -= barrier_term_k\n";
bool do_step(Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss)
void print_step(const IterationPack::Algorithm &algo, poss_type step_poss, IterationPack::EDoStepType type, poss_type assoc_step_poss, std::ostream &out, const std::string &leading_str) const
Called by Algorithm::print_algorithm() to print out what this step does in Matlab like format...
value_type barrier_term() const
Get the barrier term. Must be called after calc_f().
PostProcessBarrierLineSearch_Step(Teuchos::RCP< NLPInterfacePack::NLPBarrier > barrier_nlp)
Constructor.
Teuchos::RCP< NLPInterfacePack::NLPBarrier > barrier_nlp_
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
void Vp_StV(VectorMutable *v_lhs, const value_type &alpha, const Vector &v_rhs)
v_lhs = alpha * v_rhs + v_lhs
rSQP Algorithm control class.
const Teuchos::RCP< Vector > grad_objective_term() const
Get the value of the gradient of the true objective term. Must be called after calc_Gf().
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)
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()
value_type objective_term() const
Get the true objective term value. Must be called after calc_f().
AbstractLinAlgPack::value_type value_type
Acts as the central hub for an iterative algorithm.
const Teuchos::RCP< Vector > grad_barrier_term() const
Get the value of the gradient of the barrier term. Must be called after calc_Gf() ...