From e93e9801313bbd93f6f13f97fe812f22d2d4a75f Mon Sep 17 00:00:00 2001
From: Morten Hjorth-Jensen
Date: Fri, 18 Nov 2022 05:50:27 +0100
Subject: [PATCH] small adjustment
---
doc/pub/week46/html/._week46-bs027.html | 1 +
doc/pub/week46/html/._week46-bs028.html | 2 +-
doc/pub/week46/html/week46-reveal.html | 3 +-
doc/pub/week46/html/week46-solarized.html | 3 +-
doc/pub/week46/html/week46.html | 3 +-
doc/pub/week46/ipynb/ipynb-week46-src.tar.gz | Bin 191 -> 192 bytes
doc/pub/week46/ipynb/week46.ipynb | 565 ++++++++++---------
doc/src/week46/week46.do.txt | 3 +-
8 files changed, 293 insertions(+), 287 deletions(-)
diff --git a/doc/pub/week46/html/._week46-bs027.html b/doc/pub/week46/html/._week46-bs027.html
index 67c6d2dbc..4928edd57 100644
--- a/doc/pub/week46/html/._week46-bs027.html
+++ b/doc/pub/week46/html/._week46-bs027.html
@@ -322,6 +322,7 @@ sol = solvers.<
# Extract optimal value and solution
sol['x']
sol['primal objective']
+print(sol['x'] )
diff --git a/doc/pub/week46/html/._week46-bs028.html b/doc/pub/week46/html/._week46-bs028.html
index bdcceb480..be1fe7ce4 100644
--- a/doc/pub/week46/html/._week46-bs028.html
+++ b/doc/pub/week46/html/._week46-bs028.html
@@ -272,7 +272,7 @@ $$
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 \).
diff --git a/doc/pub/week46/html/week46-reveal.html b/doc/pub/week46/html/week46-reveal.html
index cadbcab88..490897c8f 100644
--- a/doc/pub/week46/html/week46-reveal.html
+++ b/doc/pub/week46/html/week46-reveal.html
@@ -1566,6 +1566,7 @@ sol = solvers.qp(P,q,G,h)
# Extract optimal value and solution
sol['x']
sol['primal objective']
+print(sol['x'] )
@@ -1602,7 +1603,7 @@ $$
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 \).
diff --git a/doc/pub/week46/html/week46-solarized.html b/doc/pub/week46/html/week46-solarized.html
index cdd324db1..b86b3a7d5 100644
--- a/doc/pub/week46/html/week46-solarized.html
+++ b/doc/pub/week46/html/week46-solarized.html
@@ -1432,6 +1432,7 @@ sol = solvers.qp(P,q,G,h)
# Extract optimal value and solution
sol['x']
sol['primal objective']
+print(sol['x'] )
@@ -1466,7 +1467,7 @@ $$
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 \).
Basic ideas of the Principal Component Analysis (PCA)
diff --git a/doc/pub/week46/html/week46.html b/doc/pub/week46/html/week46.html
index 4c4cd146c..c816d0a94 100644
--- a/doc/pub/week46/html/week46.html
+++ b/doc/pub/week46/html/week46.html
@@ -1509,6 +1509,7 @@ sol = solvers.<
# Extract optimal value and solution
sol['x']
sol['primal objective']
+print(sol['x'] )
@@ -1543,7 +1544,7 @@ $$
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 \).
Basic ideas of the Principal Component Analysis (PCA)
diff --git a/doc/pub/week46/ipynb/ipynb-week46-src.tar.gz b/doc/pub/week46/ipynb/ipynb-week46-src.tar.gz
index 8ef71aa5cf3b4640dc74fc8b0995a1b3170278e6..75b8a32030a97cfa8c1119e70894b7eb1038a543 100644
GIT binary patch
delta 120
zcmV-;0Ehp-0l)zUABzY82M>`3QE4cpCBbgVdF_;yAaoC+D3n)5i%Z;E
abF!jwN&M?)f*=TjuRQ>Ps(Sta2mk=(?=-3a
delta 119
zcmV--0Eqv<0lxtTABzY8=?jqtQD}&z3wd?K@bGN*B;u(l`H@V007S}HogD=
diff --git a/doc/pub/week46/ipynb/week46.ipynb b/doc/pub/week46/ipynb/week46.ipynb
index 0ee920abd..c518b9766 100644
--- a/doc/pub/week46/ipynb/week46.ipynb
+++ b/doc/pub/week46/ipynb/week46.ipynb
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
- "id": "3614fed4",
+ "id": "f1f39e40",
"metadata": {
"editable": true
},
@@ -14,7 +14,7 @@
},
{
"cell_type": "markdown",
- "id": "2df1f243",
+ "id": "92d63d3f",
"metadata": {
"editable": true
},
@@ -29,7 +29,7 @@
},
{
"cell_type": "markdown",
- "id": "0f4ec7cf",
+ "id": "01254abd",
"metadata": {
"editable": true
},
@@ -60,7 +60,7 @@
},
{
"cell_type": "markdown",
- "id": "b9739524",
+ "id": "37001601",
"metadata": {
"editable": true
},
@@ -94,7 +94,7 @@
},
{
"cell_type": "markdown",
- "id": "e945967a",
+ "id": "86b9ddfd",
"metadata": {
"editable": true
},
@@ -116,7 +116,7 @@
{
"cell_type": "code",
"execution_count": 1,
- "id": "91ae9a0f",
+ "id": "76dd64fd",
"metadata": {
"collapsed": false,
"editable": true
@@ -195,7 +195,7 @@
},
{
"cell_type": "markdown",
- "id": "3f4d3de6",
+ "id": "0de60a6b",
"metadata": {
"editable": true
},
@@ -215,7 +215,7 @@
},
{
"cell_type": "markdown",
- "id": "3e4e4c44",
+ "id": "a2003761",
"metadata": {
"editable": true
},
@@ -227,7 +227,7 @@
},
{
"cell_type": "markdown",
- "id": "5b02b3e8",
+ "id": "74f11ea8",
"metadata": {
"editable": true
},
@@ -240,7 +240,7 @@
},
{
"cell_type": "markdown",
- "id": "5cca3c43",
+ "id": "8ea2af05",
"metadata": {
"editable": true
},
@@ -252,7 +252,7 @@
},
{
"cell_type": "markdown",
- "id": "531a4f79",
+ "id": "35d83737",
"metadata": {
"editable": true
},
@@ -265,7 +265,7 @@
},
{
"cell_type": "markdown",
- "id": "0e73f5f5",
+ "id": "220e8f5b",
"metadata": {
"editable": true
},
@@ -277,7 +277,7 @@
},
{
"cell_type": "markdown",
- "id": "5fa7c734",
+ "id": "f45a19ce",
"metadata": {
"editable": true
},
@@ -289,7 +289,7 @@
},
{
"cell_type": "markdown",
- "id": "7a65651d",
+ "id": "64cf56dc",
"metadata": {
"editable": true
},
@@ -301,7 +301,7 @@
},
{
"cell_type": "markdown",
- "id": "f5e46c00",
+ "id": "fb3a6f5f",
"metadata": {
"editable": true
},
@@ -311,7 +311,7 @@
},
{
"cell_type": "markdown",
- "id": "5b5e4615",
+ "id": "a94461f9",
"metadata": {
"editable": true
},
@@ -323,7 +323,7 @@
},
{
"cell_type": "markdown",
- "id": "818578d4",
+ "id": "52b13d2d",
"metadata": {
"editable": true
},
@@ -334,7 +334,7 @@
},
{
"cell_type": "markdown",
- "id": "738f3905",
+ "id": "790305f1",
"metadata": {
"editable": true
},
@@ -346,7 +346,7 @@
},
{
"cell_type": "markdown",
- "id": "71364ae6",
+ "id": "efae66c5",
"metadata": {
"editable": true
},
@@ -359,7 +359,7 @@
},
{
"cell_type": "markdown",
- "id": "bccbbf42",
+ "id": "a701d8b3",
"metadata": {
"editable": true
},
@@ -371,7 +371,7 @@
},
{
"cell_type": "markdown",
- "id": "9a385d5f",
+ "id": "0b2700db",
"metadata": {
"editable": true
},
@@ -381,7 +381,7 @@
},
{
"cell_type": "markdown",
- "id": "f41d1e6a",
+ "id": "cc4927e3",
"metadata": {
"editable": true
},
@@ -410,7 +410,7 @@
},
{
"cell_type": "markdown",
- "id": "fbdf8514",
+ "id": "ab6ab422",
"metadata": {
"editable": true
},
@@ -422,7 +422,7 @@
},
{
"cell_type": "markdown",
- "id": "171b1a42",
+ "id": "dc4f51d2",
"metadata": {
"editable": true
},
@@ -434,7 +434,7 @@
},
{
"cell_type": "markdown",
- "id": "ba8120fe",
+ "id": "9c926574",
"metadata": {
"editable": true
},
@@ -448,7 +448,7 @@
},
{
"cell_type": "markdown",
- "id": "69827ef6",
+ "id": "ec80a32b",
"metadata": {
"editable": true
},
@@ -460,7 +460,7 @@
},
{
"cell_type": "markdown",
- "id": "5d166685",
+ "id": "0a1a0a34",
"metadata": {
"editable": true
},
@@ -474,7 +474,7 @@
},
{
"cell_type": "markdown",
- "id": "29914809",
+ "id": "b8073435",
"metadata": {
"editable": true
},
@@ -486,7 +486,7 @@
},
{
"cell_type": "markdown",
- "id": "7f28ccba",
+ "id": "ae2d2f7e",
"metadata": {
"editable": true
},
@@ -496,7 +496,7 @@
},
{
"cell_type": "markdown",
- "id": "d368096e",
+ "id": "93689e2f",
"metadata": {
"editable": true
},
@@ -508,7 +508,7 @@
},
{
"cell_type": "markdown",
- "id": "4cc2df00",
+ "id": "7e2464f1",
"metadata": {
"editable": true
},
@@ -518,7 +518,7 @@
},
{
"cell_type": "markdown",
- "id": "d8ebcb66",
+ "id": "c4a3c0c8",
"metadata": {
"editable": true
},
@@ -530,7 +530,7 @@
},
{
"cell_type": "markdown",
- "id": "a0d462e8",
+ "id": "35c9919d",
"metadata": {
"editable": true
},
@@ -542,7 +542,7 @@
},
{
"cell_type": "markdown",
- "id": "44f4cbc8",
+ "id": "54b1389f",
"metadata": {
"editable": true
},
@@ -554,7 +554,7 @@
},
{
"cell_type": "markdown",
- "id": "a4a4a378",
+ "id": "31ea9a15",
"metadata": {
"editable": true
},
@@ -564,7 +564,7 @@
},
{
"cell_type": "markdown",
- "id": "ec14e67b",
+ "id": "e2a8f63a",
"metadata": {
"editable": true
},
@@ -576,7 +576,7 @@
},
{
"cell_type": "markdown",
- "id": "f02c2074",
+ "id": "68c08406",
"metadata": {
"editable": true
},
@@ -586,7 +586,7 @@
},
{
"cell_type": "markdown",
- "id": "b364770f",
+ "id": "3b27abe5",
"metadata": {
"editable": true
},
@@ -600,7 +600,7 @@
},
{
"cell_type": "markdown",
- "id": "07867c0c",
+ "id": "4e49043b",
"metadata": {
"editable": true
},
@@ -619,7 +619,7 @@
},
{
"cell_type": "markdown",
- "id": "ca46fef8",
+ "id": "5c2b06fc",
"metadata": {
"editable": true
},
@@ -635,7 +635,7 @@
},
{
"cell_type": "markdown",
- "id": "febdcadc",
+ "id": "964436e2",
"metadata": {
"editable": true
},
@@ -647,7 +647,7 @@
},
{
"cell_type": "markdown",
- "id": "e977f23b",
+ "id": "02bfdeed",
"metadata": {
"editable": true
},
@@ -659,7 +659,7 @@
},
{
"cell_type": "markdown",
- "id": "0dcd8f48",
+ "id": "dd5c8a43",
"metadata": {
"editable": true
},
@@ -671,7 +671,7 @@
},
{
"cell_type": "markdown",
- "id": "cc9a0b4b",
+ "id": "b6bf98c3",
"metadata": {
"editable": true
},
@@ -681,7 +681,7 @@
},
{
"cell_type": "markdown",
- "id": "ce2e80ed",
+ "id": "fe20eab1",
"metadata": {
"editable": true
},
@@ -693,7 +693,7 @@
},
{
"cell_type": "markdown",
- "id": "110a6584",
+ "id": "f10cf192",
"metadata": {
"editable": true
},
@@ -704,7 +704,7 @@
},
{
"cell_type": "markdown",
- "id": "779a67cf",
+ "id": "e4c993c8",
"metadata": {
"editable": true
},
@@ -716,7 +716,7 @@
},
{
"cell_type": "markdown",
- "id": "fd2cff89",
+ "id": "3073d0da",
"metadata": {
"editable": true
},
@@ -729,7 +729,7 @@
},
{
"cell_type": "markdown",
- "id": "a2d6d919",
+ "id": "0c11e29b",
"metadata": {
"editable": true
},
@@ -742,7 +742,7 @@
},
{
"cell_type": "markdown",
- "id": "e1a566af",
+ "id": "b7fad697",
"metadata": {
"editable": true
},
@@ -754,7 +754,7 @@
},
{
"cell_type": "markdown",
- "id": "3e9545b6",
+ "id": "2ea071f6",
"metadata": {
"editable": true
},
@@ -764,7 +764,7 @@
},
{
"cell_type": "markdown",
- "id": "6fa5c746",
+ "id": "28d4e566",
"metadata": {
"editable": true
},
@@ -776,7 +776,7 @@
},
{
"cell_type": "markdown",
- "id": "d94c21a0",
+ "id": "38a7f8d1",
"metadata": {
"editable": true
},
@@ -786,7 +786,7 @@
},
{
"cell_type": "markdown",
- "id": "7a53d084",
+ "id": "074215ad",
"metadata": {
"editable": true
},
@@ -798,7 +798,7 @@
},
{
"cell_type": "markdown",
- "id": "6ae2917a",
+ "id": "9766bcf6",
"metadata": {
"editable": true
},
@@ -815,7 +815,7 @@
},
{
"cell_type": "markdown",
- "id": "ba1cb2ea",
+ "id": "0b3b6b43",
"metadata": {
"editable": true
},
@@ -827,7 +827,7 @@
},
{
"cell_type": "markdown",
- "id": "7e4d5ce8",
+ "id": "e4b1f393",
"metadata": {
"editable": true
},
@@ -837,7 +837,7 @@
},
{
"cell_type": "markdown",
- "id": "1ce4fbbe",
+ "id": "ab95c870",
"metadata": {
"editable": true
},
@@ -849,7 +849,7 @@
},
{
"cell_type": "markdown",
- "id": "ead43937",
+ "id": "fe2a8178",
"metadata": {
"editable": true
},
@@ -859,7 +859,7 @@
},
{
"cell_type": "markdown",
- "id": "3ba90243",
+ "id": "b24f68f8",
"metadata": {
"editable": true
},
@@ -871,7 +871,7 @@
},
{
"cell_type": "markdown",
- "id": "38bfb014",
+ "id": "b9578d5c",
"metadata": {
"editable": true
},
@@ -884,7 +884,7 @@
},
{
"cell_type": "markdown",
- "id": "97f85102",
+ "id": "4106fee9",
"metadata": {
"editable": true
},
@@ -896,7 +896,7 @@
},
{
"cell_type": "markdown",
- "id": "612518ed",
+ "id": "043c45d6",
"metadata": {
"editable": true
},
@@ -908,7 +908,7 @@
},
{
"cell_type": "markdown",
- "id": "4d4c65e1",
+ "id": "fbd8a711",
"metadata": {
"editable": true
},
@@ -918,7 +918,7 @@
},
{
"cell_type": "markdown",
- "id": "b36717cd",
+ "id": "5100984c",
"metadata": {
"editable": true
},
@@ -932,7 +932,7 @@
},
{
"cell_type": "markdown",
- "id": "d29c141c",
+ "id": "f1d462d7",
"metadata": {
"editable": true
},
@@ -942,7 +942,7 @@
},
{
"cell_type": "markdown",
- "id": "81dc5bdb",
+ "id": "08a143b2",
"metadata": {
"editable": true
},
@@ -954,7 +954,7 @@
},
{
"cell_type": "markdown",
- "id": "3b571878",
+ "id": "80a3fb84",
"metadata": {
"editable": true
},
@@ -964,7 +964,7 @@
},
{
"cell_type": "markdown",
- "id": "391d2e41",
+ "id": "3ff2c12f",
"metadata": {
"editable": true
},
@@ -976,7 +976,7 @@
},
{
"cell_type": "markdown",
- "id": "91d82a39",
+ "id": "0b821f75",
"metadata": {
"editable": true
},
@@ -986,7 +986,7 @@
},
{
"cell_type": "markdown",
- "id": "48f3c01a",
+ "id": "7aaea46b",
"metadata": {
"editable": true
},
@@ -998,7 +998,7 @@
},
{
"cell_type": "markdown",
- "id": "e24ae50f",
+ "id": "3f27294a",
"metadata": {
"editable": true
},
@@ -1012,7 +1012,7 @@
},
{
"cell_type": "markdown",
- "id": "8f2aec83",
+ "id": "a4557b2c",
"metadata": {
"editable": true
},
@@ -1024,7 +1024,7 @@
},
{
"cell_type": "markdown",
- "id": "1f412fc1",
+ "id": "1e09b6d0",
"metadata": {
"editable": true
},
@@ -1035,7 +1035,7 @@
},
{
"cell_type": "markdown",
- "id": "4f22ab8c",
+ "id": "e0e50688",
"metadata": {
"editable": true
},
@@ -1047,7 +1047,7 @@
},
{
"cell_type": "markdown",
- "id": "25dbf02c",
+ "id": "f38091d3",
"metadata": {
"editable": true
},
@@ -1059,7 +1059,7 @@
},
{
"cell_type": "markdown",
- "id": "9025139a",
+ "id": "562d0594",
"metadata": {
"editable": true
},
@@ -1071,7 +1071,7 @@
},
{
"cell_type": "markdown",
- "id": "41c4f457",
+ "id": "6090d9e2",
"metadata": {
"editable": true
},
@@ -1081,7 +1081,7 @@
},
{
"cell_type": "markdown",
- "id": "2fd778d2",
+ "id": "3354c9d2",
"metadata": {
"editable": true
},
@@ -1093,7 +1093,7 @@
},
{
"cell_type": "markdown",
- "id": "25ee57b8",
+ "id": "ed4f542d",
"metadata": {
"editable": true
},
@@ -1103,7 +1103,7 @@
},
{
"cell_type": "markdown",
- "id": "c4fa0f82",
+ "id": "99cfc469",
"metadata": {
"editable": true
},
@@ -1115,7 +1115,7 @@
},
{
"cell_type": "markdown",
- "id": "6b316c6b",
+ "id": "b4ca58f4",
"metadata": {
"editable": true
},
@@ -1126,7 +1126,7 @@
},
{
"cell_type": "markdown",
- "id": "32e88164",
+ "id": "8904211f",
"metadata": {
"editable": true
},
@@ -1138,7 +1138,7 @@
},
{
"cell_type": "markdown",
- "id": "b6605e9f",
+ "id": "a95a58ca",
"metadata": {
"editable": true
},
@@ -1152,7 +1152,7 @@
},
{
"cell_type": "markdown",
- "id": "ae46cc04",
+ "id": "041aff29",
"metadata": {
"editable": true
},
@@ -1164,7 +1164,7 @@
},
{
"cell_type": "markdown",
- "id": "ca510ae5",
+ "id": "9c167d76",
"metadata": {
"editable": true
},
@@ -1176,7 +1176,7 @@
},
{
"cell_type": "markdown",
- "id": "60338152",
+ "id": "5fb5dca7",
"metadata": {
"editable": true
},
@@ -1186,7 +1186,7 @@
},
{
"cell_type": "markdown",
- "id": "e3af4835",
+ "id": "38d9b0ab",
"metadata": {
"editable": true
},
@@ -1203,7 +1203,7 @@
},
{
"cell_type": "markdown",
- "id": "5712a336",
+ "id": "80cd3ba5",
"metadata": {
"editable": true
},
@@ -1214,7 +1214,7 @@
},
{
"cell_type": "markdown",
- "id": "7652fd8b",
+ "id": "e5e4f5eb",
"metadata": {
"editable": true
},
@@ -1227,7 +1227,7 @@
},
{
"cell_type": "markdown",
- "id": "f9bf0584",
+ "id": "02aa9970",
"metadata": {
"editable": true
},
@@ -1239,7 +1239,7 @@
},
{
"cell_type": "markdown",
- "id": "1d9476f2",
+ "id": "8e8f5225",
"metadata": {
"editable": true
},
@@ -1249,7 +1249,7 @@
},
{
"cell_type": "markdown",
- "id": "a4e9720d",
+ "id": "cfd8e8e5",
"metadata": {
"editable": true
},
@@ -1261,7 +1261,7 @@
},
{
"cell_type": "markdown",
- "id": "9b41a2eb",
+ "id": "491fdf17",
"metadata": {
"editable": true
},
@@ -1271,7 +1271,7 @@
},
{
"cell_type": "markdown",
- "id": "287eb437",
+ "id": "6cc25ee0",
"metadata": {
"editable": true
},
@@ -1283,7 +1283,7 @@
},
{
"cell_type": "markdown",
- "id": "ece8f73a",
+ "id": "8db77aaf",
"metadata": {
"editable": true
},
@@ -1293,7 +1293,7 @@
},
{
"cell_type": "markdown",
- "id": "3c8022f1",
+ "id": "9362634e",
"metadata": {
"editable": true
},
@@ -1305,7 +1305,7 @@
},
{
"cell_type": "markdown",
- "id": "8e1d2453",
+ "id": "5330b233",
"metadata": {
"editable": true
},
@@ -1315,7 +1315,7 @@
},
{
"cell_type": "markdown",
- "id": "d6d8f7b2",
+ "id": "ac7962e2",
"metadata": {
"editable": true
},
@@ -1327,7 +1327,7 @@
},
{
"cell_type": "markdown",
- "id": "d9125e6f",
+ "id": "1b4af977",
"metadata": {
"editable": true
},
@@ -1337,7 +1337,7 @@
},
{
"cell_type": "markdown",
- "id": "b0f600fc",
+ "id": "b50ac789",
"metadata": {
"editable": true
},
@@ -1357,7 +1357,7 @@
},
{
"cell_type": "markdown",
- "id": "8615e71c",
+ "id": "69e45a6a",
"metadata": {
"editable": true
},
@@ -1369,7 +1369,7 @@
},
{
"cell_type": "markdown",
- "id": "886f6eeb",
+ "id": "2f4ae0cb",
"metadata": {
"editable": true
},
@@ -1379,7 +1379,7 @@
},
{
"cell_type": "markdown",
- "id": "2179b47f",
+ "id": "6998dae5",
"metadata": {
"editable": true
},
@@ -1391,7 +1391,7 @@
},
{
"cell_type": "markdown",
- "id": "c4597962",
+ "id": "bcf30951",
"metadata": {
"editable": true
},
@@ -1407,7 +1407,7 @@
},
{
"cell_type": "markdown",
- "id": "41c7c865",
+ "id": "936a588c",
"metadata": {
"editable": true
},
@@ -1419,7 +1419,7 @@
},
{
"cell_type": "markdown",
- "id": "fe3af149",
+ "id": "460d61d0",
"metadata": {
"editable": true
},
@@ -1431,7 +1431,7 @@
},
{
"cell_type": "markdown",
- "id": "65488042",
+ "id": "9adc770d",
"metadata": {
"editable": true
},
@@ -1441,7 +1441,7 @@
},
{
"cell_type": "markdown",
- "id": "4d8e66dc",
+ "id": "9c780028",
"metadata": {
"editable": true
},
@@ -1453,7 +1453,7 @@
},
{
"cell_type": "markdown",
- "id": "60e3cace",
+ "id": "8310f236",
"metadata": {
"editable": true
},
@@ -1465,7 +1465,7 @@
},
{
"cell_type": "markdown",
- "id": "6645e8bd",
+ "id": "51246d74",
"metadata": {
"editable": true
},
@@ -1477,7 +1477,7 @@
},
{
"cell_type": "markdown",
- "id": "859ed940",
+ "id": "c5244f35",
"metadata": {
"editable": true
},
@@ -1487,7 +1487,7 @@
},
{
"cell_type": "markdown",
- "id": "a41ab84f",
+ "id": "8c1bd0e6",
"metadata": {
"editable": true
},
@@ -1499,7 +1499,7 @@
},
{
"cell_type": "markdown",
- "id": "bb74bb04",
+ "id": "745ac250",
"metadata": {
"editable": true
},
@@ -1509,7 +1509,7 @@
},
{
"cell_type": "markdown",
- "id": "18930619",
+ "id": "5ca6fad8",
"metadata": {
"editable": true
},
@@ -1521,7 +1521,7 @@
},
{
"cell_type": "markdown",
- "id": "9dc7d9bf",
+ "id": "16b980b1",
"metadata": {
"editable": true
},
@@ -1531,7 +1531,7 @@
},
{
"cell_type": "markdown",
- "id": "f4e55e01",
+ "id": "d11cc483",
"metadata": {
"editable": true
},
@@ -1543,7 +1543,7 @@
},
{
"cell_type": "markdown",
- "id": "b5c81384",
+ "id": "aedc18f2",
"metadata": {
"editable": true
},
@@ -1554,7 +1554,7 @@
},
{
"cell_type": "markdown",
- "id": "a5ad73d2",
+ "id": "7d098955",
"metadata": {
"editable": true
},
@@ -1566,7 +1566,7 @@
},
{
"cell_type": "markdown",
- "id": "6ce7ddf1",
+ "id": "891a2130",
"metadata": {
"editable": true
},
@@ -1578,7 +1578,7 @@
},
{
"cell_type": "markdown",
- "id": "f6e8bfde",
+ "id": "ae325807",
"metadata": {
"editable": true
},
@@ -1588,7 +1588,7 @@
},
{
"cell_type": "markdown",
- "id": "92897855",
+ "id": "73b7c827",
"metadata": {
"editable": true
},
@@ -1600,7 +1600,7 @@
},
{
"cell_type": "markdown",
- "id": "d8d59523",
+ "id": "75a1f505",
"metadata": {
"editable": true
},
@@ -1626,7 +1626,7 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "4e6f7055",
+ "id": "187c0c9b",
"metadata": {
"collapsed": false,
"editable": true
@@ -1683,7 +1683,7 @@
},
{
"cell_type": "markdown",
- "id": "cfc7e4bf",
+ "id": "3a36f736",
"metadata": {
"editable": true
},
@@ -1695,7 +1695,7 @@
},
{
"cell_type": "markdown",
- "id": "b1840d02",
+ "id": "a1d9362d",
"metadata": {
"editable": true
},
@@ -1707,7 +1707,7 @@
},
{
"cell_type": "markdown",
- "id": "39753dc6",
+ "id": "2c303717",
"metadata": {
"editable": true
},
@@ -1717,7 +1717,7 @@
},
{
"cell_type": "markdown",
- "id": "e8cc234c",
+ "id": "cd39daf7",
"metadata": {
"editable": true
},
@@ -1729,7 +1729,7 @@
},
{
"cell_type": "markdown",
- "id": "9c15df96",
+ "id": "dc155f27",
"metadata": {
"editable": true
},
@@ -1739,7 +1739,7 @@
},
{
"cell_type": "markdown",
- "id": "d3c72b88",
+ "id": "bba34e97",
"metadata": {
"editable": true
},
@@ -1751,7 +1751,7 @@
},
{
"cell_type": "markdown",
- "id": "73d9afd2",
+ "id": "4032f2e5",
"metadata": {
"editable": true
},
@@ -1762,7 +1762,7 @@
},
{
"cell_type": "markdown",
- "id": "8f9aeabc",
+ "id": "cde1498b",
"metadata": {
"editable": true
},
@@ -1774,7 +1774,7 @@
},
{
"cell_type": "markdown",
- "id": "b3e019ef",
+ "id": "169dace0",
"metadata": {
"editable": true
},
@@ -1784,7 +1784,7 @@
},
{
"cell_type": "markdown",
- "id": "428e7b0b",
+ "id": "5ce5d0b5",
"metadata": {
"editable": true
},
@@ -1796,7 +1796,7 @@
},
{
"cell_type": "markdown",
- "id": "7c15aecd",
+ "id": "584bba0d",
"metadata": {
"editable": true
},
@@ -1814,7 +1814,7 @@
},
{
"cell_type": "markdown",
- "id": "f9c5e20c",
+ "id": "5981be3c",
"metadata": {
"editable": true
},
@@ -1825,7 +1825,7 @@
},
{
"cell_type": "markdown",
- "id": "a8bb0541",
+ "id": "17b4392c",
"metadata": {
"editable": true
},
@@ -1837,7 +1837,7 @@
},
{
"cell_type": "markdown",
- "id": "9832f93c",
+ "id": "7ab27402",
"metadata": {
"editable": true
},
@@ -1847,7 +1847,7 @@
},
{
"cell_type": "markdown",
- "id": "18803cd9",
+ "id": "fe458181",
"metadata": {
"editable": true
},
@@ -1864,7 +1864,7 @@
},
{
"cell_type": "markdown",
- "id": "823fdfee",
+ "id": "0fb36ea4",
"metadata": {
"editable": true
},
@@ -1878,7 +1878,7 @@
},
{
"cell_type": "markdown",
- "id": "c4f657e1",
+ "id": "0b9a16b0",
"metadata": {
"editable": true
},
@@ -1893,7 +1893,7 @@
},
{
"cell_type": "markdown",
- "id": "f988081e",
+ "id": "9f3f57d1",
"metadata": {
"editable": true
},
@@ -1905,7 +1905,7 @@
},
{
"cell_type": "markdown",
- "id": "5c10fccd",
+ "id": "294d9f65",
"metadata": {
"editable": true
},
@@ -1933,7 +1933,7 @@
},
{
"cell_type": "markdown",
- "id": "8bfddaed",
+ "id": "ddceec6b",
"metadata": {
"editable": true
},
@@ -1945,7 +1945,7 @@
},
{
"cell_type": "markdown",
- "id": "25817d0f",
+ "id": "752cdf86",
"metadata": {
"editable": true
},
@@ -1960,7 +1960,7 @@
},
{
"cell_type": "markdown",
- "id": "ff8542ab",
+ "id": "8c39d290",
"metadata": {
"editable": true
},
@@ -1971,7 +1971,7 @@
{
"cell_type": "code",
"execution_count": 3,
- "id": "808206a0",
+ "id": "1371089b",
"metadata": {
"collapsed": false,
"editable": true
@@ -2170,7 +2170,7 @@
},
{
"cell_type": "markdown",
- "id": "bcbbc274",
+ "id": "9155305a",
"metadata": {
"editable": true
},
@@ -2182,7 +2182,7 @@
},
{
"cell_type": "markdown",
- "id": "198a48d4",
+ "id": "cd0dd310",
"metadata": {
"editable": true
},
@@ -2197,7 +2197,7 @@
},
{
"cell_type": "markdown",
- "id": "6d54c8ef",
+ "id": "94ea1a99",
"metadata": {
"editable": true
},
@@ -2214,7 +2214,7 @@
},
{
"cell_type": "markdown",
- "id": "ff5e2e3a",
+ "id": "8757d8c0",
"metadata": {
"editable": true
},
@@ -2235,7 +2235,7 @@
{
"cell_type": "code",
"execution_count": 4,
- "id": "e51dc1ce",
+ "id": "7e41170c",
"metadata": {
"collapsed": false,
"editable": true
@@ -2248,7 +2248,7 @@
},
{
"cell_type": "markdown",
- "id": "2822ce23",
+ "id": "dd992f79",
"metadata": {
"editable": true
},
@@ -2258,7 +2258,7 @@
},
{
"cell_type": "markdown",
- "id": "e316c2a6",
+ "id": "ea6f4f17",
"metadata": {
"editable": true
},
@@ -2270,7 +2270,7 @@
},
{
"cell_type": "markdown",
- "id": "d991f764",
+ "id": "a71fdaff",
"metadata": {
"editable": true
},
@@ -2285,7 +2285,7 @@
},
{
"cell_type": "markdown",
- "id": "12aa5841",
+ "id": "a6e4c226",
"metadata": {
"editable": true
},
@@ -2295,7 +2295,7 @@
},
{
"cell_type": "markdown",
- "id": "4ab0f4a6",
+ "id": "934d82f3",
"metadata": {
"editable": true
},
@@ -2314,7 +2314,7 @@
},
{
"cell_type": "markdown",
- "id": "cecc7b77",
+ "id": "895bc464",
"metadata": {
"editable": true
},
@@ -2324,7 +2324,7 @@
},
{
"cell_type": "markdown",
- "id": "5408d684",
+ "id": "ea66f663",
"metadata": {
"editable": true
},
@@ -2336,7 +2336,7 @@
},
{
"cell_type": "markdown",
- "id": "0a1869a3",
+ "id": "bece3995",
"metadata": {
"editable": true
},
@@ -2346,7 +2346,7 @@
},
{
"cell_type": "markdown",
- "id": "8bcf37e0",
+ "id": "eb798e7a",
"metadata": {
"editable": true
},
@@ -2358,7 +2358,7 @@
},
{
"cell_type": "markdown",
- "id": "32dcd49c",
+ "id": "4f1bc3bb",
"metadata": {
"editable": true
},
@@ -2368,7 +2368,7 @@
},
{
"cell_type": "markdown",
- "id": "fb913ceb",
+ "id": "6c98f383",
"metadata": {
"editable": true
},
@@ -2380,7 +2380,7 @@
},
{
"cell_type": "markdown",
- "id": "1b137cc8",
+ "id": "3b8ac20a",
"metadata": {
"editable": true
},
@@ -2391,7 +2391,7 @@
},
{
"cell_type": "markdown",
- "id": "1673b8e0",
+ "id": "4ec2a6a6",
"metadata": {
"editable": true
},
@@ -2403,7 +2403,7 @@
},
{
"cell_type": "markdown",
- "id": "e7e0cf29",
+ "id": "53fb7035",
"metadata": {
"editable": true
},
@@ -2415,7 +2415,7 @@
{
"cell_type": "code",
"execution_count": 5,
- "id": "1d123516",
+ "id": "cc95b7c8",
"metadata": {
"collapsed": false,
"editable": true
@@ -2434,12 +2434,13 @@
"sol = solvers.qp(P,q,G,h)\n",
"# Extract optimal value and solution\n",
"sol['x'] \n",
- "sol['primal objective']"
+ "sol['primal objective']\n",
+ "print(sol['x'] )"
]
},
{
"cell_type": "markdown",
- "id": "4fd691c4",
+ "id": "0c87542d",
"metadata": {
"editable": true
},
@@ -2451,7 +2452,7 @@
},
{
"cell_type": "markdown",
- "id": "d78fca36",
+ "id": "50ee5da5",
"metadata": {
"editable": true
},
@@ -2468,7 +2469,7 @@
},
{
"cell_type": "markdown",
- "id": "9ea22582",
+ "id": "9875d1dc",
"metadata": {
"editable": true
},
@@ -2477,12 +2478,12 @@
"$\\boldsymbol{y}=[y_1,y_2,\\dots,y_n]$. \n",
"With the slack constants this leads to the additional constraint $0\\leq \\lambda_i \\leq C$.\n",
"\n",
- "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$."
]
},
{
"cell_type": "markdown",
- "id": "9ae691c4",
+ "id": "28726041",
"metadata": {
"editable": true
},
@@ -2509,7 +2510,7 @@
},
{
"cell_type": "markdown",
- "id": "56563f02",
+ "id": "d978eeac",
"metadata": {
"editable": true
},
@@ -2525,7 +2526,7 @@
},
{
"cell_type": "markdown",
- "id": "b77aa8f1",
+ "id": "80db28a4",
"metadata": {
"editable": true
},
@@ -2539,7 +2540,7 @@
},
{
"cell_type": "markdown",
- "id": "9d453e4d",
+ "id": "097819d3",
"metadata": {
"editable": true
},
@@ -2549,7 +2550,7 @@
},
{
"cell_type": "markdown",
- "id": "ea2da471",
+ "id": "e746ea49",
"metadata": {
"editable": true
},
@@ -2561,7 +2562,7 @@
},
{
"cell_type": "markdown",
- "id": "d1bedfc7",
+ "id": "7333c095",
"metadata": {
"editable": true
},
@@ -2571,7 +2572,7 @@
},
{
"cell_type": "markdown",
- "id": "2956e82c",
+ "id": "d632966d",
"metadata": {
"editable": true
},
@@ -2583,7 +2584,7 @@
},
{
"cell_type": "markdown",
- "id": "af2da82c",
+ "id": "0543df3d",
"metadata": {
"editable": true
},
@@ -2593,7 +2594,7 @@
},
{
"cell_type": "markdown",
- "id": "ffee0669",
+ "id": "9b7027c1",
"metadata": {
"editable": true
},
@@ -2607,7 +2608,7 @@
},
{
"cell_type": "markdown",
- "id": "f39d1b75",
+ "id": "4a4f48d7",
"metadata": {
"editable": true
},
@@ -2622,7 +2623,7 @@
},
{
"cell_type": "markdown",
- "id": "fd722528",
+ "id": "bca9cee9",
"metadata": {
"editable": true
},
@@ -2634,7 +2635,7 @@
},
{
"cell_type": "markdown",
- "id": "e80917f7",
+ "id": "06a6dd29",
"metadata": {
"editable": true
},
@@ -2647,7 +2648,7 @@
},
{
"cell_type": "markdown",
- "id": "70effa43",
+ "id": "2105d639",
"metadata": {
"editable": true
},
@@ -2661,7 +2662,7 @@
},
{
"cell_type": "markdown",
- "id": "625763ed",
+ "id": "a3eee68c",
"metadata": {
"editable": true
},
@@ -2671,7 +2672,7 @@
},
{
"cell_type": "markdown",
- "id": "80119b7a",
+ "id": "072feb8a",
"metadata": {
"editable": true
},
@@ -2683,7 +2684,7 @@
},
{
"cell_type": "markdown",
- "id": "bb820b38",
+ "id": "4b24094f",
"metadata": {
"editable": true
},
@@ -2702,7 +2703,7 @@
},
{
"cell_type": "markdown",
- "id": "94f4a560",
+ "id": "4d8ee2b5",
"metadata": {
"editable": true
},
@@ -2714,7 +2715,7 @@
},
{
"cell_type": "markdown",
- "id": "82c73733",
+ "id": "6094f53c",
"metadata": {
"editable": true
},
@@ -2726,7 +2727,7 @@
},
{
"cell_type": "markdown",
- "id": "f1eab58b",
+ "id": "4c4505d0",
"metadata": {
"editable": true
},
@@ -2736,7 +2737,7 @@
},
{
"cell_type": "markdown",
- "id": "eba180e0",
+ "id": "829097d7",
"metadata": {
"editable": true
},
@@ -2748,7 +2749,7 @@
},
{
"cell_type": "markdown",
- "id": "2c44854e",
+ "id": "ed108851",
"metadata": {
"editable": true
},
@@ -2762,7 +2763,7 @@
},
{
"cell_type": "markdown",
- "id": "31d96819",
+ "id": "95e01fea",
"metadata": {
"editable": true
},
@@ -2781,7 +2782,7 @@
},
{
"cell_type": "markdown",
- "id": "c173343b",
+ "id": "f4714a68",
"metadata": {
"editable": true
},
@@ -2793,7 +2794,7 @@
},
{
"cell_type": "markdown",
- "id": "0cd49759",
+ "id": "ad24ff7b",
"metadata": {
"editable": true
},
@@ -2812,7 +2813,7 @@
},
{
"cell_type": "markdown",
- "id": "1c9a30ef",
+ "id": "996fb4b4",
"metadata": {
"editable": true
},
@@ -2828,7 +2829,7 @@
},
{
"cell_type": "markdown",
- "id": "ec75c516",
+ "id": "59fd3d2a",
"metadata": {
"editable": true
},
@@ -2846,7 +2847,7 @@
},
{
"cell_type": "markdown",
- "id": "0570bbc9",
+ "id": "0c41f7df",
"metadata": {
"editable": true
},
@@ -2861,7 +2862,7 @@
{
"cell_type": "code",
"execution_count": 6,
- "id": "f060717c",
+ "id": "2748907d",
"metadata": {
"collapsed": false,
"editable": true
@@ -2882,7 +2883,7 @@
},
{
"cell_type": "markdown",
- "id": "32ab2c29",
+ "id": "ee18b064",
"metadata": {
"editable": true
},
@@ -2899,7 +2900,7 @@
{
"cell_type": "code",
"execution_count": 7,
- "id": "59e3cba5",
+ "id": "933d4a1c",
"metadata": {
"collapsed": false,
"editable": true
@@ -2931,7 +2932,7 @@
},
{
"cell_type": "markdown",
- "id": "9a30fe10",
+ "id": "52a7803c",
"metadata": {
"editable": true
},
@@ -2945,7 +2946,7 @@
},
{
"cell_type": "markdown",
- "id": "a6997a28",
+ "id": "353e87bc",
"metadata": {
"editable": true
},
@@ -2958,7 +2959,7 @@
{
"cell_type": "code",
"execution_count": 8,
- "id": "bcb92e3e",
+ "id": "7d5b07f0",
"metadata": {
"collapsed": false,
"editable": true
@@ -2982,7 +2983,7 @@
},
{
"cell_type": "markdown",
- "id": "2fd01a9c",
+ "id": "4a33c294",
"metadata": {
"editable": true
},
@@ -2995,7 +2996,7 @@
{
"cell_type": "code",
"execution_count": 9,
- "id": "cab36804",
+ "id": "eebb9c1e",
"metadata": {
"collapsed": false,
"editable": true
@@ -3049,7 +3050,7 @@
},
{
"cell_type": "markdown",
- "id": "df77f283",
+ "id": "2d3e36c0",
"metadata": {
"editable": true
},
@@ -3064,7 +3065,7 @@
},
{
"cell_type": "markdown",
- "id": "2030ab84",
+ "id": "82cd7ebe",
"metadata": {
"editable": true
},
@@ -3076,7 +3077,7 @@
},
{
"cell_type": "markdown",
- "id": "aada3def",
+ "id": "c8fe9819",
"metadata": {
"editable": true
},
@@ -3088,7 +3089,7 @@
},
{
"cell_type": "markdown",
- "id": "8d0732f2",
+ "id": "0ffbbed1",
"metadata": {
"editable": true
},
@@ -3098,7 +3099,7 @@
},
{
"cell_type": "markdown",
- "id": "e0475b3c",
+ "id": "de8e3cc9",
"metadata": {
"editable": true
},
@@ -3115,7 +3116,7 @@
},
{
"cell_type": "markdown",
- "id": "61fe43d8",
+ "id": "e01249ec",
"metadata": {
"editable": true
},
@@ -3127,7 +3128,7 @@
},
{
"cell_type": "markdown",
- "id": "427ba753",
+ "id": "538a04b0",
"metadata": {
"editable": true
},
@@ -3142,7 +3143,7 @@
},
{
"cell_type": "markdown",
- "id": "73f1789a",
+ "id": "e155d809",
"metadata": {
"editable": true
},
@@ -3152,7 +3153,7 @@
},
{
"cell_type": "markdown",
- "id": "7838d670",
+ "id": "5558f48c",
"metadata": {
"editable": true
},
@@ -3166,7 +3167,7 @@
},
{
"cell_type": "markdown",
- "id": "068b24a8",
+ "id": "1bca3032",
"metadata": {
"editable": true
},
@@ -3178,7 +3179,7 @@
},
{
"cell_type": "markdown",
- "id": "2eaa93f7",
+ "id": "bbecf0f6",
"metadata": {
"editable": true
},
@@ -3190,7 +3191,7 @@
},
{
"cell_type": "markdown",
- "id": "58afdc2b",
+ "id": "a3a3ab0d",
"metadata": {
"editable": true
},
@@ -3202,7 +3203,7 @@
},
{
"cell_type": "markdown",
- "id": "ccd37b52",
+ "id": "b893aded",
"metadata": {
"editable": true
},
@@ -3217,7 +3218,7 @@
},
{
"cell_type": "markdown",
- "id": "8a4827c0",
+ "id": "eeadb7d8",
"metadata": {
"editable": true
},
@@ -3229,7 +3230,7 @@
},
{
"cell_type": "markdown",
- "id": "c0a93b0b",
+ "id": "ba4c03ae",
"metadata": {
"editable": true
},
@@ -3239,7 +3240,7 @@
},
{
"cell_type": "markdown",
- "id": "8e55c545",
+ "id": "3a788b7f",
"metadata": {
"editable": true
},
@@ -3251,7 +3252,7 @@
},
{
"cell_type": "markdown",
- "id": "6df860b0",
+ "id": "1104daac",
"metadata": {
"editable": true
},
@@ -3261,7 +3262,7 @@
},
{
"cell_type": "markdown",
- "id": "ca39a876",
+ "id": "c9ed6db5",
"metadata": {
"editable": true
},
@@ -3273,7 +3274,7 @@
},
{
"cell_type": "markdown",
- "id": "c6671353",
+ "id": "ed897072",
"metadata": {
"editable": true
},
@@ -3311,7 +3312,7 @@
},
{
"cell_type": "markdown",
- "id": "f6d17cd6",
+ "id": "ff702ab2",
"metadata": {
"editable": true
},
@@ -3324,7 +3325,7 @@
},
{
"cell_type": "markdown",
- "id": "8516778b",
+ "id": "06dc6b42",
"metadata": {
"editable": true
},
@@ -3338,7 +3339,7 @@
},
{
"cell_type": "markdown",
- "id": "469a125c",
+ "id": "04407b76",
"metadata": {
"editable": true
},
@@ -3350,7 +3351,7 @@
},
{
"cell_type": "markdown",
- "id": "9e6817c6",
+ "id": "5228e923",
"metadata": {
"editable": true
},
@@ -3363,7 +3364,7 @@
{
"cell_type": "code",
"execution_count": 10,
- "id": "a4495e13",
+ "id": "8592774d",
"metadata": {
"collapsed": false,
"editable": true
@@ -3382,7 +3383,7 @@
},
{
"cell_type": "markdown",
- "id": "b8c2fdba",
+ "id": "f0ebc399",
"metadata": {
"editable": true
},
@@ -3392,7 +3393,7 @@
},
{
"cell_type": "markdown",
- "id": "4491a96b",
+ "id": "17f41af2",
"metadata": {
"editable": true
},
@@ -3404,7 +3405,7 @@
},
{
"cell_type": "markdown",
- "id": "8544e2dc",
+ "id": "1f7f0973",
"metadata": {
"editable": true
},
@@ -3416,7 +3417,7 @@
},
{
"cell_type": "markdown",
- "id": "b1ea1f0f",
+ "id": "f15f3178",
"metadata": {
"editable": true
},
@@ -3426,7 +3427,7 @@
},
{
"cell_type": "markdown",
- "id": "cbb9f701",
+ "id": "55246445",
"metadata": {
"editable": true
},
@@ -3438,7 +3439,7 @@
},
{
"cell_type": "markdown",
- "id": "c4cf5e21",
+ "id": "02f72674",
"metadata": {
"editable": true
},
@@ -3452,7 +3453,7 @@
{
"cell_type": "code",
"execution_count": 11,
- "id": "6af9680c",
+ "id": "b314b0fd",
"metadata": {
"collapsed": false,
"editable": true
@@ -3468,7 +3469,7 @@
},
{
"cell_type": "markdown",
- "id": "d8159aab",
+ "id": "38c7a77e",
"metadata": {
"editable": true
},
@@ -3487,7 +3488,7 @@
},
{
"cell_type": "markdown",
- "id": "71ec4777",
+ "id": "ea7382fa",
"metadata": {
"editable": true
},
@@ -3499,7 +3500,7 @@
},
{
"cell_type": "markdown",
- "id": "f5f434cc",
+ "id": "a71325ac",
"metadata": {
"editable": true
},
@@ -3511,7 +3512,7 @@
},
{
"cell_type": "markdown",
- "id": "d0336042",
+ "id": "2b461f6b",
"metadata": {
"editable": true
},
@@ -3523,7 +3524,7 @@
{
"cell_type": "code",
"execution_count": 12,
- "id": "bf2710f7",
+ "id": "0eab82b4",
"metadata": {
"collapsed": false,
"editable": true
@@ -3536,7 +3537,7 @@
},
{
"cell_type": "markdown",
- "id": "7817ef09",
+ "id": "1906dde5",
"metadata": {
"editable": true
},
@@ -3548,7 +3549,7 @@
{
"cell_type": "code",
"execution_count": 13,
- "id": "79b90921",
+ "id": "e09e5da0",
"metadata": {
"collapsed": false,
"editable": true
@@ -3572,7 +3573,7 @@
},
{
"cell_type": "markdown",
- "id": "b49ef7d7",
+ "id": "bc053213",
"metadata": {
"editable": true
},
@@ -3585,7 +3586,7 @@
},
{
"cell_type": "markdown",
- "id": "3a9cd7e1",
+ "id": "54acda0c",
"metadata": {
"editable": true
},
@@ -3609,7 +3610,7 @@
},
{
"cell_type": "markdown",
- "id": "60d77dc9",
+ "id": "1a8ca023",
"metadata": {
"editable": true
},
@@ -3621,7 +3622,7 @@
},
{
"cell_type": "markdown",
- "id": "b21e038c",
+ "id": "c4bdd5c7",
"metadata": {
"editable": true
},
@@ -3631,7 +3632,7 @@
},
{
"cell_type": "markdown",
- "id": "34508a2b",
+ "id": "a5e3c034",
"metadata": {
"editable": true
},
@@ -3649,7 +3650,7 @@
{
"cell_type": "code",
"execution_count": 14,
- "id": "d68f2900",
+ "id": "601c09dd",
"metadata": {
"collapsed": false,
"editable": true
@@ -3681,7 +3682,7 @@
},
{
"cell_type": "markdown",
- "id": "7fbda3b2",
+ "id": "1b859e3f",
"metadata": {
"editable": true
},
@@ -3691,7 +3692,7 @@
},
{
"cell_type": "markdown",
- "id": "b0e21868",
+ "id": "b6d9c97a",
"metadata": {
"editable": true
},
@@ -3715,7 +3716,7 @@
},
{
"cell_type": "markdown",
- "id": "088c95ff",
+ "id": "7792e082",
"metadata": {
"editable": true
},
@@ -3739,7 +3740,7 @@
},
{
"cell_type": "markdown",
- "id": "60c158de",
+ "id": "54bd9e4f",
"metadata": {
"editable": true
},
@@ -3751,7 +3752,7 @@
},
{
"cell_type": "markdown",
- "id": "0108665f",
+ "id": "bb52b494",
"metadata": {
"editable": true
},
@@ -3761,7 +3762,7 @@
},
{
"cell_type": "markdown",
- "id": "b0af0801",
+ "id": "4a5b8521",
"metadata": {
"editable": true
},
@@ -3773,7 +3774,7 @@
},
{
"cell_type": "markdown",
- "id": "ef00763d",
+ "id": "219427fb",
"metadata": {
"editable": true
},
@@ -3783,7 +3784,7 @@
},
{
"cell_type": "markdown",
- "id": "b9f53312",
+ "id": "76eb5bb9",
"metadata": {
"editable": true
},
@@ -3795,7 +3796,7 @@
},
{
"cell_type": "markdown",
- "id": "be2f0bc9",
+ "id": "6bdaca84",
"metadata": {
"editable": true
},
@@ -3805,7 +3806,7 @@
},
{
"cell_type": "markdown",
- "id": "cb504882",
+ "id": "36804506",
"metadata": {
"editable": true
},
@@ -3817,7 +3818,7 @@
},
{
"cell_type": "markdown",
- "id": "374616f3",
+ "id": "3762acb8",
"metadata": {
"editable": true
},
@@ -3843,7 +3844,7 @@
},
{
"cell_type": "markdown",
- "id": "ed3de948",
+ "id": "f8cdee52",
"metadata": {
"editable": true
},
@@ -3862,7 +3863,7 @@
{
"cell_type": "code",
"execution_count": 15,
- "id": "5f8d12e2",
+ "id": "a2ce64da",
"metadata": {
"collapsed": false,
"editable": true
@@ -3897,7 +3898,7 @@
},
{
"cell_type": "markdown",
- "id": "4b6bb43a",
+ "id": "cec40586",
"metadata": {
"editable": true
},
@@ -3914,7 +3915,7 @@
{
"cell_type": "code",
"execution_count": 16,
- "id": "9d6a1a44",
+ "id": "0282cb1e",
"metadata": {
"collapsed": false,
"editable": true
@@ -3927,7 +3928,7 @@
},
{
"cell_type": "markdown",
- "id": "a89e13ef",
+ "id": "0794f954",
"metadata": {
"editable": true
},
@@ -3942,7 +3943,7 @@
{
"cell_type": "code",
"execution_count": 17,
- "id": "b30f257b",
+ "id": "536daaae",
"metadata": {
"collapsed": false,
"editable": true
@@ -3958,7 +3959,7 @@
},
{
"cell_type": "markdown",
- "id": "79ecaea2",
+ "id": "219c8925",
"metadata": {
"editable": true
},
@@ -3971,7 +3972,7 @@
{
"cell_type": "code",
"execution_count": 18,
- "id": "f29c5921",
+ "id": "32587a9b",
"metadata": {
"collapsed": false,
"editable": true
@@ -3983,7 +3984,7 @@
},
{
"cell_type": "markdown",
- "id": "efd9846b",
+ "id": "1fc4a519",
"metadata": {
"editable": true
},
@@ -3995,7 +3996,7 @@
},
{
"cell_type": "markdown",
- "id": "8bc7555f",
+ "id": "544842d0",
"metadata": {
"editable": true
},
@@ -4008,7 +4009,7 @@
{
"cell_type": "code",
"execution_count": 19,
- "id": "4684b55a",
+ "id": "7a13a028",
"metadata": {
"collapsed": false,
"editable": true
@@ -4047,7 +4048,7 @@
},
{
"cell_type": "markdown",
- "id": "fa658fe4",
+ "id": "c1ed7e36",
"metadata": {
"editable": true
},
@@ -4065,7 +4066,7 @@
{
"cell_type": "code",
"execution_count": 20,
- "id": "6932c22b",
+ "id": "255b04bf",
"metadata": {
"collapsed": false,
"editable": true
@@ -4080,7 +4081,7 @@
},
{
"cell_type": "markdown",
- "id": "505f0694",
+ "id": "268fa8b1",
"metadata": {
"editable": true
},
@@ -4093,7 +4094,7 @@
{
"cell_type": "code",
"execution_count": 21,
- "id": "2dc35fb0",
+ "id": "50a04fce",
"metadata": {
"collapsed": false,
"editable": true
@@ -4106,7 +4107,7 @@
},
{
"cell_type": "markdown",
- "id": "0599d93f",
+ "id": "dd40ea05",
"metadata": {
"editable": true
},
@@ -4122,7 +4123,7 @@
},
{
"cell_type": "markdown",
- "id": "0af8eb15",
+ "id": "ea97fd97",
"metadata": {
"editable": true
},
@@ -4137,7 +4138,7 @@
},
{
"cell_type": "markdown",
- "id": "dd1ce2cf",
+ "id": "484207e2",
"metadata": {
"editable": true
},
@@ -4158,7 +4159,7 @@
{
"cell_type": "code",
"execution_count": 22,
- "id": "c188a392",
+ "id": "03652c41",
"metadata": {
"collapsed": false,
"editable": true
@@ -4172,7 +4173,7 @@
},
{
"cell_type": "markdown",
- "id": "9aa51c0d",
+ "id": "ed6c943a",
"metadata": {
"editable": true
},
diff --git a/doc/src/week46/week46.do.txt b/doc/src/week46/week46.do.txt
index a6c68f0ec..d9d160f9b 100644
--- a/doc/src/week46/week46.do.txt
+++ b/doc/src/week46/week46.do.txt
@@ -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$.