Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

This project requires you to use the ideas of Chapter 25 regarding maximization of a function. Here we assume that evolution has acted to generate highly efficient foragers. By highly efficient here we mean that the animals searching for food which are able to more rapidly obtain a high food intake rate (food eaten per unit time), will be more likely to survive and reproduce. Thus, if the characteristics that lead to high food intake efficiency (which may depend upon speed, visual or hearing skills, size, etc.) are heritable, then the characteristics which lead to higher efficiency will become more prevalent (increase in frequency) in the population. This area of science is called optimal foraging theory. For a readable description of this theory see David Stephens and John Krebs book Foraging Theory [60].
One of the main areas of foraging theory deals with animals which move from “patch” to “patch” across a landscape, depleting the food in each patch the longer they stay there. Patches could be individual plants with nectar in the plants flowers that is eaten by bees, or individual plants with seeds that are eaten by birds. One question in foraging theory is to deduce the rules for when an individual will leave one patch to search for a new patch. Numerous complications arise in this, but we will consider only a very simple situation, in which we have the following assumptions:
(1) There are no interactions with other foragers, so depletion of food in a patch is due only to the single forager under consideration.
(2) There is no randomness in the environment, so that each patch is identical in terms of how much resource it has before foraging starts.
(3) Once the patch is depleted it stays depleted. (4) There are many patches available. (5) The travel-time of the forager between patches is constant.
(6) The food available in the patch decreases exponentially as the forager spends time there.
467
468 Unit 6 Derivatives
Let t be the time spent in a patch before leaving, M be the time it takes to move between two patches, and K be the amount of food in a patch before any food has been eaten. Then the total amount of food eaten in a patch is
K(1 - e-ct) (27.1)
where c is the decay rate of available food in a patch once foraging starts. In Equation 27.1 e-ct represents the proportion of food left in the patch after the forager has eaten from the patch over time t. Thus, 1 - e-ct represents the proportion of food eaten from the patch over time t. When we multiply this term by K (the total amount of food in the patch before any is eaten) we obtain the amount of food eaten from the patch after the foraging is complete.
We define the one foraging bout as the time spent moving to the patch plus the time spent foraging in that patch. Thus, the total time of one foraging bout is
M + T. The food intake rate is the amount of food consumed divided by the time spent
consuming the food, i.e.
K ??1 - e-cT ??
(27.2)
T+M Using the example from Section 25.6 as an example, complete the following.
1. Think of Equation 27.2 as a function of the time spent in a patch before leaving, t. Take the first derivative of this function with respect to t. Notice, that when the derivative is set equal to zero, you cannot explicitly solve for t. Write an equation, in terms of t, c, and M that can be graphed and used to find the critical points.
2. Use Matlab to estimate the critical point of the derivative of Equation 27.2, using c = 4 and M = 10. Based on the graph you produced to find the value of the critical point correct to two decimal places. Explain why you know that a local maximum occurs at this point.
3. The critical point found in part 2 is the optimal time a forager should spend foraging in one particular path. Explain why it makes sense biologically that this point is a local maximum.
4. Repeat part 2 but use M = 1, 5, 15, and 20. Does the graph in each case indicate that the critical point is still a maximum? How do the optimal foraging times in these cases compare to the optimal foraging time you found in part 2.
5. Repeat part 2 but use c = 0, 2, 4, 6, 8, 10. Does the graph in each case indicate that the critical point is till a maximum? How to the optimal foraging times in these cases compare to the optimal foraging time you found in part 2.
Chapter 27 Unit Projects 469
6. In Matlab, create the following m-file.
OptimalForaging.m 1 M = [1 5 10 15 20];
2 c = [0 2 4 6 8 10]; 3z= 4 5
6 7
surface(c,M,z); xlabel(’c’); ylabel(’M’);
For z, construct a matrix where each column corresponds to an M value, (1, 5, 10, 15, 20), each row corresponds to a c value, (0, 2, 4, 6, 8, 10), and the value of each entry in the matrix is the corresponding optimal foraging time. For example, the optimal foraging time found in part 2 would be the entry in row 3, column 3. You already have several of the values from parts 2, 4, and 5. You will need to use Matlab to determine the rest of the values. The resulting matrix z should be a 6 × 5 matrix.
Once you have constructed matrix z, run the m-file OptimalForaging.m. A plot
will be generated. Use the button to rotate the graph to look at the surface plot from different angles. Describe what this 3-dimensional surface plot is showing you. What are the advantages and disadvantages of viewing a 3-d plot such as this?

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M9514635

Have any Question?


Related Questions in MATLAB

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

Prepare a 3 - 10 pages long reportprepare a presentation

Prepare a 3 - 10 pages long report Prepare a presentation with 5 - 9 slides. The slides will include introduction (need and similar work), theoretical background (tested neural networks), Data, Results (Comparison of the ...

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

Suppose that you have used some concept learning algorithm

Suppose that you have used some concept learning algorithm to learn a hypothesis h1 from some training data. You are interested in knowing the accuracy that the hypothesis can be expected to achieve on the underlying pop ...

Assignmentq1 find the laplace transforms of the following

Assignment Q.1 Find the Laplace transforms of the following functions: (a) t 2 + at + b and (b) sin(2nΠt/T) Q.2 Find f (t) for the following F(s) = α[ f (t)]. (i) 5/(s + 3), (ii) 1/s 2 + 25, (iii) 1/s(s+1) Q.3 Find the L ...

Assignmentafter the success of your robo-advice venture you

Assignment After the success of your robo-advice venture you decide to explore alternative sources of profitability for your company. You realize that Australian investors are often forced to chose between expensive acti ...

Discrete optimisation- solve the following two problems

Discrete Optimisation - Solve the following two problems with both exhaustive enumeration and branch and bound - Problem 1 is a mixed integer linear optimisation problem (the problem has both discrete and continuous vari ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As