Git Product home page Git Product logo

solve_riccati_ode-matlab's Introduction

solve_riccati_ode View Solve Riccati Differential Equation (solve_riccati_ode) on File Exchange

Solves the Riccati differential equation for the finite-horizon linear quadratic regulator.

NOTE: This function requires the IVP Solver Toolbox.

Syntax

[t,P] = solve_riccati_ode(A,B,Q,R,[],PT,tspan)
[t,P] = solve_riccati_ode(A,B,Q,R,S,PT,tspan)

Description

[t,P] = solve_riccati_ode(A,B,Q,R,[],PT,tspan) solves the Riccati differential equation for , given the state matrix , input matrix , state weighting matrix , input weighting matrix , terminal condition , and the time span tspan over which to solve. tspan can be specified either as the 1ร—2 double [t0,T] where is the initial time and is the final time, or as a 1ร—(N+1) vector of times [t0,t1,...,tNminus1,T] at which to return the solution for . It is assumed that the cross-coupling weighting matrix is .

[t,P] = solve_riccati_ode(A,B,Q,R,S,PT,tspan) does the same as the syntax above, but this time the cross-coupling weighting matrix is specified.

Time Vector and Solution Array

The time vector, , is defined as

The ith "layer" of P (i.e. P(:,:,i)) stores , where is the time stored in the ith element of the time vector, .

Examples and Additional Documentation

  • See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
  • See Riccati_Differential_Equation.pdf (also included with download) for additional documentation.

solve_riccati_ode-matlab's People

Contributors

tamaskis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

solve_riccati_ode-matlab's Issues

for discrete finite-time LQR

The code works well for continuous-time systems, and very convenient . Can it generalize to discrete finite-time LQRs? Can you give me some ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.