setOptim function

Set optimization parameters in a UBaymodel object