I would like to try to do nonlinear model fitting with the Nonlinear platform, using a custom loss function to do shrinkage parameter estimation, something that would be similar to the LASSO loss function for regression.
For example, if I have this non-linear model (Named "NLFunction" with a, g, c, and Tz as the parameters in the model)

I would like to use a loss function like this

which is "sort of" like the Lasso loss function. The idea is to "shrink" the parameter estimates a little, in order to find a better model fit and make the model fitting less ill-conditioned.
I think I can do this manually by specifying the loss function in the launch dialog, but unsure if it is actually using the loss function the way I intend it to.

If I run this, it does run and give results, but saving the script from the analysis does not give back the manual loss function I specified.
Anyone have any input if this could work and would allow for shrinkage estimation in a Nonlinear model fit?