A seminal breakthrough in HIV treatment was the use of multiple-drug combination therapy. The idea behind...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A seminal breakthrough in HIV treatment was the use of multiple-drug combination therapy. The idea behind the therapy is that multiple drugs, introduced to the body at specific times, fight the virus off better than one drug alone. A key step in the development of multiple-drug therapy is determining the best time to take the next drug. One way this is done is to take the next drug when the previous drug is at its maximum in the body (and beginning to decrease from there). Drug absorption and elimination in the body is modeled using compartmental models. Consider a model whose solution is given by 11 x(t) = —— (e-¹/¹² - e-t), -t/12 (1) where r(t) is the amount of the drug in the body at time t. Assume that we want to administer the next drug when r(t) is at its maximum. We call this time tmax in what follows. Recall that we have only talked about minimizing functions so you will have to restate the problem as a minimization problem. 1 (a) Find tmax and the maximum of the function r(t) by taking the derivative (by hand) and using scipy. optimize. fsolve to solve the resulting equation (see an example of how to use this in the Homework 4 template), with an initial guess of 20 = 1.5, to find the root of x' (t). First save a' (1.5) to the variable A1 to make sure you have r' (t) defined correctly. Then save tmax to the variable A2 and the maximum of r(t) to the variable A3. Note: scipy. optimize.fsolve returns an array, make sure you get the single number out of that array for your answers here. (b) Use scipy. optimize.fminbound with the interval [0, 10] to find tmax and the maximum of r(t). Create an array with 2 elements: tmax in the first component and the maximum in the second component. Save this array to the variable A4. A seminal breakthrough in HIV treatment was the use of multiple-drug combination therapy. The idea behind the therapy is that multiple drugs, introduced to the body at specific times, fight the virus off better than one drug alone. A key step in the development of multiple-drug therapy is determining the best time to take the next drug. One way this is done is to take the next drug when the previous drug is at its maximum in the body (and beginning to decrease from there). Drug absorption and elimination in the body is modeled using compartmental models. Consider a model whose solution is given by 11 x(t) = —— (e-¹/¹² - e-t), -t/12 (1) where r(t) is the amount of the drug in the body at time t. Assume that we want to administer the next drug when r(t) is at its maximum. We call this time tmax in what follows. Recall that we have only talked about minimizing functions so you will have to restate the problem as a minimization problem. 1 (a) Find tmax and the maximum of the function r(t) by taking the derivative (by hand) and using scipy. optimize. fsolve to solve the resulting equation (see an example of how to use this in the Homework 4 template), with an initial guess of 20 = 1.5, to find the root of x' (t). First save a' (1.5) to the variable A1 to make sure you have r' (t) defined correctly. Then save tmax to the variable A2 and the maximum of r(t) to the variable A3. Note: scipy. optimize.fsolve returns an array, make sure you get the single number out of that array for your answers here. (b) Use scipy. optimize.fminbound with the interval [0, 10] to find tmax and the maximum of r(t). Create an array with 2 elements: tmax in the first component and the maximum in the second component. Save this array to the variable A4.
Expert Answer:
Answer rating: 100% (QA)
a We have the function xt 3 Differentiating this function we find x t et24 e12 1210 1271... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
1. If the Internet and other technologies reduce transaction costs (such as ordering costs) to zero, what effect might this have on the economic order quantity (EOQ) calculations discussed in Chapter...
-
Jan Flenderson, marketing manager at Awesome Bits Games (ABG), was starting to get worried. The Kickstarter crowdfunding campaign for the latest company board game, Undead Rising, had gone live at 3...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Question 4: What is meant by statistical versus nonstatistical and probabilistic versus nonprobabilistic sample selection?
-
A squirrel-cage induction motor runs at a full-load slip of 3.7 percent. The rotor current at starting is 6.0 times the rotor current at full load. The rotor resistance and inductance is independent...
-
What must firms use when estimating the amount of a loss contingency in a range of estimates to report in the financial statements?
-
Prove that, under the equivalent martingale measure \(\mathbb{Q}_{n}\) of Section 2.3.4, the ratio \(f_{t} B_{t}\) is a martingale. Data From Section 2.3.4, The mathematics of arbitrage relies on...
-
Yosemite Bike Corp. manufactures mountain bikes and distributes them through retail outlets in California, Oregon, and Washington. Yosemite Bike Corp. has declared the following annual dividends over...
-
12345 1 2 3 4 5 6 7 8 819 9 10 Define production system and explain types of productions system? Distinguish between product layout and process layout? Explain the principles of good plant layout?...
-
Fill in the blanks for the ABC analysis process map. Based on the process map, calculate the assigned indirect costs using the traditional method. Explain the pros and cons of this in comparison to...
-
Part IV. Consider the following Cobb-Douglas type production function (label your answers a., b., etc.): Q = 20K0.25L0.5 a. Is this function linearly homogeneous? Explain. b. What is the slope of the...
-
The box entitled How Would You Do That? 1 introduced a number of financial tools for predicting a firms financial troubles. Pick a public company that has recently announced financial woes and run...
-
The box entitled How Would You Do That? 1 helps you see how a profit pool model is developed for a particular industry or geographic or product arena. You are given Starbucks and ready-to-drink...
-
Refer to the opening case on HUI. Assume that, for reasons of estate planning, the owners decided to take the company public through an IPO. What would be the effect on the firms strategy and...
-
Apply the concepts of strategy formulation and implementation to your college experience. What was your objective in going to college? When did your strategy for achieving this objective emerge? Has...
-
The output of workers at a Porta Egypt factory depends on the number of supervisors hired. The factory sells each unit of its output for $0.50, hires 50 production workers at a wage of $100 per day,...
-
What is meant by supply-side economics? O Supply-side economics refers to the use of taxes to increase incentives to work, save, invest, and start a business in order to increase short-run aggregate...
-
What are the key elements of a system investigation report?
-
Use frequency response methods to design a lag-lead compensator for a unity feedback system where and the following specifications are to be met: percent overshoot = 10%, settling time = 0.2 second,...
-
How are summing junctions shown on a signal-flow graph?
-
The system shown in Figure P6.16 has G 1 (s) = 1/s(s + 2) (s + 4). Find the following: a. The value of K 2 for which the inner loop will have two equal negative real poles and the associated range of...
-
What challenges is Lidl likely to face in the coming years?
-
Consider a country other than the UK and investigate the changes in its industrial structure. Are the changes similar to or different from those in the UK?
-
Outline the main determinants of business performance. In each case, explain whether it is a micro- or macroeconomic issue.
Study smarter with the SolutionInn App