MATH 475B Lecture Notes - Lecture 11: Eval

33 views5 pages

Document Summary

Page 1 of 5 - feb 22, 2011. Go over hw 2 and a sample simpler problem. Then pick the bests. costs vs accuracy: cost = # function evals or execution time, ode 113 = 1 function eval per step. Instead of looking at the speed of each method, it is better to at the accuracy of the nal answer. Ode113(@robot, 0:1200 %this does not change the internal step size, just the output% , ) Can also use odeset("re ne", 10) % ignored if you specify output times, will extrapolate 9 pts per calculated pt. Page 2 of 5 - feb 22, 2011. Simple example of sensitivity function udot = rhs(t,u, lambda) udot = [lambda * u(1) ; lambda * u(2) ; lambda * u(3) + u(1) ]; option = odeset("reltol", 1e-6, "stats", "on"); [tout, uout] = ode45(@rhs, [0 10] , [y0; 1 ; 0], options, lambda) So the sensitivity matrix is: uout(end, :)" =

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related textbook solutions

Related Documents