make objective_primal consistent with OneSlackSSVM code