Skip to content

Commit db6de0a

Browse files
committed
update readme
1 parent 9bfbbc0 commit db6de0a

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

Diff for: README.md

+23-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
11
# PyAdvancedControl
22

3-
[![Build Status](https://travis-ci.org/AtsushiSakai/PyAdvancedControl.svg?branch=master)](https://travis-ci.org/AtsushiSakai/PyAdvancedControl)
4-
53
Python Codes for Advanced Control
64

75
# lqr_sample
86

9-
Linear-Quadratic Regulator sample code
7+
This is a sample code of Linear-Quadratic Regulator
108

119
![1](https://github.com/AtsushiSakai/PyAdvancedControl/blob/master/lqr_sample/result.png)
1210

1311
# finite_horizon_optimal_control
1412

15-
finite horizon optimal control sample code
13+
This is a finite horizon optimal control sample code
1614

1715
![1](https://github.com/AtsushiSakai/PyAdvancedControl/blob/master/finite_horizon_optimal_control/result.png)
16+
17+
# mpc_modeling
18+
19+
This is a sample code for model predictive control optimization modeling without any modeling tool (e.g cvxpy)
20+
21+
This means it only use a solver (cvxopt) for MPC optimization.
22+
23+
It includes two MPC optimization functions:
24+
25+
1. opt_mpc_with_input_const()
26+
27+
It can be applied input constraints (not state constraints).
28+
29+
2. opt_mpc_with_state_const()
30+
31+
It can be applied state constraints and input constraints.
32+
33+
34+
![1](https://github.com/AtsushiSakai/PyAdvancedControl/blob/master/mpc_modeling/result.png)
35+
36+

Diff for: mpc_modeling/mpc_modeling.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def opt_mpc_with_input_const(A, B, N, Q, R, P, x0, umax=None, umin=None):
6868
6969
return
7070
x: state
71-
u: state
71+
u: input
7272
"""
7373
(nx, nu) = B.shape
7474

@@ -526,8 +526,8 @@ def test_output_check(rx1, rx2, ru, x1, x2, u):
526526
if __name__ == '__main__':
527527
DEBUG_ = True
528528
# test1()
529-
test2()
529+
# test2()
530530
# test3()
531531
# test4()
532532
# test5()
533-
# test6()
533+
test6()

Diff for: mpc_modeling/result.png

28 KB
Loading

0 commit comments

Comments
 (0)