I am working on an optimization problem, and I am a little bit cofused. I know how to solve the constrained problems – using Lagrangian Multiplier – but what about unconstrained ones? (I know how to solve the problem in Matlab using a derivative-free method.) E.g.,
$$ f(\bar w) = f(x,y,z) = x^2+xy+y^2+yz+z^2-6x-7y-8z+9 $$
There's no need to apply method of Lagrangian multiplier. But you can still apply it by introducing a dummy variable, say $t=0$. Then you can write $$\mathcal L(w;t)=f(w)-\lambda t$$