Min max function help

Hello, I am solving a model with occasional constraints using a trick presented by Garcia and Zangwill (1981). Basically it replaces the lagrangian multipliers by max(0,nu) functions where is appropriate. I tried this trick and it seems to work. To recover the values of the original lagrangian multipliers one must set an extra equation as lambda=max(0,nu). This way when nu=0 you would see that lambda takes values of 0. However, this is not happening in my code
, so I am not sure if the other part of the code is working
.
I wanted to know if someone could let me know what's going on
Best Regards
Mario


I wanted to know if someone could let me know what's going on
Best Regards
Mario