small adjustment
This commit is contained in:
@@ -1140,6 +1140,7 @@ sol = solvers.qp(P,q,G,h)
|
||||
# Extract optimal value and solution
|
||||
sol['x']
|
||||
sol['primal objective']
|
||||
print(sol['x'] )
|
||||
!ec
|
||||
|
||||
!split
|
||||
@@ -1160,7 +1161,7 @@ subject to $\bm{y}^T\bm{\lambda}=0$. Here we defined the vectors $\bm{\lambda} =
|
||||
$\bm{y}=[y_1,y_2,\dots,y_n]$.
|
||||
With the slack constants this leads to the additional constraint $0\leq \lambda_i \leq C$.
|
||||
|
||||
Using the _CVXOPT_ library, the matrix $P$ would then be defined by the
|
||||
Using the _CVXOPT_ library, the matrix $P$ would then be defined by the above matrix while the KKT conditions would all be collected by the matrix $G$.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user