Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
OpEnでMPCへの扉をオープン
Search
ざきまつ
December 07, 2025
Programming
0
100
OpEnでMPCへの扉をオープン
制御工学勉強会第27回(2025/12/06) 制御ツール芸特別会 お気軽セッションでの発表
ざきまつ
December 07, 2025
Tweet
Share
More Decks by ざきまつ
See All by ざきまつ
フライトコントローラPX4の中身(制御器)を覗いてみた
santana_hammer
1
170
凸最適化からDC最適化まで
santana_hammer
1
350
Other Decks in Programming
See All in Programming
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
620
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
460
CSC307 Lecture 08
javiergs
PRO
0
670
AI巻き込み型コードレビューのススメ
nealle
2
400
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
6
4.6k
AgentCoreとHuman in the Loop
har1101
5
240
組織で育むオブザーバビリティ
ryota_hnk
0
180
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
140
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1k
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
AI時代の認知負荷との向き合い方
optfit
0
160
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
690
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Thoughts on Productivity
jonyablonski
74
5k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
160
Test your architecture with Archunit
thirion
1
2.2k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
380
Mind Mapping
helmedeiros
PRO
0
88
WENDY [Excerpt]
tessaabrams
9
36k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Transcript
OpEnでMPCへの扉をオープン(極寒) ~寒くなったって?ははは、もう既に冬だろう?~ ざきまつ(最適化屋さんのすがた) 制御工学勉強会 第027回(2025/12/06) 制御ツール芸大会 :santana_hammer :https://trigger-fk.github.io
MPCツール
MPCツール R. Vershueren et.al., “acados—a modular open-source framework for fast
embedded optimal control,” Mathematical Programming Computation, vol. 14, pp. 147-183, 2022.
acados J. Li, J. Sugihara and M. Zhao, "Servo Integrated
Nonlinear Model Predictive Control for Overactuated Tiltable-Quadrotors," IEEE Robotics and Automation Letters, vol. 9, no. 10, pp. 8770-8777, 2024.
ここで多分来るであろう質問 Q. なんでAcadosではなく、OpEnの話をするの? A. 僕が使っているから うるせぇ,組合せ最適化問題であるL0スパース最適制御問題ぶつけてNP困難に陥らせてやろうか
What is OpEn? • NMPCを組み込みマイコン等で実行するために設計 • 計算が軽量なアルゴリズムであるPANOCを採用 • ヘッセ行列の逆行列計算など計算負荷の高い処理を回避 •
OptimizerのコアをRustで構成(メモリ安全かつ高速) ➢ 依存関係のないRust/Cコードを生成するよ ➢ Pythonインターフェースに対応 ➢ MATLABはサポート終了 • Non-convex, Non-smoothな最適化問題にも対応可能 ➢ 衝突回避などの制御問題も扱えるよ
玄人向け:内部アルゴリズム PANOC (Proximal Averaged Newton-type method for Optimal Control /
Optimality Conditions) L.Stella et.al., "A Simple and Efficient Algorithm for Nonlinear Model Predictive Control," IEEE 56th Annual Conference on Decision and Control, pp. 1939-1944, 2017.
動かしてみよう サンプルコードはこちら:https://github.com/Trigger-FK/OpEn_unicycle もともとは自分の研究用テンプレなので、BSD 2-Clauseライセンスをつけてます…ごめんなさい…
ここで多分来るであろう質問 Q. ROS1とかROS2とかでも使えるの…? A. 使おうと思えば使える • ROS1については、OpEn側でちゃんと対応していて、Exampleも整備されてる • ROS2…?対応してたら今頃僕は苦労していません(吐血)
まとめ • 高速なNMPC向けのツールだよ!! • 数学的にも、解の収束について保証されているよ!! • 直感的に書けるよ!! • ROS1との連携、アルヨ!!(なおROS2)