Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Find the maximum of f(x) = 4x-1.8x +1.2x -0.3x* (Problem 7.7 in the book) 1) Write a Matlab Golden-Section search program using X = -2;
Find the maximum of f(x) = 4x-1.8x +1.2x -0.3x* (Problem 7.7 in the book) 1) Write a Matlab Golden-Section search program using X = -2; x = 45, -0.1% where , is the stopping condition, which means if , CE, the iteration stops. Refer to the program in Figure 7.7. But you need to write everything in one program without using a function, 2) Print out your program. In the program, write the code to display your results in the command window using a table format with four columns showing "Iteration No.","x", "S(x)", and ",", respectively. Also, print out this table from the command window. "X"is the optimal x value in the current iteration.","is defined in Eq. (7.9), i.e. 6.=(2-6)** 100%
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started