Optimal Control Simulation Problem

Size: px
Start display at page:

Download "Optimal Control Simulation Problem"

Transcription

1 ECE-S Optimal Control Midterm his solution was prepared by Rob Allen on Feb 9, 009 he basic questions are given on the following page the solution presented includes a variety of {Q, R} which include the values in our exam Optimal Control Simulation Problem page 1 of 1

2 he solutions follow this form of the exam. ECE-S Midterm 1 Solutions Fall 009 he LIV inematic equations for one dimensional motion are given as: x v + 1 = 1 x + v 0 1 u We can consider this as the model of a falling object (maybe on another planet) where: x() = position, v() = velocity, and u() an acceleration input. Assume that the initial conditions are x0 = 5000 feet and v0 = -500 feet/sec use = 0.5 second. a) Using the technique in the least squares handout find an open loop control to bring the plant to the origin x() = 0, v() = 0 when =10 seconds. Provide plots of x(), v() and u(). he horizontal axis should be calibrated in time increments which is. Compute the energy expended. For parts b, c, and d use the notation and formulations in Lewis. b) Formulate a performance index using.- as the model and simulate the fixed final state open loop control problem to bring the plant to the origin x() = 0, v() = 0 when =10 seconds. We wish to minimize the control energy. Provide plots of x(), v() and u() and the cost J. he horizontal axis should be calibrated in time increments which is. Explain your choices for S, Q and R and any constraints that may be required. c) Using the same choice of S, Q and R simulate the system using free final state closed loop control. Provide plots of x(), v() and u() and the cost J and anything else that may be important. d) Since this is a LIV system find a constant feedbac gain matrix (.4-14). Find the limiting solution to.4. and the solution to the ARE. Again simulate the system showing plots of x(), v() and u() and the cost J and anything else that may be important. Comment on the results of parts a, b, c, and d. A table may be a good presentation method. page of 1

3 Given Problem: Part (a) Solution As stated in the least squares handout when driving a discrete time system to the origin in >n steps, there are many solutions. he problem is underdetermined, in that there are n equations, or constraints, specified by the physics of the problem with unnowns (discrete control inputs). he numbers of unnowns are specified by the finite time specified to drive the system from an initial state to the origin. What follows is an attempt to show that the pseudo-inverse 1 can be thought of a constrained minimum energy optimization problem and can be turned into an unconstrained optimization problem using Hamiltonian based approach taught in this course. he results here will be utilized in the discussion to compare simulation results from least squares and fixed-final state open loop control methods. As shown in the handout the problem can be written as Y = C U (1) he Euclidian, or -norm can be thought of as the square root of the total energy in a signal. Let the cost function, or performance index, be the square of the -norm of the control energy ( u + u + u +... ) = ( u + u +... ) = + J = U u () ow constrain U so that it must also satisfy the physics of the problem, which are specified by a system of discrete time equations, with initial and terminal conditions, as in the handout, page 3 of 1

4 Y C U = 0 (3) o transform this problem into an unconstrained optimization problem, introduce the Hamiltonian (scalar function) as H = U - λ Τ ( Y C U) (4) where λ is a Lagrangian multiplier. o be a stationary point, a necessary condition is that H U = U C λ = 0 (5) Multiplying both sides by C and using (1) enables the solution for λ to be written as λ 1 = (C C ) Y (6) Plugging this into (5) and solving for U, yields U = C (C C ) 1 Y (7) he handout refers to the terms proceeding the Y term as a pseudo-inverse. [C (C C ) 1 ] (8) o chec that the solution for U is indeed a minimum, the Hessian must be positive definite. he Hessian is, H U = > 0 (9) hus, the pseudo inverse solution for U, minimizes the control energy required to tae the system from x 0 to x in steps (>n). Simulation results are shown on the following page. ote what might be a drawbac to this method is that although the control energy is minimized, large state excursions are not penalized. For example at 0.5 seconds till the object lands, the object is traveling at approximately 100 feet per second and undergoing rapid deceleration! page 4 of 1

5 Figure 1 Open-loop least squares solution for discrete time model of falling object. Figure. Cost of least squares solution as a function of time. otal cost or control energy expended is ote here that the cost used includes a ½ so another acceptable answer is page 5 of 1

6 Part (b) ECE-S Midterm 1 Solutions Fall 009 Solution o solve this problem the discrete-time linear quadratic regulator, fixed-final-state open-loop control was implemented in Matlab. It turns out that this is a minimum-control-energy solution. he performance index over the time interval [i ] is defined by x S x + = i ( x Q x + u R u ) J = (1) i, where, S is a terminal condition state weighting matrix, and Q and R are time varying state and control weighting matrices respectively. Since the final-state is fixed, the terminal weighting term, S is unnecessary and set to zero. Q is set to zero to mae the problem more easily handled (see Lewis). he performance index, or cost function for the final-state-fixed problem then reduces to 1 1 = i ( u R u ) J = () i, he optimal control sequence is given as (equation.-38 in Lewis text) u * = R 1 B 1 1 ( A ) G0, ( r A x0 ) (3) where the weighted reachability gramian is 1 i 1 1 i 1 0, = A BR B ( A ) i= 0 G (4) For the following simulation results shown, R was set to a constant, 1. page 6 of 1

7 Figure 3 Fixed-final-state open-loop control simulation results for discrete time model of a falling object. Figure 4 Cost of least fixed-final-state solution as a function of time. otal cost or energy expended is , which is the same as the least squares solution. page 7 of 1

8 Part (c) ECE-S Midterm 1 Solutions Fall 009 Solution o solve this problem the discrete-time linear quadratic regulator, free-final-state closed-loop control simulation routine was implemented in Matlab (see Appendix). [x,u,k,s,j]= dlqropt(a,b,q,r,s,x0,); he cost function is x S x + = i ( x Q x + u R u ) J = (1) i, and the equation to solve for the optimal time-varying feedbac is u = K x () where the time varying gain is given by K ( B S B R ) B S + 1 = A (3) and the cost ernel is given by the following Riccati equation 1 [ S + 1 S + 1B B S + 1B + R ) B S 1 ] A Q S ( + (4) = A + o implement these equations the cost ernel (4) and time varying state feedbac gain (3) are computed beforehand and stored off-line. he cost ernel (4) must be solved bacwards in time, with an initial condition of S which is specified by the designer. After (3) and (4) are solved the governing discrete time state equations are solved forwards in time, utilizing the optimal time varying feedbac gain to compute the optimal control input at each time. hese are referred to as on-line, computations in the textboo (Lewis). o learn about the behavior of the weighting matrices in the cost equation (1), some limiting cases are presented. Zero-Input-Response(ZIR) ow that the boundary condition of a fixed final state has been removed that existed in the least squares and fixed-final-state solutions, the final-free-state closed loop solution can minimize control energy with no constraints. As an extreme example, setting Q = S = 0 and R very small will effectively have zero control energy and yields the Zero Input Response (ZIR) of the system. page 8 of 1

9 Figure 5 Free-final-state solution with Q=S =0 and R=.001 yields a zero input response (ZIR) which is an optimal solution to the minimum control energy problem with no constraints. Free-final-state closed-loop approximation of fixed-final-state open-loop control solution Or with appropriate choices for the weighting matrices, S, Q, and R, the results presented by the fixed-final-state open-loop solution can be approximated in a closed-loop manner. Figure 6 Free-final-state closed-loop solution simulation approximates fixed-final-state (minimum energy with boundary condition) open-loop solution for large R and S. Simulation is for S =[ ; ], Q=[0 0; 0 0], and R= page 9 of 1

10 ominal free-final-state closed-loop solution Weighting matrices are now selected to strie a balance between the competing and usually conflicting goals of minimizing control energy, state excursions while driving the system to a terminal state condition. Figure 7 Free-final-state closed-loop simulation for S =[000 0; ], Q=[1 0; 0 1], and R=10. Figure 8 ime varying gain and cost for free-final-state closed-loop simulation with S =[000 0; ], Q=[1 0; 0 1], and R=10. page 10 of 1

11 Figure 9 All four elements of the cost ernel matrix as a function of time for free-final-state closed-loop simulation with S =[000 0; ], Q=[1 0; 0 1], and R=10. Part (d) Solution o solve this problem the discrete-time linear quadratic regulator, free-final-state closed-loop infinite horizon routine was implemented in Matlab (see Appendix). [x,u,k,s,j]= dlqroptinf(a,b,q,r,s,x0,,kinf); he following values were utilized to compute the constant feedbac gain matrix S =[000 0; ], Q=[1 0; 0 1], and R=10, =00. he constant feedbac gain matrix becomes: K = (1) A solution to the Algebraic Ricatti Equation (ARE) exists if and only if the solution to the following Riccati equation, 1 [ S + 1 S + 1B B S + 1B + R ) B S 1] A Q S ( + () = A + page 11 of 1

12 converges to a finite solution. his equation was solved bacwards in time, to yield S = (3) Since the cost ernel matrix converges, a solution to the following ARE exists, S 1 = A [ S SB( B SB + R) B S] A (4) Using the Matlab dare() program to solve the ARE agreement is shown between the ARE and the time varying solution (3) for the cost ernel. [X,L,G] = dare(a,b,q,r); X = (5) Suboptimal Solution to the nominal free-final-state closed-loop solution in part (c) Figure 10 Suboptimal control for free-final-state closed-loop solution simulation with S =[000 0; ], Q=[1 0; 0 1], and R=10 shows similar results to part (c). page 1 of 1

13 Figure 11 Suboptimal fixed gains and cost for free-final-state closed-loop simulation with S =[000 0; ], Q=[1 0; 0 1], and R=10 shows results similar to part (c). he cost is slightly less, 60.65e6, versus 60.7e6 from part (c). Figure 1 All four elements of the cost ernel matrix as a function of time for the suboptimal free-final-state closed-loop simulation with S =[000 0; ], Q=[1 0; 0 1], and R=10. page 13 of 1

14 Discussion Methods (b), (c), and (d) all strive to minimize the cost function or performance index over the time interval i to defined by x S x + = i ( x Q x + u R u ) J = (1) i, where, S is a terminal condition weighting matrix, and Q and R are time varying state and control weighting matrices respectively. Values for the weighting matrices are chosen by the design engineer to give the system a desired performance. For the fixed-final-state open-poop control implemented in part (b) the cost function reduces (for scalar u) to J = = 1 ( u R u ) = ( R u + R u + R u +...) 1 1 i () Or, for constant weighting matrix, R, 1 J = R ( u1 + u + u3 +...) (3) As shown in part (a), the least squares solution, minimizes the square of the Euclidean, or -norm of the control energy, ( u1 + u + u ) = ( u1 + u ) U = u (4) If we assume the control weighting matrix, R does not vary with time, then () and (4) only differ by a scale factor and will have the same solution for the minimum cost. hus, it should be anticipated that the least squares method and the fixed-final-state open-loop control methods are equivalent and the implementations of the open-loop control methods will yield the same results only if R does not vary with time. For the free-final-state closed-loop control method algorithm of method (c) S is usually non-zero to drive the system to x, the terminal condition, and Q is also usually non zero to penalize excessive state excursions. Also, as shown by simulation, by as S and R become large (with Q set to zero), the results will approximate those of (a) and (b), since the terminal condition and the control energy expended are heavily weighted. But, the free-final-state method has the substantial benefit in that it is closed-loop, and will therefore will be more robust in that it will be more tolerant of un-modeled dynamics or disturbances. he free-final-state closed-loop control method is complicated by the fact that off-line computations must be done to compute and store the optimal, time-varying gain, K, for use in the closed-loop system implementation. A simplification made in method (d) is to utilize a constant feedbac gain, as goes to infinity (infinite horizon). his is referred to as a sub-optimal feedbac. However a performance penalty will be realized for this implementation and the designer must determine if the system performance is suitable for the application at hand. page 14 of 1

15 he simulation results are summarized in the table below. As expected the least squares and fixedfinal-state open-loop results are identical! As expected the free-final-state closed-loop results do not hit the terminal conditions exactly, as there are residual terminal velocity and position errors. Also note the fact that the open-loop methods effectively have no state weighting, Q, so the states can be large as terminal conditions are approached (note average acceleration is shown in table). But of course method free-final-state method uses more fuel. Since one is typically concerned with having a smooth landing, or minimizing certain states such acceleration, jer w, the impact of time-varying state weighting gain Q and penalize state excursions more heavily as terminal conditions are approached to further optimize the trajectory should be investigated. he table also shows the performance penalty realized for the simplicity of the sub-optimal control approach, in that the final velocity is excessive. Clearly this would mae for a rough landing and would not be suitable for implementation as it stands. Method Least Squares Open Loop Fixed Final State Open Loop Free Final State Closed Loop Suboptimal Control Closed Loop Final Position (f) Final Velocity (fps) Final Acceleration (fps^) Cost (Fuel) otal Cost Robust o o Yes Yes page 15 of 1

16 Appendix Code Listing for part (a): clear all close all %************** %*** PAR A *** %************** =0.5; % Sample ime x0= 5000; % f v0=-500; %fps A = [1 ; 0 1] B = [^/;] %Drive the system to the origin in 0 steps =0 %erminal condition x0=[x0; v0] x0=[0; 0] C=B; for i=1:-1 C = [C A^i *B]; end P_IV=C'*inv(C*C') u=(p_iv*(x0-a^*x0)); u=flipud(u) % Steps x = x0; traj = x0; for i=1: xnext = A*x + B*u(i); traj = [traj xnext]; x = xnext; J(i)= 1/ * u(i)^; end traj u' h = figure; subplot(3,1,1) stem([0:]*,traj(1,:),'linewidth',.0); ylabel('x()'); title(['on Optimal =0']); axis([-1* *(+1) ]) title('lunar Surface Landing:: Open Loop Least Squares Solution, =0 steps') subplot(3,1,) stem([0:]*,traj(,:),'linewidth',.0); ylabel('v()');axis([-1*,*(+1),-inf,inf]) subplot(3,1,3) stem([0:-1]*,u,'linewidth',.0); ylabel('u()'); xlabel('time(s)'); axis([-1*,*(+1),-inf,inf]) figure stem([0:-1]*,j,'linewidth',.0); ylabel('j()'); xlabel('time(s)'); axis([-1*,*(+1),-inf,inf]) title(['cost as a Function of time:: otal cost=' sprintf('%7.0f',sum(j))]) page 16 of 1

17 Code Listing for part (b): clear all close all %************** %*** PAR B *** %************** % Fixed Final State, Open Loop Control clear all =0 R=1 =0.5; % Sample Ime x0= 5000; % f v0=-500; %fps A = [1 ; 0 1] B = [^/;] %Drive the system to the origin in 0 steps =0 %erminal condition x0=[x0; v0] x0=[0; 0] r=x0 G = zeros(,); %Compute Controllability Grammian for i=0:-1 G=G + A^(-i-1) * B * inv(r) * B' * (A')^(-i-1); end Ginv = inv(g) % Steps x = x0; traj = x0; for i=0:-1 u(i+1) = inv(r) * B' * (A')^(-i-1) * Ginv * (r - A^*x0) xnext = A*x + B*u(i+1); traj = [traj xnext]; x = xnext; J(i+1)= R/ * u(i+1)^; end traj u' h = figure; subplot(3,1,1) stem([0:]*,traj(1,:),'linewidth',.0); ylabel('x()'); title(['on Optimal =0']);axis([-1,+1,- inf,inf]) axis([-1* *(+1) ]) title('lunar Surface Landing::Fixed Final State, Open Loop Control, =0 steps') subplot(3,1,) stem([0:]*,traj(,:),'linewidth',.0); ylabel('v()');axis([-1*,*(+1),-inf,inf]) subplot(3,1,3) stem([0:-1]*,u,'linewidth',.0); ylabel('u()'); xlabel(''); axis([-1*,*(+1),-inf,inf]) figure stem([0:-1]*,j,'linewidth',.0); ylabel('j()'); xlabel(''); axis([-1*,*(+1),-inf,inf]) title(['cost as a Function of time:: otal cost=' sprintf('%7.0f',sum(j))]) sum(j) page 17 of 1

18 Code Listing for part (c): clear all close all %************** %*** PAR C *** %************** clear all =0.5; % Sample Ime x0= 5000; % f v0=-500; %fps A = [1 ; 0 1] B = [^/;] %Drive the system to the origin in 0 steps =0 %erminal condition x0=[x0; v0] x0=[0; 0] r=x0 Q=[1 0; 0 1]; R=10; s=[000 0; ]; [x,u,k,s,j]= dlqropt(a,b,q,r,s,x0,); ECE-S Midterm 1 Solutions Fall 009 h = figure; subplot(3,1,1) stem([0:]*,x(1,:),'linewidth',.0); ylabel('x()'); title(['on Optimal =0']);axis([- 1*,*(+1),-inf,inf]) title('lunar Surface Landing:: Closed Loop, Free Final State =0 steps') subplot(3,1,) stem([0:]*,x(,:),'linewidth',.0); ylabel('v()');axis([-1*,*(+1),-inf,inf]) subplot(3,1,3) stem([0:-1]*,u,'linewidth',.0); ylabel('u()'); xlabel('time(s)'); axis([-1*,*(+1),-inf,inf]) h = figure; subplot(3,1,1) stem([0:-1]*,k(:,1),'linewidth',.0); ylabel('k1()');axis([-1*,*(+1),-inf,1.1*max(k(:,1))]) title(['closed Loop, Free Final State: Gains and Cost=' numstr(sum(j))]) subplot(3,1,) stem([0:-1]*,k(:,),'linewidth',.0); ylabel('k()');axis([-1*,*(+1),-inf,inf]) subplot(3,1,3) stem([0:]*,j,'linewidth',.0); ylabel('j()');axis([-1*,*(+1),-inf,inf]);xlabel('time(s)'); h= figure subplot(4,1,1) stem([0:]*,s(:,1,1),'linewidth',.0); ylabel('s11()');axis([-1*,*(+1),-inf,inf]) title('lunar Surface Landing:: Closed Loop, Free Final State =0 steps') subplot(4,1,) stem([0:]*,s(:,1,),'linewidth',.0); ylabel('s1()');axis([-1*,*(+1),-inf,inf]) subplot(4,1,3) stem([0:]*,s(:,,1),'linewidth',.0); ylabel('s1()');axis([-1*,*(+1),-inf,inf]) subplot(4,1,4) stem([0:]*,s(:,,),'linewidth',.0); ylabel('s()');axis([-1*,*(+1),- inf,inf]);xlabel('time(s)'); K sum(u.^)/ sum(j) page 18 of 1

19 function [x,u,k,s,j]=dlqropt(a,b,q,r,s,x0,) % Program to Cumpute and Simplate Optimal Feedbac Control %Compute and Store Optimal Feedbac Sequence n=length(a); S=zeros(,n,n); K=zeros(,n); S(+1,:,:)=s; for =:-1:1 K(,:)=inv(B'*s*B+R)*(B'*s*A); s=a' *(s-s*b*inv(b'*s*b+r)*b'*s) * A + Q; % Q+(R*s*a^)/(r+s*b^); S(,:,:)=s; end %Apply Optimal Control to Plant (Forward Iteration) x=zeros(n,); x(:,1)=x0; for =1: %Update Optimal Control Input u()=-k(,:)*x(:,); %Update Plant State J() = 0.5 * (x(:,)'*q*x(:,) + u()'*r*u()); x(:,+1)=a*x(:,)+b*u(); end J(+1)=0.5*x(:,)'*s*x(:,); page 19 of 1

20 Code Listing for part (d): clear all close all %************** %*** PAR D *** %************** clear all =0.5; % Sample Ime x0= 5000; % f v0=-500; %fps A = [1 ; 0 1] B = [^/;] %Drive the system to the origin in 0 steps =0 %erminal condition x0=[x0; v0] x0=[0; 0] r=x0 Q=[1 0; 0 1]; R=10; Kinf = [ ]; s=[000 0; ]; [x,u,k,s,j]= dlqroptinf(a,b,q,r,s,x0,,kinf); ECE-S Midterm 1 Solutions Fall 009 h = figure; subplot(3,1,1) stem([0:]*,x(1,:),'linewidth',.0); ylabel('x()'); title(['on Optimal =0']);axis([- 1*,*(+1),-inf,inf]) title('lunar Surface Landing:: Closed Loop, Free Final State =0 steps') subplot(3,1,) stem([0:]*,x(,:),'linewidth',.0); ylabel('v()');axis([-1*,*(+1),-inf,inf]) subplot(3,1,3) stem([0:-1]*,u,'linewidth',.0); ylabel('u()'); xlabel('time(s)'); axis([-1*,*(+1),-inf,inf]) h = figure; subplot(3,1,1) stem([0:-1]*,k(:,1),'linewidth',.0); ylabel('k1()');axis([-1*,*(+1),-inf,1.1*max(k(:,1))]) title(['closed Loop, Free Final State: Gains and Cost=' numstr(sum(j))]) subplot(3,1,) stem([0:-1]*,k(:,),'linewidth',.0); ylabel('k()');axis([-1*,*(+1),-inf,inf]) subplot(3,1,3) stem([0:]*,j,'linewidth',.0); ylabel('j()');axis([-1*,*(+1),-inf,inf]);xlabel('time(s)'); h= figure subplot(4,1,1) stem([0:]*,s(:,1,1),'linewidth',.0); ylabel('s11()');axis([-1*,*(+1),-inf,inf]) title('lunar Surface Landing:: Closed Loop, Free Final State =0 steps') subplot(4,1,) stem([0:]*,s(:,1,),'linewidth',.0); ylabel('s1()');axis([-1*,*(+1),-inf,inf]) subplot(4,1,3) stem([0:]*,s(:,,1),'linewidth',.0); ylabel('s1()');axis([-1*,*(+1),-inf,inf]) subplot(4,1,4) stem([0:]*,s(:,,),'linewidth',.0); ylabel('s()');axis([-1*,*(+1),- inf,inf]);xlabel('time(s)'); sum(u.^)/ sum(j) %=00 % Sinf = % % [X,L,G] = dare(a,b,q,r) page 0 of 1

21 function [x,u,k,s,j]=dlqroptinf(a,b,q,r,s,x0,,kinf) % Program to Cumpute and Simplate Optimal Feedbac Control %Compute and Store Optimal Feedbac Sequence n=length(a); S=zeros(,n,n); K=zeros(,n); S(+1,:,:)=s; for =:-1:1 K(,:)=Kinf; s=a' *(s-s*b*inv(b'*s*b+r)*b'*s) * A + Q; S(,:,:)=s; end %Apply Optimal Control to Plant (Forward Iteration) x=zeros(n,); x(:,1)=x0; for =1: %Update Optimal Control Input u()=-k(,:)*x(:,); %Update Plant State J() = 0.5 * (x(:,)'*q*x(:,) + u()'*r*u()); x(:,+1)=a*x(:,)+b*u(); end J(+1)=0.5*x(:,)'*s*x(:,); page 1 of 1

Module 1. Name: Date: Period: Find the following function values. 4. Find the following: Domain. Range. The graph is increasing over the interval

Module 1. Name: Date: Period: Find the following function values. 4. Find the following: Domain. Range. The graph is increasing over the interval Name: Date: Period: Algebra Fall Final Exam Review My Exam Date Is : Module 1 Find the following function values. f(x) = 3x + g(x) = x h(x) = x 3 1. g(f(x)). h(3) g(3) 3. g(f()) 4. Find the following:

More information

Introduction to Homogeneous coordinates

Introduction to Homogeneous coordinates Last class we considered smooth translations and rotations of the camera coordinate system and the resulting motions of points in the image projection plane. These two transformations were expressed mathematically

More information

Unit 1 Quadratic Functions

Unit 1 Quadratic Functions Unit 1 Quadratic Functions This unit extends the study of quadratic functions to include in-depth analysis of general quadratic functions in both the standard form f ( x) = ax + bx + c and in the vertex

More information

Written exams of Robotics 2

Written exams of Robotics 2 Written exams of Robotics 2 http://www.diag.uniroma1.it/~deluca/rob2_en.html All materials are in English, unless indicated (oldies are in Year Date (mm.dd) Number of exercises Topics 2018 07.11 4 Inertia

More information

Driven Cavity Example

Driven Cavity Example BMAppendixI.qxd 11/14/12 6:55 PM Page I-1 I CFD Driven Cavity Example I.1 Problem One of the classic benchmarks in CFD is the driven cavity problem. Consider steady, incompressible, viscous flow in a square

More information

ALGEBRA 2 W/ TRIGONOMETRY MIDTERM REVIEW

ALGEBRA 2 W/ TRIGONOMETRY MIDTERM REVIEW Name: Block: ALGEBRA W/ TRIGONOMETRY MIDTERM REVIEW Algebra 1 Review Find Slope and Rate of Change Graph Equations of Lines Write Equations of Lines Absolute Value Functions Transformations Piecewise Functions

More information

Force Modeling, Quaternion PID, and Optimization

Force Modeling, Quaternion PID, and Optimization Cornell University Autonomous Underwater Vehicle Team Spring 2014 Force Modeling, Quaternion PID, and Optimization Technical Report Alex Spitzer (aes368) May 11, 2014 Contents 1 Abstract 2 2 Previous Designs

More information

Computation of the Constrained Infinite Time Linear Quadratic Optimal Control Problem

Computation of the Constrained Infinite Time Linear Quadratic Optimal Control Problem Computation of the Constrained Infinite Time Linear Quadratic Optimal Control Problem July 5, Introduction Abstract Problem Statement and Properties In this paper we will consider discrete-time linear

More information

(Lec 14) Placement & Partitioning: Part III

(Lec 14) Placement & Partitioning: Part III Page (Lec ) Placement & Partitioning: Part III What you know That there are big placement styles: iterative, recursive, direct Placement via iterative improvement using simulated annealing Recursive-style

More information

Chapter 3 Path Optimization

Chapter 3 Path Optimization Chapter 3 Path Optimization Background information on optimization is discussed in this chapter, along with the inequality constraints that are used for the problem. Additionally, the MATLAB program for

More information

Sec 4.1 Coordinates and Scatter Plots. Coordinate Plane: Formed by two real number lines that intersect at a right angle.

Sec 4.1 Coordinates and Scatter Plots. Coordinate Plane: Formed by two real number lines that intersect at a right angle. Algebra I Chapter 4 Notes Name Sec 4.1 Coordinates and Scatter Plots Coordinate Plane: Formed by two real number lines that intersect at a right angle. X-axis: The horizontal axis Y-axis: The vertical

More information

Math Learning Center Boise State 2010, Quadratic Modeling STEM 10

Math Learning Center Boise State 2010, Quadratic Modeling STEM 10 Quadratic Modeling STEM 10 Today we are going to put together an understanding of the two physics equations we have been using. Distance: Height : Recall the variables: o acceleration o gravitation force

More information

Chapter II. Linear Programming

Chapter II. Linear Programming 1 Chapter II Linear Programming 1. Introduction 2. Simplex Method 3. Duality Theory 4. Optimality Conditions 5. Applications (QP & SLP) 6. Sensitivity Analysis 7. Interior Point Methods 1 INTRODUCTION

More information

Quadratic Functions CHAPTER. 1.1 Lots and Projectiles Introduction to Quadratic Functions p. 31

Quadratic Functions CHAPTER. 1.1 Lots and Projectiles Introduction to Quadratic Functions p. 31 CHAPTER Quadratic Functions Arches are used to support the weight of walls and ceilings in buildings. Arches were first used in architecture by the Mesopotamians over 4000 years ago. Later, the Romans

More information

LECTURE 13: SOLUTION METHODS FOR CONSTRAINED OPTIMIZATION. 1. Primal approach 2. Penalty and barrier methods 3. Dual approach 4. Primal-dual approach

LECTURE 13: SOLUTION METHODS FOR CONSTRAINED OPTIMIZATION. 1. Primal approach 2. Penalty and barrier methods 3. Dual approach 4. Primal-dual approach LECTURE 13: SOLUTION METHODS FOR CONSTRAINED OPTIMIZATION 1. Primal approach 2. Penalty and barrier methods 3. Dual approach 4. Primal-dual approach Basic approaches I. Primal Approach - Feasible Direction

More information

1 2 (3 + x 3) x 2 = 1 3 (3 + x 1 2x 3 ) 1. 3 ( 1 x 2) (3 + x(0) 3 ) = 1 2 (3 + 0) = 3. 2 (3 + x(0) 1 2x (0) ( ) = 1 ( 1 x(0) 2 ) = 1 3 ) = 1 3

1 2 (3 + x 3) x 2 = 1 3 (3 + x 1 2x 3 ) 1. 3 ( 1 x 2) (3 + x(0) 3 ) = 1 2 (3 + 0) = 3. 2 (3 + x(0) 1 2x (0) ( ) = 1 ( 1 x(0) 2 ) = 1 3 ) = 1 3 6 Iterative Solvers Lab Objective: Many real-world problems of the form Ax = b have tens of thousands of parameters Solving such systems with Gaussian elimination or matrix factorizations could require

More information

Chapter 3 Numerical Methods

Chapter 3 Numerical Methods Chapter 3 Numerical Methods Part 1 3.1 Linearization and Optimization of Functions of Vectors 1 Problem Notation 2 Outline 3.1.1 Linearization 3.1.2 Optimization of Objective Functions 3.1.3 Constrained

More information

2 T. x + 2 T. , T( x, y = 0) = T 1

2 T. x + 2 T. , T( x, y = 0) = T 1 LAB 2: Conduction with Finite Difference Method Objective: The objective of this laboratory is to introduce the basic steps needed to numerically solve a steady state two-dimensional conduction problem

More information

1.2 Numerical Solutions of Flow Problems

1.2 Numerical Solutions of Flow Problems 1.2 Numerical Solutions of Flow Problems DIFFERENTIAL EQUATIONS OF MOTION FOR A SIMPLIFIED FLOW PROBLEM Continuity equation for incompressible flow: 0 Momentum (Navier-Stokes) equations for a Newtonian

More information

Programming, numerics and optimization

Programming, numerics and optimization Programming, numerics and optimization Lecture C-4: Constrained optimization Łukasz Jankowski ljank@ippt.pan.pl Institute of Fundamental Technological Research Room 4.32, Phone +22.8261281 ext. 428 June

More information

To see what directory your work is stored in, and the directory in which Matlab will look for files, type

To see what directory your work is stored in, and the directory in which Matlab will look for files, type Matlab Tutorial For Machine Dynamics, here s what you ll need to do: 1. Solve n equations in n unknowns (as in analytical velocity and acceleration calculations) - in Matlab, this is done using matrix

More information

Instruction Manual: Relaxation Algorithm

Instruction Manual: Relaxation Algorithm Instruction Manual: Relaxation Algorithm Supplement to Trimborn, Koch and Steger (2008) Version 3.1 Timo Trimborn June 2008 1 Introduction This instruction describes how to simulate the transition process

More information

7-5 Parametric Equations

7-5 Parametric Equations 3. Sketch the curve given by each pair of parametric equations over the given interval. Make a table of values for 6 t 6. t x y 6 19 28 5 16.5 17 4 14 8 3 11.5 1 2 9 4 1 6.5 7 0 4 8 1 1.5 7 2 1 4 3 3.5

More information

Constrained and Unconstrained Optimization

Constrained and Unconstrained Optimization Constrained and Unconstrained Optimization Carlos Hurtado Department of Economics University of Illinois at Urbana-Champaign hrtdmrt2@illinois.edu Oct 10th, 2017 C. Hurtado (UIUC - Economics) Numerical

More information

Page 1 of 7 E7 Spring 2009 Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Department of Civil and Environmental Engineering. Practice Midterm 01

Page 1 of 7 E7 Spring 2009 Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Department of Civil and Environmental Engineering. Practice Midterm 01 Page 1 of E Spring Midterm I SID: UNIVERSITY OF CALIFORNIA, BERKELEY Practice Midterm 1 minutes pts Question Points Grade 1 4 3 6 4 16 6 1 Total Notes (a) Write your name and your SID on the top right

More information

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx 1 of 9 FreeMat Tutorial FreeMat is a general purpose matrix calculator. It allows you to enter matrices and then perform operations on them in the same way you would write the operations on paper. This

More information

Final Exam Review Algebra Semester 1

Final Exam Review Algebra Semester 1 Final Exam Review Algebra 015-016 Semester 1 Name: Module 1 Find the inverse of each function. 1. f x 10 4x. g x 15x 10 Use compositions to check if the two functions are inverses. 3. s x 7 x and t(x)

More information

A simple example. Assume we want to find the change in the rotation angles to get the end effector to G. Effect of changing s

A simple example. Assume we want to find the change in the rotation angles to get the end effector to G. Effect of changing s CENG 732 Computer Animation This week Inverse Kinematics (continued) Rigid Body Simulation Bodies in free fall Bodies in contact Spring 2006-2007 Week 5 Inverse Kinematics Physically Based Rigid Body Simulation

More information

Matrix Inverse 2 ( 2) 1 = 2 1 2

Matrix Inverse 2 ( 2) 1 = 2 1 2 Name: Matrix Inverse For Scalars, we have what is called a multiplicative identity. This means that if we have a scalar number, call it r, then r multiplied by the multiplicative identity equals r. Without

More information

Matlab Introduction. Scalar Variables and Arithmetic Operators

Matlab Introduction. Scalar Variables and Arithmetic Operators Matlab Introduction Matlab is both a powerful computational environment and a programming language that easily handles matrix and complex arithmetic. It is a large software package that has many advanced

More information

Name Period. (b) Now measure the distances from each student to the starting point. Write those 3 distances here. (diagonal part) R measured =

Name Period. (b) Now measure the distances from each student to the starting point. Write those 3 distances here. (diagonal part) R measured = Lesson 5: Vectors and Projectile Motion Name Period 5.1 Introduction: Vectors vs. Scalars (a) Read page 69 of the supplemental Conceptual Physics text. Name at least 3 vector quantities and at least 3

More information

Introduction to Optimization

Introduction to Optimization Introduction to Optimization Second Order Optimization Methods Marc Toussaint U Stuttgart Planned Outline Gradient-based optimization (1st order methods) plain grad., steepest descent, conjugate grad.,

More information

CCNY Math Review Chapter 2: Functions

CCNY Math Review Chapter 2: Functions CCN Math Review Chapter : Functions Section.1: Functions.1.1: How functions are used.1.: Methods for defining functions.1.3: The graph of a function.1.: Domain and range.1.5: Relations, functions, and

More information

Finite Element Analysis Prof. Dr. B. N. Rao Department of Civil Engineering Indian Institute of Technology, Madras. Lecture - 24

Finite Element Analysis Prof. Dr. B. N. Rao Department of Civil Engineering Indian Institute of Technology, Madras. Lecture - 24 Finite Element Analysis Prof. Dr. B. N. Rao Department of Civil Engineering Indian Institute of Technology, Madras Lecture - 24 So in today s class, we will look at quadrilateral elements; and we will

More information

CS231A. Review for Problem Set 1. Saumitro Dasgupta

CS231A. Review for Problem Set 1. Saumitro Dasgupta CS231A Review for Problem Set 1 Saumitro Dasgupta On today's menu Camera Model Rotation Matrices Homogeneous Coordinates Vanishing Points Matrix Calculus Constrained Optimization Camera Calibration Demo

More information

Jane Li. Assistant Professor Mechanical Engineering Department, Robotic Engineering Program Worcester Polytechnic Institute

Jane Li. Assistant Professor Mechanical Engineering Department, Robotic Engineering Program Worcester Polytechnic Institute Jane Li Assistant Professor Mechanical Engineering Department, Robotic Engineering Program Worcester Polytechnic Institute (3 pts) Compare the testing methods for testing path segment and finding first

More information

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras Module No. #01 Lecture No. #1.1 Introduction to MATLAB programming

More information

Contents. I Basics 1. Copyright by SIAM. Unauthorized reproduction of this article is prohibited.

Contents. I Basics 1. Copyright by SIAM. Unauthorized reproduction of this article is prohibited. page v Preface xiii I Basics 1 1 Optimization Models 3 1.1 Introduction... 3 1.2 Optimization: An Informal Introduction... 4 1.3 Linear Equations... 7 1.4 Linear Optimization... 10 Exercises... 12 1.5

More information

Linear quadratic regulator

Linear quadratic regulator Chapter 5 Linear quadratic regulator 5.1 Introduction The linear quadratic regulator is one of the most simple optimal controller that can be developed. It is a stable and explicit controller. Its key

More information

Learning Objectives. Math Prerequisites. Technology Prerequisites. Materials. Math Objectives. Technology Objectives

Learning Objectives. Math Prerequisites. Technology Prerequisites. Materials. Math Objectives. Technology Objectives Learning Objectives Parametric Functions Lesson 2: Dude, Where s My Football? Level: Algebra 2 Time required: 60 minutes Many students expect a falling object graph to look just like the path of the falling

More information

Interval velocity estimation through convex optimization

Interval velocity estimation through convex optimization Stanford Exploration Project, Report 125, January 16, 2007, pages 1?? Interval velocity estimation through convex optimization Ben Witten and Michael Grant ABSTRACT Convex optimization is an optimization

More information

Review for Quarter 3 Cumulative Test

Review for Quarter 3 Cumulative Test Review for Quarter 3 Cumulative Test I. Solving quadratic equations (LT 4.2, 4.3, 4.4) Key Facts To factor a polynomial, first factor out any common factors, then use the box method to factor the quadratic.

More information

Numerical Methods for PDEs : Video 9: 2D Finite Difference February 14, Equations / 29

Numerical Methods for PDEs : Video 9: 2D Finite Difference February 14, Equations / 29 22.520 Numerical Methods for PDEs Video 9 2D Finite Difference Equations February 4, 205 22.520 Numerical Methods for PDEs Video 9 2D Finite Difference February 4, Equations 205 / 29 Thought Experiment

More information

Optimal Control Techniques for Dynamic Walking

Optimal Control Techniques for Dynamic Walking Optimal Control Techniques for Dynamic Walking Optimization in Robotics & Biomechanics IWR, University of Heidelberg Presentation partly based on slides by Sebastian Sager, Moritz Diehl and Peter Riede

More information

In Homework 1, you determined the inverse dynamics model of the spinbot robot to be

In Homework 1, you determined the inverse dynamics model of the spinbot robot to be Robot Learning Winter Semester 22/3, Homework 2 Prof. Dr. J. Peters, M.Eng. O. Kroemer, M. Sc. H. van Hoof Due date: Wed 6 Jan. 23 Note: Please fill in the solution on this sheet but add sheets for the

More information

Chapter 5. Transforming Shapes

Chapter 5. Transforming Shapes Chapter 5 Transforming Shapes It is difficult to walk through daily life without being able to see geometric transformations in your surroundings. Notice how the leaves of plants, for example, are almost

More information

Finite Math - J-term Homework. Section Inverse of a Square Matrix

Finite Math - J-term Homework. Section Inverse of a Square Matrix Section.5-77, 78, 79, 80 Finite Math - J-term 017 Lecture Notes - 1/19/017 Homework Section.6-9, 1, 1, 15, 17, 18, 1, 6, 9, 3, 37, 39, 1,, 5, 6, 55 Section 5.1-9, 11, 1, 13, 1, 17, 9, 30 Section.5 - Inverse

More information

Math 7 Notes - Unit 4 Pattern & Functions

Math 7 Notes - Unit 4 Pattern & Functions Math 7 Notes - Unit 4 Pattern & Functions Syllabus Objective: (3.2) The student will create tables, charts, and graphs to extend a pattern in order to describe a linear rule, including integer values.

More information

Creates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window.

Creates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window. EE 350L: Signals and Transforms Lab Spring 2007 Lab #1 - Introduction to MATLAB Lab Handout Matlab Software: Matlab will be the analytical tool used in the signals lab. The laboratory has network licenses

More information

Most nonzero floating-point numbers are normalized. This means they can be expressed as. x = ±(1 + f) 2 e. 0 f < 1

Most nonzero floating-point numbers are normalized. This means they can be expressed as. x = ±(1 + f) 2 e. 0 f < 1 Floating-Point Arithmetic Numerical Analysis uses floating-point arithmetic, but it is just one tool in numerical computation. There is an impression that floating point arithmetic is unpredictable and

More information

Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer

Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer Midterm Exam Fundamentals of Computer Graphics (COMP 557) Thurs. Feb. 19, 2015 Professor Michael Langer The exam consists of 10 questions. There are 2 points per question for a total of 20 points. You

More information

Mid-Chapter Quiz: Lessons 1-1 through 1-4

Mid-Chapter Quiz: Lessons 1-1 through 1-4 Determine whether each relation represents y as a function of x. 1. 3x + 7y = 21 This equation represents y as a function of x, because for every x-value there is exactly one corresponding y-value. The

More information

Computer Packet 1 Row Operations + Freemat

Computer Packet 1 Row Operations + Freemat Computer Packet 1 Row Operations + Freemat For this packet, you will use a website to do row operations, and then learn to use a general purpose matrix calculator called FreeMat. To reach the row operations

More information

Robot. A thesis presented to. the faculty of. In partial fulfillment. of the requirements for the degree. Master of Science. Zachary J.

Robot. A thesis presented to. the faculty of. In partial fulfillment. of the requirements for the degree. Master of Science. Zachary J. Uncertainty Analysis throughout the Workspace of a Macro/Micro Cable Suspended Robot A thesis presented to the faculty of the Russ College of Engineering and Technology of Ohio University In partial fulfillment

More information

A = [1, 6; 78, 9] Note: everything is case-sensitive, so a and A are different. One enters the above matrix as

A = [1, 6; 78, 9] Note: everything is case-sensitive, so a and A are different. One enters the above matrix as 1 Matlab Primer The purpose of these notes is a step-by-step guide to solving simple optimization and root-finding problems in Matlab To begin, the basic object in Matlab is an array; in two dimensions,

More information

A gentle introduction to Matlab

A gentle introduction to Matlab A gentle introduction to Matlab The Mat in Matlab does not stand for mathematics, but for matrix.. all objects in matlab are matrices of some sort! Keep this in mind when using it. Matlab is a high level

More information

Functions 3.6. Fall Math (Math 1010) M / 13

Functions 3.6. Fall Math (Math 1010) M / 13 Functions 3.6 Fall 2013 - Math 1010 (Math 1010) M 1010 3.6 1 / 13 Roadmap 3.6 - Functions: Relations, Functions 3.6 - Evaluating Functions, Finding Domains and Ranges (Math 1010) M 1010 3.6 2 / 13 3.6

More information

2.3 Projectile Motion

2.3 Projectile Motion Figure 1 An Olympic ski jumper uses his own body as a projectile. projectile an object that moves along a two-dimensional curved trajectory in response to gravity projectile motion the motion of a projectile

More information

3.3 Optimizing Functions of Several Variables 3.4 Lagrange Multipliers

3.3 Optimizing Functions of Several Variables 3.4 Lagrange Multipliers 3.3 Optimizing Functions of Several Variables 3.4 Lagrange Multipliers Prof. Tesler Math 20C Fall 2018 Prof. Tesler 3.3 3.4 Optimization Math 20C / Fall 2018 1 / 56 Optimizing y = f (x) In Math 20A, we

More information

Note Set 4: Finite Mixture Models and the EM Algorithm

Note Set 4: Finite Mixture Models and the EM Algorithm Note Set 4: Finite Mixture Models and the EM Algorithm Padhraic Smyth, Department of Computer Science University of California, Irvine Finite Mixture Models A finite mixture model with K components, for

More information

Equations and Functions, Variables and Expressions

Equations and Functions, Variables and Expressions Equations and Functions, Variables and Expressions Equations and functions are ubiquitous components of mathematical language. Success in mathematics beyond basic arithmetic depends on having a solid working

More information

IN-SITU CALIBRATION OF A REDUNDANT MEASUREMENT SYSTEM FOR MANIPULATOR POSITIONING

IN-SITU CALIBRATION OF A REDUNDANT MEASUREMENT SYSTEM FOR MANIPULATOR POSITIONING IN-SIU CALIBRAION OF A REDUNDAN MEASUREMEN SYSEM FOR MANIPULAOR POSIIONING Piotr J. Meyer Philips Center for Industrial echnology (CF, Lynnfield, MA, U.S.A. Prof. Dr. Jan van Eijk Philips Center for Industrial

More information

PERI INSTITUTE OF TECHNOLOGY DEPARTMENT OF ECE TWO DAYS NATIONAL LEVEL WORKSHOP ON COMMUNICATIONS & IMAGE PROCESSING "CIPM 2017" Matlab Fun - 2

PERI INSTITUTE OF TECHNOLOGY DEPARTMENT OF ECE TWO DAYS NATIONAL LEVEL WORKSHOP ON COMMUNICATIONS & IMAGE PROCESSING CIPM 2017 Matlab Fun - 2 Table of Contents PERI INSTITUTE OF TECHNOLOGY DEPARTMENT OF ECE TWO DAYS NATIONAL LEVEL WORKSHOP ON COMMUNICATIONS & IMAGE PROCESSING "CIPM 2017" - 2 What? Matlab can be fun... 1 Plot the Sine Function...

More information

Computational Optimization. Constrained Optimization Algorithms

Computational Optimization. Constrained Optimization Algorithms Computational Optimization Constrained Optimization Algorithms Same basic algorithms Repeat Determine descent direction Determine step size Take a step Until Optimal But now must consider feasibility,

More information

Transformations with Quadratic Functions KEY

Transformations with Quadratic Functions KEY Algebra Unit: 05 Lesson: 0 TRY THIS! Use a calculator to generate a table of values for the function y = ( x 3) + 4 y = ( x 3) x + y 4 Next, simplify the function by squaring, distributing, and collecting

More information

10. Cartesian Trajectory Planning for Robot Manipulators

10. Cartesian Trajectory Planning for Robot Manipulators V. Kumar 0. Cartesian rajectory Planning for obot Manipulators 0.. Introduction Given a starting end effector position and orientation and a goal position and orientation we want to generate a smooth trajectory

More information

Writing Equivalent Forms of Quadratic Functions Adapted from Walch Education

Writing Equivalent Forms of Quadratic Functions Adapted from Walch Education Writing Equivalent Forms of Quadratic Functions Adapted from Walch Education Recall The standard form, or general form, of a quadratic function is written as f(x) = ax 2 + bx + c, where a is the coefficient

More information

1724. Mobile manipulators collision-free trajectory planning with regard to end-effector vibrations elimination

1724. Mobile manipulators collision-free trajectory planning with regard to end-effector vibrations elimination 1724. Mobile manipulators collision-free trajectory planning with regard to end-effector vibrations elimination Iwona Pajak 1, Grzegorz Pajak 2 University of Zielona Gora, Faculty of Mechanical Engineering,

More information

An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (2000/2001)

An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (2000/2001) An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (000/001) Summary The objectives of this project were as follows: 1) Investigate iterative

More information

Robust Pole Placement using Linear Quadratic Regulator Weight Selection Algorithm

Robust Pole Placement using Linear Quadratic Regulator Weight Selection Algorithm 329 Robust Pole Placement using Linear Quadratic Regulator Weight Selection Algorithm Vishwa Nath 1, R. Mitra 2 1,2 Department of Electronics and Communication Engineering, Indian Institute of Technology,

More information

Chapter 3 Practice Test

Chapter 3 Practice Test 1. Complete parts a c for each quadratic function. a. Find the y-intercept, the equation of the axis of symmetry, and the x-coordinate of the vertex. b. Make a table of values that includes the vertex.

More information

Introduction to Optimization Problems and Methods

Introduction to Optimization Problems and Methods Introduction to Optimization Problems and Methods wjch@umich.edu December 10, 2009 Outline 1 Linear Optimization Problem Simplex Method 2 3 Cutting Plane Method 4 Discrete Dynamic Programming Problem Simplex

More information

PARALLEL OPTIMIZATION

PARALLEL OPTIMIZATION PARALLEL OPTIMIZATION Theory, Algorithms, and Applications YAIR CENSOR Department of Mathematics and Computer Science University of Haifa STAVROS A. ZENIOS Department of Public and Business Administration

More information

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BENC 2113 DENC ECADD 2532 ECADD LAB SESSION 6/7 LAB

More information

2 Computation with Floating-Point Numbers

2 Computation with Floating-Point Numbers 2 Computation with Floating-Point Numbers 2.1 Floating-Point Representation The notion of real numbers in mathematics is convenient for hand computations and formula manipulations. However, real numbers

More information

2.4. A LIBRARY OF PARENT FUNCTIONS

2.4. A LIBRARY OF PARENT FUNCTIONS 2.4. A LIBRARY OF PARENT FUNCTIONS 1 What You Should Learn Identify and graph linear and squaring functions. Identify and graph cubic, square root, and reciprocal function. Identify and graph step and

More information

Course of study- Algebra Introduction: Algebra 1-2 is a course offered in the Mathematics Department. The course will be primarily taken by

Course of study- Algebra Introduction: Algebra 1-2 is a course offered in the Mathematics Department. The course will be primarily taken by Course of study- Algebra 1-2 1. Introduction: Algebra 1-2 is a course offered in the Mathematics Department. The course will be primarily taken by students in Grades 9 and 10, but since all students must

More information

3.1 INTRODUCTION TO THE FAMILY OF QUADRATIC FUNCTIONS

3.1 INTRODUCTION TO THE FAMILY OF QUADRATIC FUNCTIONS 3.1 INTRODUCTION TO THE FAMILY OF QUADRATIC FUNCTIONS Finding the Zeros of a Quadratic Function Examples 1 and and more Find the zeros of f(x) = x x 6. Solution by Factoring f(x) = x x 6 = (x 3)(x + )

More information

Chapter 23. Linear Motion Motion of a Bug

Chapter 23. Linear Motion Motion of a Bug Chapter 23 Linear Motion The simplest example of a parametrized curve arises when studying the motion of an object along a straight line in the plane We will start by studying this kind of motion when

More information

Stanford Exploration Project, Report 120, May 3, 2005, pages

Stanford Exploration Project, Report 120, May 3, 2005, pages Stanford Exploration Project, Report 120, May 3, 2005, pages 167 179 166 Stanford Exploration Project, Report 120, May 3, 2005, pages 167 179 Non-linear estimation of vertical delays with a quasi-newton

More information

Lecture VI: Constraints and Controllers

Lecture VI: Constraints and Controllers Lecture VI: Constraints and Controllers Motion Constraints In practice, no rigid body is free to move around on its own. Movement is constrained: wheels on a chair human body parts trigger of a gun opening

More information

Midterm Exam with solutions

Midterm Exam with solutions Midterm Exam with solutions CS227-Introduction to Scientific Computation November 8, 2011 1. The following is a transcript of a MATLAB session. >> x=1/62.5 x = 0.016000000000000 >> y=(1+x)-1 y = 0.016000000000000

More information

College Algebra Exam File - Fall Test #1

College Algebra Exam File - Fall Test #1 College Algebra Exam File - Fall 010 Test #1 1.) For each of the following graphs, indicate (/) whether it is the graph of a function and if so, whether it the graph of one-to one function. Circle your

More information

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7 MATLAB Table of Contents Introduction.*.. 7 About This Book 1 Foolish Assumptions 2 Icons Used in This Book 3 Beyond the Book 3 Where to Go from Here 4 Part /: Getting Started With MATLAB 5 Chapter 1:

More information

Optimization of a two-link Robotic Manipulator

Optimization of a two-link Robotic Manipulator Optimization of a two-link Robotic Manipulator Zachary Renwick, Yalım Yıldırım April 22, 2016 Abstract Although robots are used in many processes in research and industry, they are generally not customized

More information

How do you roll? Fig. 1 - Capstone screen showing graph areas and menus

How do you roll? Fig. 1 - Capstone screen showing graph areas and menus How do you roll? Purpose: Observe and compare the motion of a cart rolling down hill versus a cart rolling up hill. Develop a mathematical model of the position versus time and velocity versus time for

More information

Trajectory Optimization

Trajectory Optimization C H A P T E R 12 Trajectory Optimization So far, we have discussed a number of ways to solve optimal control problems via state space search (e.g., Dijkstra s and Dynamic Programming/Value Iteration).

More information

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s.

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Using Monte Carlo to Estimate π using Buffon s Needle Problem An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Here s the problem (in a simplified form). Suppose

More information

10.6 Conjugate Gradient Methods in Multidimensions

10.6 Conjugate Gradient Methods in Multidimensions 420 Chapter 10. Minimization or Maximization of Functions CITED REFERENCES AND FURTHER READING: Brent, R.P. 1973, Algorithms for Minimization without Derivatives (Englewood Cliffs, NJ: Prentice- Hall),

More information

Introduction to MATLAB

Introduction to MATLAB CHEE MATLAB Tutorial Introduction to MATLAB Introduction In this tutorial, you will learn how to enter matrices and perform some matrix operations using MATLAB. MATLAB is an interactive program for numerical

More information

2.7 Cloth Animation. Jacobs University Visualization and Computer Graphics Lab : Advanced Graphics - Chapter 2 123

2.7 Cloth Animation. Jacobs University Visualization and Computer Graphics Lab : Advanced Graphics - Chapter 2 123 2.7 Cloth Animation 320491: Advanced Graphics - Chapter 2 123 Example: Cloth draping Image Michael Kass 320491: Advanced Graphics - Chapter 2 124 Cloth using mass-spring model Network of masses and springs

More information

Floating-point representation

Floating-point representation Lecture 3-4: Floating-point representation and arithmetic Floating-point representation The notion of real numbers in mathematics is convenient for hand computations and formula manipulations. However,

More information

PRIMAL-DUAL INTERIOR POINT METHOD FOR LINEAR PROGRAMMING. 1. Introduction

PRIMAL-DUAL INTERIOR POINT METHOD FOR LINEAR PROGRAMMING. 1. Introduction PRIMAL-DUAL INTERIOR POINT METHOD FOR LINEAR PROGRAMMING KELLER VANDEBOGERT AND CHARLES LANNING 1. Introduction Interior point methods are, put simply, a technique of optimization where, given a problem

More information

Honors Advanced Algebra Unit 4: Rational & Radical Relationships January 12, 2017 Task 18: Graphing Rational Functions

Honors Advanced Algebra Unit 4: Rational & Radical Relationships January 12, 2017 Task 18: Graphing Rational Functions Honors Advanced Algebra Name Unit 4: Rational & Radical Relationships January 1, 017 Task 18: Graphing Rational Functions MGSE9 1.F.IF.7 Graph functions expressed symbolically and show key features of

More information

ME422 Mechanical Control Systems Matlab/Simulink Hints and Tips

ME422 Mechanical Control Systems Matlab/Simulink Hints and Tips Cal Poly San Luis Obispo Mechanical Engineering ME Mechanical Control Systems Matlab/Simulink Hints and Tips Ridgely/Owen, last update Jan Building A Model The way in which we construct models for analyzing

More information

Math 340 Fall 2014, Victor Matveev. Binary system, round-off errors, loss of significance, and double precision accuracy.

Math 340 Fall 2014, Victor Matveev. Binary system, round-off errors, loss of significance, and double precision accuracy. Math 340 Fall 2014, Victor Matveev Binary system, round-off errors, loss of significance, and double precision accuracy. 1. Bits and the binary number system A bit is one digit in a binary representation

More information

Levenberg-Marquardt minimisation in ROPP

Levenberg-Marquardt minimisation in ROPP Ref: SAF/GRAS/METO/REP/GSR/006 Web: www.grassaf.org Date: 4 February 2008 GRAS SAF Report 06 Levenberg-Marquardt minimisation in ROPP Huw Lewis Met Office, UK Lewis:Levenberg-Marquardt in ROPP GRAS SAF

More information

5. GENERALIZED INVERSE SOLUTIONS

5. GENERALIZED INVERSE SOLUTIONS 5. GENERALIZED INVERSE SOLUTIONS The Geometry of Generalized Inverse Solutions The generalized inverse solution to the control allocation problem involves constructing a matrix which satisfies the equation

More information

Animation Lecture 10 Slide Fall 2003

Animation Lecture 10 Slide Fall 2003 Animation Lecture 10 Slide 1 6.837 Fall 2003 Conventional Animation Draw each frame of the animation great control tedious Reduce burden with cel animation layer keyframe inbetween cel panoramas (Disney

More information

Finding the Maximum or Minimum of a Quadratic Function. f(x) = x 2 + 4x + 2.

Finding the Maximum or Minimum of a Quadratic Function. f(x) = x 2 + 4x + 2. Section 5.6 Optimization 529 5.6 Optimization In this section we will explore the science of optimization. Suppose that you are trying to find a pair of numbers with a fixed sum so that the product of

More information