20 ni = lagMultAct.size();
21 for (ii = 0; ii < ni; ++ii)
23 if (lagMultAct[ii] < -calcobj.
limLag)
25 lagMultAct[ii] = -calcobj.
limLag;
28 else if (lagMultAct[ii] > calcobj.
limLag)
30 lagMultAct[ii] = calcobj.
limLag;
33 else if (std::isnan(lagMultAct[ii]))
Provides the infrastructure for calculation of the RSVS equations.
void ResizeLagrangianMultiplier(const RSVScalc &calcobj, Eigen::VectorXd &lagMultAct, bool &isLarge, bool &isNan)
Resizes the lagrangian multiplier LagMultAct based on whether any of its values are nan or too large.
Class to handle the RSVS calculation.
double limLag
Value at which a Lagrangian multiplier is considered problematically large.