Question: Using Python, develop a line search algorithm ( i . e . Algorithm 4 . 3 and 4 . 4 ) that given a direction
Using Python, develop a line search algorithm ie Algorithm and that given a direction p your algorithm returns the optimal point along that line ie the optimal step length along p Please use a bisection method for the interpolation function.
Example of inputs and objective function:
p T
xT
Slanted Quadratic Function fxx x x Bxx with B
Outputs:
Optimal step length and point found ALONG p ie report both alpha
and xk xkalpha p and the number of function calls required to obtain xk
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
