Question: Deterministic Modeling and Simulation 1. This problem describes the immune response triggered by encountering foreign antigens. This is called the cytotoxic T cell or

Deterministic Modeling and Simulation 1. This problem describes the immune response triggered by encountering foreign antigens. This is called the cytotoxic T cell or CTL response. Suppose that z eliminates infected cells. There are 4 variables: uninfected cells, x, infected cells, y, free virus particles v, and CTL cells z. The equations are: x=-dx-Bxv y=Bxv-ay-pyz v=ky-uv =c-bz Uninfected cells are produced at a constant rate 2, die at a rate dx and are lost to infection at a rate of Bxv. Infected cells are produced from uninfected cells and free virus at the rate, xv and die at a rate ay and are lost to CTL cells at a rate of pyz. Free virus is produced from infected cells at a rate ky and die at a rate uv. The CTL cells are produced at a rate ofc and die at a rate of b. Parameter values are = 1; d = 0.01; a=0.05; p=0.005; p=1; k=50; u = 5; b = 0.05. a). Let c=0. This produces no CTL response, or what happens without an immune system. Simulate the above systems with initial values of x(0)=10 y (0) = 1; v(0)=1; =(0)=0 Determine the steady state value by running the simulation and by running the "trim" function. Check answers with the equations. b). Let c=10. This is a strong immune response. Repeat part (a) and compare the steady-state results via simulation and the trim function. c). Let c=0.05 to simulate a weak immune response. Repeat part (a) and compare the steady- state results via simulation and the trim function. d). For part a, linearize the system using the "linmod" function around the steady-state result for part a. 2. Consider the following differential equation: dt a. Write the state equations for this system pai-5 b. Add a new state in which x=y-y, where y, is the unit step and represents the desired output of the system. Write the new state equations treating y, as another input. c. Now, pick a vector k = [k,,k,k.] such that if u = kx, the new states will have roots of the characteristic equation at -2, -3, and -4. d. Simulate the system and observe the output y and compare the response for Y = step input to the step response of the system without control. 3. Consider the control system shown below. This system might represent the control of a DC motor. We want to position the shaft to angle determined by, com- The problem is to choose the parameters Kr, the tachometer feedback and Kp, the motor shaft position, so as to minimize the integral squared error between the command input and the controlled output, y. The command input is com = 5 degrees and is shown as a step input of amplitude 5. Subtract1 Subtract amplifier 5 10+1 motor Kr tach pa dot motor int Kp position psi 4. The system of problem1 has the same parameters except that b, p and beta are different, but are between 0 and 1.5 in problem1. The file prob_1_data.mat has the data from a simulation where the first column is time, the second is x, the third is y, the fourth is v and the fifth is z. In the data, the initial condition for z is 0.5 not 0. Write the Matlab code to estimate the unknown parameters, b p and beta. Use a minimum square error criterion between the data and the model output to generate the parameter estimates.
Step by Step Solution
3.38 Rating (164 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
