Gradient Based Optimization Algorithm Example In Psychology