example: $$\min\frac{1}{2}((x_1-3)^2+(x_2-2)^2)$$ s.t.$$-x_1+x_2{\le}0$$ $$x_1+x_2{\le}1$$ $$-x_2{\le}0$$ and we start with $~x^0=[3,2]^T~$ its violate the condition : $$q(x,c)=\frac{1}{2}((x_1-3)^2+(x_2-2)^2)+\frac{c}{2}((x_1+x_2-1)^2)$$ and what is next?
calculate $~x_1~$and$~x_2~$ with BFGS, newtons method,....
$\nabla_x q(x,c)=0~$,$~c=~$ a very large number starting with $~10,100,1000,\cdots~$ until the solution has very small difference?
Here are my comments on the method.
Normally the method works like this: for an iteration point $x^k$ do the following