add function Xobj for computing objective/gradient in perturbation optimization. added relaxedLossAugInfer.