mpc_python_learn/mpc_demo/mpc_config.py

7 lines
218 B
Python
Raw Normal View History

2020-06-30 18:05:30 +08:00
class Params():
def __init__(self):
2020-07-01 22:59:13 +08:00
self.N = 4 #number of state variables
2020-06-30 18:05:30 +08:00
self.M = 2 #number of control variables
2020-07-01 22:59:13 +08:00
self.T = 10 #Prediction Horizon
2020-06-30 18:05:30 +08:00
self.dt = 0.25 #discretization step