I'm a beginner trying to implement a Model Predictive Controller (MPC) controller in SystemBuild for my final thesis project. This involves a bunch of matrix operations being performed and some resulting matrices being sent to a UserCode Fortran script, solving a Quadratic Programming problem. At the moment I have two specific, and I hope quite simple, questions:
How do I sum two matrices together? There appears to be no block for this and I only get the 'Summer Block' to sum together scalars.
Is there an efficient way to import matrix data from a Matlab environment? At present I have defined constant blocks representing matrices but since UNIX doesn't allow copy-paste of parameter values directly into the parameter setting box I would have to manually type in huge amounts of data, can I get around this?
It should be noted that the solutions must work with the AutoCode feature.
Any advice or source of information is appreciated, I find the SystemBuild User Guide a bit thin.