Extract action and observation information that you can use to create other environments or agents.
增强学习环境for this example is the simple longitudinal dynamics for ego car and lead car. The training goal is to make the ego car travel at a set velocity while maintaining a safe distance from lead car by controlling longitudinal acceleration (and braking). This example uses the same vehicle model as the使用模型预测控制的自适应巡航控制系统(Model Predictive Control Toolbox)example.
Open the model and create the reinforcement learning environment.
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.