(solution) Implement the Conjugate-Gradient algorithm with the Polak–Ribiere update formula of Sect.

(solution) Implement the Conjugate-Gradient algorithm with the Polak–Ribiere update formula of Sect.

Implement the Conjugate-Gradient algorithm with the Polak–Ribiere update formula of Sect. 1.1.1.1 for unconstrained optimization using any computer programming language and apply the algorithm on the n -dimensional Rosen- brock function f ð x Þ ¼ P n – 1 h 100ð x i 2 i 1 – x Þ þð1 – x Þ 2 for n = 2, 5, 10, and i ¼ 1 þ i i 20, starting from the n different points [ i +1 i ] T for i = 1… n.