MATLAB: How to import a Neural Network Simulink block into Linear Analysis Tool

Deep Learning Toolboxlinear analysis toollinearizationneural networkoperating pointpid tunersimulation snapshotSimulink Control Designtrim

I have created a Neural Network and obtained its block in Simulink. I would like to linearize it in order to be able to use it later in PID Tuner.
I try to do this linearization by means of the Linear Analysis Tool. However, I am having problems when setting the operating point (whether by trying to trim the model or by taking a simulation snapshot) because I do not understand well how it works. I have set the 2 inputs in Simulink as Open-Loop Inputs and the output as Open-Loop Output.
In case of taking a simulation snapshot: How can I choose the correct time in which I should take the snapshot?
In case of trimming: I do not obtain neither States nor Inputs nor Outputs to trim. When I click on Operating Point>Create New Operating Point>Trim Model it says that 'The Model does not have any Inputs, Outputs, states'.
How can I create operating Points?
Is there another way of importing my Neural Network Simulink block into PID Tuner?

Best Answer

PID Tuner essentially requires a transfer function of the plant to design a PID Controller.For the neural net, I think your best bet would be to follow the approach explained in this example .
Related Question