Simulink model of control_allocation

Hello,
I am trying to create a (kind of full) Simulink simulation of the PX4 in order to test some custom multilateration with UWB-modules.
I am stuck at implementing the control_allocation module. Is there any open source model out there or would you generally advice against building such a model because there is another way?
Thank you very much for your help.

Yours,
Sam

https://www.mathworks.com/help/uav/examples.html?category=px4-spkg&s_tid=CRUX_topnav

There are couple of examples on this page, with control allocation.