Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chin-Shiuh Shieh Assignment 3.1, 文鶑 1.  Maximize F 1 (x,y) Assignment - 20142 Requirement: Find maximize value of F 1 (x,y) used hill-climbing (gradient-ascent)

Similar presentations


Presentation on theme: "Chin-Shiuh Shieh Assignment 3.1, 文鶑 1.  Maximize F 1 (x,y) Assignment - 20142 Requirement: Find maximize value of F 1 (x,y) used hill-climbing (gradient-ascent)"— Presentation transcript:

1 Chin-Shiuh Shieh Assignment 3.1, 文鶑 1

2  Maximize F 1 (x,y) Assignment Requirement: Find maximize value of F 1 (x,y) used hill-climbing (gradient-ascent) method.

3 Step1: Initialize a value for: (x,y) (Choice one point:-5≤x,y<5) Example: x0 = 1; y0 = 1; Assignment

4  4

5  If initialize value (x0,y0) is good, we can find global value. If not we can be trapped in local optima  The number of steps are change around: 100 Assignment

6  We initialize many points of (x0,y0) and used For loop to find optima value with each point. And then compare this to choice the best optima. Assignment

7  The optimize when we you many initialize points (For loop) seem better than when we only used one point in some cases. But the number of steps size will be increase linear with number of initialize points.  Example: The number of steps size with 10 initialize points are change around: 1000 Assignment

8  8

9 9

10  10

11  But when we used Hill-climbing on this, some time I receive local optimize, some time is a strange value, have something are wrong in here? What happening?  I will point to you a case that we can’t find the optimize value if we only used Hill-climbing method. Assignment

12 Now, you are standing in point a. You used Hill- climbing and you receive point a’. But it isn’t a optimize value in this location because the peak of mountains isn’t exit (out of range), and you are strapped on back of the mountains. Assignment

13  We find maximum value of F(x,y) when (x,y) in line: y=-5*x/3 + 5  I replace y=-5*x/3 + 5 in function F(x,y). And then we can used For loop or Hill-Climbing to find this.  In here I used For loop with step size: You can use Hill-Climbing to replace the For Loop to have better result. Assignment

14  After that we compare maximum value in case 1 and case 2 to find exactly global value  And we find out the optimize value is point b: Max =  (x0, y0)=  Steps: 2009 Assignment

15 No. Optimize value in Case1 (-5 { "@context": "http://schema.org", "@type": "ImageObject", "contentUrl": "http://images.slideplayer.com/3248627/11/slides/slide_14.jpg", "name": "No.", "description": "Optimize value in Case1 (-5

16 16


Download ppt "Chin-Shiuh Shieh Assignment 3.1, 文鶑 1.  Maximize F 1 (x,y) Assignment - 20142 Requirement: Find maximize value of F 1 (x,y) used hill-climbing (gradient-ascent)"

Similar presentations


Ads by Google