Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Combat Model.A simplified mathematical model for conventional versus guerrilla combat is given by the systemx'1=-(0.1)x1x2;x1(0)=10;x'2=-x1;x2(0)=15 wherex1 andx2 are the strengths of guerrilla and conventional troops, respectively, and 0.1 and 1 are the combat effectiveness coefficients.Who will win the conflict: the conventional troops or the guerrillas? [Hint:Use the vectorized Runge–Kutta algorithm for systems with h=0.1to approximate the solutions.]

Short Answer

Expert verified

The solution is convention loop will win.

Step by step solution

01

Transform the equation

Write the equation as x'1=-0.1x1x2and x'2=-x1

The initial conditions are:

localid="1664097278504" x1(0)=10x2(0)=15

02

Apply Runge –Kutta method

For the solution, apply the Runge-Kutta method in Matlab for h=0.1.

Now the algorithm is:

Function n[t,x] =Runge_Kutta(f,t0,t_end,init_cond,h)
%we begin at time t0 and end when we reach t_end
%init_cond(i) contains the initial value of x_i
%f contains functions such that x_i'=f_i(t,x1,x2,...)

t(:,1)=t0; % t0 is the initial value of t
x(:,1)=init_cond; % initial conditions are set

i=1;
whilet(:,i) < t_end

k1=f(t(i),x(:,i));
k2=f(t(i)+0.5*h,x(:,i)+0.5*h*k1);
k3=f(t(i)+0.5*h,x(:,i)+0.5*h*k2);
k4=f(t(i)+h,x(:,i)+h*k3);

x(:,i+1)=x(:,i)+(h/6)*(k1+2*k2+2*k3+k4);

t(:,i+1)=t(:,i)+ h;
i=i+1;

end

Now for the solution

clear all

init_cond=[10;15];
f=@(t,X) [-0.1*X(1)*X(2);-X(1)];
[t,x] = Runge_Kutta(f,0,10,init_cond,0.1);

plot(t,x(1,:),t,x(2,:));
legend('guerilla','conventional')

Therefore, the convention loop will win.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free