I have been asked frequently recently whether it is possible to have YALMIP code in Simulink simulations. The answer is yes, but there are some caveats. Check out the Simulink simulation example.
You May Also Enjoy
Not everyhing was better in the past
A whole lotta stuff
Convexity aware implementation of softplus
Various small improvements