getinfLM function

Functions to determine Lagrange multipliers