Answered step by step
Verified Expert Solution
Link Copied!

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;

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago