'How to use Python to optimize an objective function with multiple terms (SVM Dual Problem)?

I am trying to find the solution for the following SVM dual problem using python. The problem is formatted as a quadratic programming problem:

The SVM Dual Problem to be Solved

I have been trying to use the Python library, CVXOPT, but according to its docs, and this example, It can only solve SVM problem in the form of:

CVXOPT QP Format

Which would work fine for problems in the form of:

A problem solveable with CVXOPT

However, the problem I am trying to solve has two extra terms at the end (first image).

I am wondering how I can adjust the way my problem is formulated such that it is able to be solved with CVXOPT or any other python optimization package.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source