5 votes
Accepted

setting of Lagrangian function

It's a matter of choice how one writes the Lagrangian in the context of Lagrange/KKT. Depending on how it's written, the gradients of the objective and constraint functions are either parallel or anti-...
user avatar
  • 2,569
1 vote

setting of Lagrangian function

The two ways of properly setting up Lagrangian are completely equivalent (although you have mistakes above) so it does not matter which way you set it up. You actually have mistake there resulting in ...
user avatar
  • 43.4k

Only top scored, non community-wiki answers of a minimum length are eligible