[optimization]: added generic method setCalibrationOptions() and imposed jacobian and hessian constant for affinity optimization