https://github.com/JuliaSmoothOptimizers/RegularizedProblems.jl/blob/main/src/nonlin_svm_model.jl#L37