GitHub

Original file line numberDiff line numberDiff line change

@@ -50,7 +50,6 @@ Let's start with some imports:

5050
5151

```{code-cell} ipython

5252

import numpy as np

53-

%matplotlib inline

5453

import matplotlib.pyplot as plt

5554

plt.rcParams["figure.figsize"] = (11, 5) #set default figure size

5655

```

Original file line numberDiff line numberDiff line change

@@ -53,7 +53,6 @@ These and other applications prove the truth of the wise crack that

5353

Below we'll use the following imports:

5454
5555

```{code-cell} ipython

56-

%matplotlib inline

5756

import matplotlib.pyplot as plt

5857

plt.rcParams["figure.figsize"] = (11, 5) #set default figure size

5958

import numpy as np

Original file line numberDiff line numberDiff line change

@@ -56,7 +56,6 @@ from ortools.linear_solver import pywraplp

5656

from scipy.optimize import linprog

5757

import matplotlib.pyplot as plt

5858

from matplotlib.patches import Polygon

59-

%matplotlib inline

6059

```

6160
6261

Let's start with some examples of linear programming problem.

Original file line numberDiff line numberDiff line change

@@ -40,7 +40,6 @@ and understand key concepts.

4040

Let's start with some standard imports:

4141
4242

```{code-cell} ipython

43-

%matplotlib inline

4443

import matplotlib.pyplot as plt

4544

import numpy as np

4645

```

Original file line numberDiff line numberDiff line change

@@ -72,7 +72,6 @@ awarded the 2005 Nobel Prize in Economic Sciences (joint with Robert Aumann).

7272

Let's start with some imports:

7373
7474

```{code-cell} ipython3

75-

%matplotlib inline

7675

import matplotlib.pyplot as plt

7776

from random import uniform, seed

7877

from math import sqrt

Original file line numberDiff line numberDiff line change

@@ -46,7 +46,6 @@ We will use the following imports:

4646
4747

```{code-cell} ipython

4848

import numpy as np

49-

%matplotlib inline

5049

import matplotlib.pyplot as plt

5150

from matplotlib import cm

5251

plt.rcParams["figure.figsize"] = (11, 5) #set default figure size

Read the original on github.com ↗