Gradient Based Optimization Algorithm Example In Computer