Added constrained optimization option using a function in the configuration. See this notebook for an example.
Hi Mohit, thanks for this. I am looking at this and will merge the changes after doing testing.