Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Golden section search. The code for golden section optimization is below: function [x,fx,ea,iter]=goldmin(f,xl,xu,es,maxit,varargin) % goldmin: minimization golden section search % [x,fx,ea,iter]=goldmin(f,xl,xu,es,maxit,p1,p2,...): % uses

image text in transcribed

Please use Golden section search. The code for golden section optimization is below:

function [x,fx,ea,iter]=goldmin(f,xl,xu,es,maxit,varargin) % goldmin: minimization golden section search % [x,fx,ea,iter]=goldmin(f,xl,xu,es,maxit,p1,p2,...): % uses golden section search to find the minimum of f % input: % f = name of function % xl, xu = lower and upper guesses % es = desired relative error (default = 0.0001%) % maxit = maximum allowable iterations (default = 50) % p1,p2,... = additional parameters used by f % output: % x = location of minimum % fx = minimum function value % ea = approximate relative error (%) % iter = number of iterations if nargin= maxit,break,end end x=xopt;fx=f(xopt,varargin{:});

9. A compound A will be converted into B in a stirred tank reactor. The product B and process engineer has found that the initial cost of the system is a function of the conversion xA (see equation below). Find the conversion that will result in the lowest cost system. C is a proportionality constant. You may use any optimization method you like, but show your work 0.6 Cost C

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

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

Students also viewed these Databases questions