Relative Content

Tag Archive for scipyneural-networkmpc

predictive control model using an already trained neural network model and SciPy for optimization

I am trying to apply the predictive control model using an already trained neural network model and SciPy for optimization. My model takes a window of past command + noise + system output to predict the system output. Then, I use these predictions to calculate the objective function. My question is: I have written the code, and it works, but the optimizer does not provide the necessary commands for my output to stay within the defined range. Here is the code and the results provided by the solver