reduced-凯发k8网页登录
from the series: reduced order modeling
learn how to create a reduced-order model of an internal combustion engine using neural state-space identification approach from system identification toolbox.
this demonstration shows how to define, train, and validate a deep-learning-based nonlinear state space model, and use the identified model to replace the high-fidelity model for faster simulation in simulink.
this video will show reduced order modeling of an internal combustion engine using neural state space models. neural state space modeling is a new capability in system identification toolbox in release r2022b.
in this example we’ll create a reduced order model for an internal combustion engine modeled in powertrain blockset. this reduced order model simulates faster while still capturing essential dynamics.
in this example we want to capture engine dynamics from 4 inputs shown here to engine torque.
we will do that by modeling the system as a neural state space, where nonlinear functions f and g in our state space equations will be neural networks that we will learn from data.
the workflow we will follow is simple. we will prepare the data we collected from high fidelity simulation model. then we will define our neural state space model and will train it from data. we will validate the model and use it in full vehicle simulation in simulink.
the first step is preparing the data. here we load data from the file, extract signals we will use, concatenate them into vectors, remove initial transients, split data into training and validation datasets, downsample data for training, normalize the data, and finally reformat the data as cells of timetables. now our data is ready for training.
next step is defining and training a neural state space model. training a neural network is not necessarily something that control and system engineers are familiar with, so the api you will see here was designed to be accessible to people who are not deep learning experts.
we start with defining a neural state space model – in our case it has one state, and 4 inputs. we then configure state network. in our case output is equal to the state, so we are not learning output network. we specify training options and train. and that’s it – as you can see the code is very simple.
training takes more than an hour. as it runs we can see the progress plot.
once the training is done we can validate our neural state space model by simulating it with validation data in simulink using neural state space model block. in this case we achieved the accuracy of about 90%. simulation results show comparison of the output of reduced order model with the output of high-fidelity model for the same input data. we can see our reduced order model captures essential dynamics well.
we can now use neural state space model in the full vehicle simulation model where we added it as one of the variants for modeling engine dynamics. our neural state space model provides a speedup by a factor of 30 in this case.
this concludes the video.
related videos:
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 mathworks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- (español)
- (english)
- (english)
欧洲
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
亚太
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)