One shortfall and a chosen cost

A soft-margin primal objective is 12∥β∥2+C∑iξi\tfrac12\lVert\beta\rVert^2+C\sum_i\xi_i, with constraints yif(xi)≥1−ξiy_if(x_i)\ge1-\xi_i and ξi≥0\xi_i\ge0. For a single point with functional margin 0.20.2, ∥β∥2=0.4\lVert\beta\rVert^2=0.4 and C=5C=5, find the smallest feasible slack and the objective value.

The slack is 1−0.2=0.81-0.2=0.8. The weight term is 0.20.2, and the cost is 0.2+5×0.8=4.20.2+5\times 0.8=4.2.