Do you mean numerically? Then solving the Lagrange or Karush-Kuhn-Tucker equations directly is far from making sense. And (if possible at all) analytically will
need some tricks of your own (or told in the lecture).
For numerical work you should consult a modern textbook.