chbe2120fall2010hw8 - ChBE 2120 Homework 8 Due Friday at...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ChBE 2120 Homework 8 Due: Friday, October 22, 2010 at 8:05 am For most of this homework, you will maximize the following function (from homework 7): max ݃ ሺݔ,ݕሻൌെ4ݔ ൅2ݔݕെݕ ሺݔ,ݕ డ௚ (1) Solve the optimization problem above by the steepest ascent method, returning the values of x and y that maximize the function as well as the function value at that point. Save the m-file as a script named hw8_myGtAccountId.m. The initial guess is (x 0 ,y 0 ) =(1.2,0.7). Hints: - Before you start coding, it will be useful to compute the gradient ׏݃ ሻൌ቎ డ௫ డ௚ డ௬ by hand in analytical form. You should put this in a Matlab file called hw8DelG_myGtAccountId.m . Try using a function declaration like: function outputVec = hw8delG_mstyczynski6(inputVec) where inputVec would contain your x and y, while outputVec would contain your dfDx and dfDy (this setup is useful for part 3). - Given what we did in class for steepest ascent optimization, to translate the function of two variables above into a function of one variable, we would substitute all instances of x and y with ሺ௫ ,௬ డ௫ ቀݔ డ௚ ܽቁ and ቀݕ ሺ௫ ,௬ డ௬ డ௚ ܽቁ , respectively. (This is the generalized form of the specific examples we discussed in class.) Put the resulting function into a Matlab function that accepts as input a value for a, x
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/01/2011 for the course CHBE 2120 taught by Professor Gallivan during the Spring '07 term at Georgia Tech.

Page1 / 2

chbe2120fall2010hw8 - ChBE 2120 Homework 8 Due Friday at...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online