this is the algorithm of the tutorial two with the addition of a risk model exposure constraint to portfolio optimization logic.
i used the default parameter for max sector exposure and max style exposure.
this constraint takes the data generated by the risk model and sets a limit on the overall exposure.