Skip to content

Commit a1ae282

Browse files
committed
cleaning up
1 parent 89bc337 commit a1ae282

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/Optimization/hiopResidual.hpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ class hiopResidual
8787
* c_soc = c_rhs - c_body and d_soc = d - d_body
8888
*
8989
* computed in c_eval and d_eval, respectively.
90-
* The method modifies 'this', in particular ryd,ryc, rxl,rxu, rdl, rdu in an attemp
90+
* The method modifies 'this', in particular ryd, ryc, rxl,rxu, rdl, rdu in an attempt
91+
* to reuse storage/buffers
9192
*/
9293
virtual void update_soc(const hiopIterate& it,
9394
const hiopVector& c_soc,
@@ -115,11 +116,14 @@ class hiopResidual
115116
inline double getInfeasInfNorm() const { return nrmInf_nlp_feasib; }
116117
/* get the previously computed Infeasibility */
117118
inline double get_theta() const { return nrmOne_nlp_feasib; }
118-
/* evaluate the Infeasibility at the new iterate, which has eq and ineq functions
119+
120+
/**
121+
* Evaluate the infeasibility at the new iterate, which has eq and ineq functions
119122
* computed in c_eval and d_eval, respectively.
120123
* The method modifies 'this', in particular ryd,ryc, rxl,rxu, rdl, rdu in an attempt
121124
* to reuse storage/buffers, but does not update the cached nrmInf_XXX members.
122-
* It computes and returns the one norm of [ryc ryd] */
125+
* It computes and returns the one norm of [ryc ryd]
126+
*/
123127
double compute_nlp_infeasib_onenorm(const hiopIterate& iter, const hiopVector& c_eval, const hiopVector& d_eval);
124128

125129
/* residual printing function - calls hiopVector::print
@@ -170,6 +174,7 @@ class hiopResidual
170174
* for the nlp (\mu=0)
171175
*/
172176
double nrmInf_nlp_optim, nrmInf_nlp_feasib, nrmInf_nlp_complem;
177+
173178
/** storage for the norm of [rx,rd], [rxl,...,rdu,ryc,ryd], and [rszl,...,rsvu]
174179
* for the barrier subproblem
175180
*/
@@ -185,6 +190,8 @@ class hiopResidual
185190
/** inf norm of constraint violation */
186191
double nrmInf_cons_violation;
187192

193+
194+
188195
// and associated info from problem formulation
189196
hiopNlpFormulation* nlp;
190197

src/Utils/hiopRunStats.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,10 @@ class hiopRunStats
376376
<< (tmEvalObj.getElapsedTime() + tmEvalGrad_f.getElapsedTime() + tmEvalCons.getElapsedTime() +
377377
tmEvalJac_con.getElapsedTime() + tmEvalHessL.getElapsedTime())
378378
<< "s "
379-
<< "( obj=" << tmEvalObj.getElapsedTime() << " grad=" << tmEvalGrad_f.getElapsedTime()
379+
<< "(obj=" << tmEvalObj.getElapsedTime() << " grad=" << tmEvalGrad_f.getElapsedTime()
380380
<< " cons=" << tmEvalCons.getElapsedTime() << " Jac=" << tmEvalJac_con.getElapsedTime()
381381
<< " Hess=" << tmEvalHessL.getElapsedTime() << ") "
382-
<< " WeigInProd=(" << tm_eval_M_apply.getElapsedTime() << " " << tm_eval_H_apply.getElapsedTime() << " "
382+
<< " WIProd=(" << tm_eval_M_apply.getElapsedTime() << " " << tm_eval_H_apply.getElapsedTime() << " "
383383
<< tm_eval_Hinv_apply.getElapsedTime() << ")" << std::endl;
384384

385385
#ifdef HIOP_USE_MPI
@@ -402,7 +402,7 @@ class hiopRunStats
402402
#endif
403403
ss << "Fcn/deriv #: obj " << nEvalObj << " grad " << nEvalGrad_f << " eq cons " << nEvalCons_eq << " ineq cons "
404404
<< nEvalCons_ineq << " eq Jac " << nEvalJac_con_eq << " ineq Jac " << nEvalJac_con_ineq
405-
<< "WeigInProd (" << n_eval_M_apply << " " << n_eval_H_apply << " " << n_eval_Hinv_apply << ")" << std::endl;
405+
<< " WIProd (" << n_eval_M_apply << " " << n_eval_H_apply << " " << n_eval_Hinv_apply << ")" << std::endl;
406406

407407
return ss.str();
408408
}

0 commit comments

Comments
 (0)