Added mse_from_constraints