Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

related to R studio (d) In your own words, explain why grid search works for any function. Draw a picture to illustrate your logic. Also,

image text in transcribedrelated to R studio

(d) In your own words, explain why grid search works for any function. Draw a picture to illustrate your logic. Also, does grid search become more accurate as the size of the interval shrinks to zero? Why? To apply grid search with multiple dimensions and constraints, let h(x, y) be the func- tion we seek to maximize and let k(r, y) = 0 be our constraint. First divide up the Cartesian plane into small squares. The the collection of bottom-left corners of the squares is the collection of (,y) start-points. The problem is that not all of these points satisfy the constraint. We thus throw away points that do not approximately satisfy the constraint and evaluate h(x,y) on the points that are leftover. That is, we conduct the grid search by evaluating h(I,y) on the following set of start points, {(1, y) {a, a +0.01, a +0.02, ,6 -0.01, b}{|k(x, y) =0}. We then sort the results and select the start-point (x*,y*) that leads to the largest value of f. Typically, three decimal places are used when determining if k(x,y) = 0, i.e., if k(x,y)- 0 (-0.0009, 0.0009]

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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

Students also viewed these Databases questions

Question

Is how things are said consistent with what is said?

Answered: 1 week ago

Question

Has the priority order been provided by someone else?

Answered: 1 week ago