Question: 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

 Please use Golden section search. The code for golden section optimization

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!