diff --git a/tutorials/optimization/1_quadratic_program.ipynb b/tutorials/optimization/1_quadratic_program.ipynb index 298da01fc..da12ee413 100644 --- a/tutorials/optimization/1_quadratic_program.ipynb +++ b/tutorials/optimization/1_quadratic_program.ipynb @@ -51,7 +51,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -62,8 +62,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "You start with an empty model.\n", - "You can display your optimization problem with a method `pprint_as_string` and `print_as_lp_string`." + "You start with an empty model. How to add variables and constraints to a model is explained in the section \"Directly constructing a `QuadraticProgram`\"." ] }, { @@ -85,7 +84,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -131,7 +130,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -186,7 +185,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -232,7 +231,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -283,7 +282,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 9, "metadata": {}, "outputs": [ { @@ -321,7 +320,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 10, "metadata": {}, "outputs": [ { @@ -371,7 +370,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -431,7 +430,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 12, "metadata": {}, "outputs": [ { @@ -481,7 +480,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -534,7 +533,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -562,7 +561,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 15, "metadata": {}, "outputs": [ { @@ -622,7 +621,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 16, "metadata": {}, "outputs": [ { @@ -663,7 +662,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 17, "metadata": {}, "outputs": [ { @@ -696,7 +695,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 18, "metadata": {}, "outputs": [ { @@ -717,14 +716,14 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 19, "metadata": {}, "outputs": [ { "data": { "text/html": [ - "

Version Information

Qiskit SoftwareVersion
Qiskit0.19.1
Terra0.14.1
Aer0.5.1
Ignis0.3.0
Aqua0.7.0
IBM Q Provider0.7.0
System information
Python3.7.4 (default, Aug 13 2019, 15:17:50) \n", - "[Clang 4.0.1 (tags/RELEASE_401/final)]
OSDarwin
CPUs6
Memory (Gb)16.0
Mon May 11 08:44:58 2020 CEST
" + "

Version Information

Qiskit SoftwareVersion
QiskitNone
Terra0.15.0.dev0+2e8582d
Aer0.6.0
Ignis0.4.0.dev0+be205e2
Aqua0.8.0.dev0+8d17693
IBM Q Provider0.7.0
System information
Python3.7.5 (default, Nov 1 2019, 02:16:32) \n", + "[Clang 11.0.0 (clang-1100.0.33.8)]
OSDarwin
CPUs2
Memory (Gb)16.0
Fri Jun 19 09:02:44 2020 CEST
" ], "text/plain": [ ""