Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

To translate the steepest ascent into matlab code: f(x,y)=-8*x + 12*y + x^2 - 2*x^4 - 2*x*y + 4*y^2 dx=-8+2x-8x^3-2y dy=12-2x+8y subs in x0=0, y0=0

To translate the steepest ascent into matlab code:

f(x,y)=-8*x + 12*y + x^2 - 2*x^4 - 2*x*y + 4*y^2

dx=-8+2x-8x^3-2y

dy=12-2x+8y

subs in x0=0, y0=0 into dx and dy

dx=-8

dy=12

subs dx and dy into x1=x0 + dx*0.001 and y1=y0 + dy*0.001

then subs x1 and y1 back to x0 and x0; repeat the step until the answer has reach optimisation.

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

What are the essential components of a futures contract?

Answered: 1 week ago

Question

processors and a number of tasks they can perfome at any given time

Answered: 1 week ago