Solve lagrangian multiplier problems