Question: Develop an M - file that is expressly designed to locate a maximum with the golden - section search. In other words, set it up
Develop an Mfile that is expressly designed to locate a maximum with the goldensection search. In other words, set it up so that it directly finds the maximum rather than finding the minimum of fx The function should have the following features: Iterate until the relative error falls below a stopping criterion or exceeds a maximum number of iterations. Return both the optimal x and fx
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
