Toolverse
All skills

finite-horizon-lqr

by benchflow-ai

Solving finite-horizon LQR via dynamic programming for MPC.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Data Science
Views
19

About this skill

Solving finite-horizon LQR via dynamic programming for MPC.

How to use

  1. Przygotuj parametry systemu: macierz dynamiki A (nx × nx), macierz wejścia B (nx × nu), macierz wagi stanu Q (nx × nx), macierz wagi sterowania R (nu × nu), gdzie nx to liczba zmiennych stanu, a nu to liczba wejść sterujących.

  2. Zdefiniuj horyzont predykcji N (liczba kroków czasowych do przodu) oraz wektor stanu początkowego x0 (nx × 1).

  3. Wywołaj funkcję finite_horizon_lqr(A, B, Q, R, N, x0). Skill wykonuje backward pass: iteracyjnie oblicza macierze wzmocnienia K_k dla każdego kroku od N-1 do 0, rozwiązując równanie Riccatiego i aktualizując macierz P_k.

  4. Skill zwraca optymalny sygnał sterowania u_0 dla bieżącego kroku czasowego. Zastosuj ten sygnał do systemu fizycznego lub symulacji.

  5. W następnym kroku czasowym zmierz nowy stan x (wynikający z dynamiki x_{k+1} = A @ x_k + B @ u_k) i powtórz kroki 3–4 z nowym stanem jako x0, aby uzyskać kolejny optymalny sygnał sterowania.

  6. Kontynuuj pętlę sterowania: pomiar stanu → rozwiązanie LQR → aplikacja pierwszego sygnału → przesunięcie horyzontu w czasie, aż do osiągnięcia celu sterowania lub końca zadania.

Related skills

docx

by anthropics

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content,

Data Science
39142

web-artifacts-builder

by anthropics

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX

Data Science
37124

deep-research

by davidorex

Multi-agent parallel investigation for complex VCV Rack problems

Data Science
16151

market-research-reports

by davila7

Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner). Features professional LaTeX formatting, extensive visual generation with scientific-schematics and generate-image, deep integration with research-lookup for

Data Science
16115

ml-paper-writing

by davila7

Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. Includes LaTeX templates, reviewer guidelines, and citation

Data Science
2681

stock-analyzer

by FrancyJGLisboa

Provides comprehensive technical analysis for stocks and ETFs using RSI, MACD, Bollinger Bands, and other indicators. Activates when user requests stock analysis, technical indicators, trading signals, or market data for specific ticker symbols.

Data Science
23128