Skip to content

Commit

Permalink
update p-median
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytecode committed Apr 1, 2024
1 parent 28372d4 commit 1e68a5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions p-median.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@
"\\text{Subject to:} & \\\\\n",
"& \\sum_{j = 1}^{n} z_{ij = 1} \\;\\;\\;, \\forall_i, \\;\\;\\; i, j = 1,2,\\ldots, n \\\\\n",
"& z_{ij} \\le y_j \\;\\;\\;, \\forall_{i, j}\\;\\;\\; i, j = 1,2,\\ldots, n \\\\\n",
"& \\sum_{j=1}^n y_j = 1 \\\\\n",
"& a_{ij}, y_j \\in \\{0,1\\} \\;\\;\\; i, j = 1,2,\\ldots, n \\\\\n",
"& \\sum_{j=1}^n y_j = \\text{number_of_depots} \\\\\n",
"& z_{ij}, y_j \\in \\{0,1\\} \\;\\;\\; i, j = 1,2,\\ldots, n \\\\\n",
"& a_{ij} \\ge 0 \\\\\n",
"\\end{aligned}\n",
"$$"
]
Expand Down Expand Up @@ -395,9 +396,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.9.0",
"display_name": "Julia 1.10.0-rc1",
"language": "julia",
"name": "julia-1.9"
"name": "julia-1.10"
},
"language_info": {
"file_extension": ".jl",
Expand Down

0 comments on commit 1e68a5a

Please sign in to comment.