@@ -485,13 +485,8 @@ void hiopResidual::update_soc(const hiopIterate& it,
485485 assert (it.sxu ->matchesPattern (nlp->get_ixu ()));
486486#endif
487487 // rx = -grad_f - J_c^t*x - J_d^t*x+M*zl-M*zu - linear damping term in x
488- // rx->copyFrom(grad);
489- // jac_c.transTimesVec(1.0, *rx, 1.0, *it.yc);
490- // jac_d.transTimesVec(1.0, *rx, 1.0, *it.yd);
491- // rx->axpy(-1.0, *it.zl);
492- // rx->axpy(1.0, *it.zu);
493488
494- // using rxl as auxiliary variable to compute -M*zl+M*zu
489+ // using rxl as auxiliary variable to compute -M*zl+M*zu
495490 rxl->copyFrom (*it.zu );
496491 rxl->axpy (-1.0 , *it.zl );
497492 nlp->inner_prod ()->apply_M_lumped (*rxl, *rx);
@@ -503,13 +498,10 @@ void hiopResidual::update_soc(const hiopIterate& it,
503498 // buf = rx->infnorm_local();
504499 buf = nlp->inner_prod ()->norm_stationarity (*rx);
505500 nrmInf_nlp_optim = fmax (nrmInf_nlp_optim, buf);
506- // nrmOne_nlp_optim += rx->onenorm();
507- nrmOne_nlp_optim += nlp->inner_prod ()->norm_M_one (*rx);
501+ nrmOne_nlp_optim += nlp->inner_prod ()->norm_M_one (*rx);
508502 nlp->log ->printf (hovScalars, " NLP resid [update_soc]: inf norm rx=%22.17e\n " , buf);
509503 logprob.addNonLogBarTermsToGrad_x (1.0 , *rx);
510504 rx->negate ();
511- // nrmInf_bar_optim = fmax(nrmInf_bar_optim, rx->infnorm_local());
512- // nrmOne_bar_optim += rx->onenorm();
513505 nrmInf_bar_optim = fmax (nrmInf_bar_optim, nlp->inner_prod ()->norm_stationarity (*rx));
514506 nrmOne_bar_optim += nlp->inner_prod ()->norm_M_one (*rx);
515507
0 commit comments