I am minimizing a convex function $f(x,y)$ using the steepest descent method: $$\mathbf{x}_{n+1}=\mathbf{x}_n-\gamma \nabla F(\mathbf{x}_n),\ n \ge 0$$
My function is defined over a specific domain $D = \{(x, y) \in R^2 : 2x^2+y^2 < 10\}$, if my $x_{n+1}$ goes out of bound, my method diverge. I was told to choose $\gamma$ using armijo rule to stay inbound.
Can someone explain to me the method and also describe a pseudo code for implementing it?
Pseudo Code for Steepest Descent using Armijo's Rule:
(Point to be noted: there are various ways to implement it.)