nlopt
nlopt copied to clipboard
computing Lagrange multipliers
As I noted here, it is pretty easy to compute Lagrange multipliers, given an optimum x computed by any optimization algorithm, by solving a small least-squares problem. Since people occasionally ask for this information, it might be nice to provide a function for this.
You can find such an implementation here in the OpenTURNS library. It was needed by some of our users to compute the sensitivity of the optimal value of the objective function wrt the bounds of the constraints.