We are working on the constraint set in Support Vector Machines, which defines the geometric margin conditions for either hard-margin or soft-margin classification. The canonical constraints are
for hard-margin SVM, and
for soft-margin SVM, where , is the separating hyperplane normal vector, is the intercept, and are slack variables that allow margin violations.
Deep Breakdown
In an SVM, the phrase subject to is not a minor detail. It is the geometric heart of the optimization problem. The objective may say “maximize margin” or “minimize complexity plus violations,” but the constraints define what it means for a classifier to be acceptable.
For a linear classifier, the decision rule is:
and the predicted class is:
The SVM constraints require that training points lie on the correct side of the separating hyperplane, and not just barely, but with a margin.
Hard-margin case
If the data is perfectly linearly separable, the constraint is:
This means:
- if , then we require:
- if , then we require:
So the points are forced outside the two margin boundaries:
Soft-margin case
If the data is not perfectly separable, we introduce slack variables and use:
with
Now some points can violate the ideal margin. The slack variable tells us how badly. This constraint set matters in DA/DS because it explains:
- which points become support vectors,
- which points lie safely outside the margin,
- which points lie inside the margin,
- which points are misclassified,
- why the hinge loss has the form it does.
Inputs:
- labeled data ,
- hyperplane parameters and ,
- optionally slack variables .
Outputs:
- a feasible set of classifiers that respect the margin logic.
Why it matters in practice:
- it defines the geometry of classification,
- it controls robustness to noise and overlap,
- it determines which points actively constrain the model,
- it provides the bridge between geometric margin and optimization.
This object links directly to:
- Soft Margin Optimization (Primal), because these are its constraints,
- Hard Margin SVM, because the hard-margin case is the zero-slack version,
- Hinge Loss, because the minimum feasible slack is the hinge-loss value,
- Primal and dual forms, because these constraints generate the KKT structure and support-vector behavior.