How to specify the criterion function and its derivatives#

to be written