2. Implement the penalty function method to solve the following problem. Use the quadratic penalty function, i.e., if constraint is $c(x) \le 0$ penalty function is $\max(0, c(x))^2$. State all the parameters such as initialization, stopping criterion, etc. you used. Plot the iteration vs. the function value for the first few iterations.
$\min f(x) = \frac{50}{x}$, $x \le 10$