Function Utils::normalizeIneq

Function Documentation

void Utils::normalizeIneq(arma::vec &lhs, double &rhs, bool force)

Normalizes an inequality according to the “equilibrium normalization”. Namely, we divide for the largest absolute value among the elements of the lhs and the rhs. If the ration between the largest non-zero and the smallest non-zero (in abs) is greater than 1e2, we normalize with the former. rhs is the input and output RHS value lhs is the input and output LHS