Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use MatLab Please. Do Question 5 Please. In the case above, you may have been able to continually guess values until you got close enough

Use MatLab Please. Do Question 5 Please. In the case above, you may have been able to continually guess values until you got close
enough to the solution, becanse the velocity depends fairly predictably on . However, when
there are more parameters involved, it can be hard, if not imposible, to gucsis the parameters.
Let's return to the harvesting problem from last lab, which is
dydt=a103y(K-y)-
for parameters a(growth rate),K(carrying capacity), and (harvesting rate). The extra
103 is a scaling factor to make the computations work out nicer. The
harvestingSolution method will take these three parameters, a value for y(0) and a Tf and
solve the harvesting problem from 0 to Tf. ssume that you measure the population of fish
in a lake (estimating and taking an average of a few measurements) and get, in thousands,
that the population over time is given in the table above.
Try two sets of parameters and compare the results to the data by drawing a plot of the
solution with those parameters and the data for each of the gucsses that you make. Do you
think you'd be able to guess what the parameters are for this situation?
Note: It is possible for the code to give you an error if the parameters are chosen poorly. If
this happens, try reducing the harvesting rate parameter until it works. You'll also want
to be careful with the outputs from all of these functions when setting up your code.
tData =[0,1,3,5,8,12,15,21];
yData -50,64,104,142,174,186,188,188;
% Guess some parameter's
figure();
hold on;
plot(tData, yData, '');
% Plot the solution for your choice of coefficients
hold off;
The function harvestingOptimization will find the optimum value of these constants from
the data given. Find these values, display them, and plot the solution with these parameters
alongside the data again.
figure();
hold on;
plot(tData, yData, 'ro');
% Plot the optimal solution
hold off;
image text in transcribed

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

More Books

Students also viewed these Databases questions

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago

Question

Persuasive Speaking Organizing Patterns in Persuasive Speaking?

Answered: 1 week ago