Skip to content

Commit 98e0b8c

Browse files
committed
fixes pysal#466
Corrected the typo
1 parent 5c6a29b commit 98e0b8c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

notebooks/p-median.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"\n",
1818
"**P-Median can be written as:**\n",
1919
"\n",
20-
"$\\begin{array} \\displaystyle \\textbf{Minimize} & \\displaystyle \\sum_{i \\in I}\\sum_{j \\in J}{a_i d_{ij} X_{ij}} &&& (1) \\\\\n",
20+
">$\\begin{array} \\displaystyle \\textbf{Minimize} & \\displaystyle \\sum_{i \\in I}\\sum_{j \\in J}{a_i d_{ij} X_{ij}} &&& (1) \\\\\n",
2121
"\\displaystyle \\textbf{Subject to:} & \\displaystyle \\sum_{j \\in J}{X_{ij} = 1} & \\forall i \\in I && (2) \\\\\n",
2222
" & \\displaystyle \\sum_{j \\in J}{Y_{j} = p} &&& (3) \\\\\n",
2323
" & X_{ij} \\leq Y_{j} & \\forall i \\in I & \\forall j \\in J & (4) \\\\\n",
2424
" & X_{ij} \\in \\{0,1\\} & \\forall i \\in I & \\forall j \\in J & (5) \\\\\n",
2525
" & Y_{j} \\in \\{0,1\\} & \\forall j \\in J && (6) \\\\ \\end{array}$\n",
2626
"\n",
27-
"$\\begin{array} \\displaystyle \\textbf{Where:}\\\\ & & \\displaystyle i & \\small = & \\textrm{index referencing nodes of the network as demand} \\\\\n",
27+
">$\\begin{array} \\displaystyle \\textbf{Where:}\\\\ & & \\displaystyle i & \\small = & \\textrm{index referencing nodes of the network as demand} \\\\\n",
2828
"& & j & \\small = & \\textrm{index referencing nodes of the network as potential facility sites} \\\\\n",
2929
"& & d_{ij} & \\small = & \\textrm{shortest distance or travel time between nodes } i \\textrm{ and } j \\\\\n",
3030
"& & p & \\small = & \\textrm{number of facilities to be located} \\\\\n",
@@ -39,7 +39,7 @@
3939
" \\end{cases} \\\\ \n",
4040
"\\end{array}$\n",
4141
"\n",
42-
"_The formulation above is adapted from Church and Murray (2018)_\n",
42+
">_The formulation above is adapted from Church and Murray (2018)_\n",
4343
"\n",
4444
"This tutorial generates synthetic demand (clients) and facility sites near a 10x10 lattice representing a gridded urban core.\n",
4545
"\n",
@@ -1676,15 +1676,15 @@
16761676
"\n",
16771677
"**Capacitated P-Median can be written as:**\n",
16781678
"\n",
1679-
"$\\begin{array} \\displaystyle \\textbf{Minimize} & \\displaystyle \\sum_{i \\in I}\\sum_{j \\in J}{a_i d_{ij} X_{ij}} &&& (1) \\\\\n",
1679+
">$\\begin{array} \\displaystyle \\textbf{Minimize} & \\displaystyle \\sum_{i \\in I}\\sum_{j \\in J}{a_i d_{ij} X_{ij}} &&& (1) \\\\\n",
16801680
"\\displaystyle \\textbf{Subject to:} & \\displaystyle \\sum_{j \\in J}{X_{ij} = 1} & \\forall i \\in I && (2) \\\\\n",
16811681
" & \\displaystyle \\sum_{j \\in J}{Y_{j} = p} &&& (3) \\\\\n",
16821682
" & \\displaystyle \\sum_{i \\in I}{a_i X_{ij} \\leq {c_j Y_{j}}}& \\forall j \\in J && (4) \\\\\n",
16831683
" & X_{ij} \\leq Y_{j} & \\forall i \\in I & \\forall j \\in J & (5) \\\\\n",
16841684
" & X_{ij} \\in \\{0,1\\} & \\forall i \\in I & \\forall j \\in J & (6) \\\\\n",
16851685
" & Y_{j} \\in \\{0,1\\} & \\forall j \\in J && (7) \\\\ \\end{array}$\n",
16861686
"\n",
1687-
"$\\begin{array} \\displaystyle \\textbf{Where:}\\\\ & & \\displaystyle i & \\small = & \\textrm{index referencing nodes of the network as demand} \\\\\n",
1687+
">$\\begin{array} \\displaystyle \\textbf{Where:}\\\\ & & \\displaystyle i & \\small = & \\textrm{index referencing nodes of the network as demand} \\\\\n",
16881688
"& & j & \\small = & \\textrm{index referencing nodes of the network as potential facility sites} \\\\\n",
16891689
"& & d_{ij} & \\small = & \\textrm{shortest distance or travel time between nodes } i \\textrm{ and } j \\\\\n",
16901690
"& & p & \\small = & \\textrm{number of facilities to be located} \\\\\n",
@@ -1700,7 +1700,7 @@
17001700
" \\end{cases} \\\\ \n",
17011701
"\\end{array}$\n",
17021702
"\n",
1703-
"_The formulation above is adapted from Church and Murray (2009)_"
1703+
">_The formulation above is adapted from Church and Murray (2009)_"
17041704
]
17051705
},
17061706
{

0 commit comments

Comments
 (0)