Margin-Based Control Allocation