Skip to content

Commit

Permalink
Fix to latex code
Browse files Browse the repository at this point in the history
  • Loading branch information
zonbeka committed Sep 28, 2017
1 parent 86bde77 commit 86e9297
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions optimization/tsp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"- Sea $d_e$ la distancia del arco $e\\in E$.\n",
"\n",
"Luego, el problema a optimizar es el siguiente:\n",
"\\begin{align}\n",
"$$\\begin{align}\n",
"\\max \\quad & \\sum_{e\\in E} d_e x_e \\\\\n",
"\\text{s.t.} \\quad & \\sum_{e=(i,j)\\in E} x_e = 1 &&\\forall i \\in C \\\\\n",
" & \\sum_{e=(i,j)\\in E} x_e = 1 && \\forall j \\in C \\\\\n",
" & u_i + 1 \\leq u_j + M(1-x_{ij})&& \\forall (i,j)\\in E : j\\neq 0 \\\\\n",
" & x_e \\in \\{0,1\\} && \\forall (i,j)\\in E\\\\\n",
" & u_i \\geq 0 && \\forall i \\in C\n",
"\\end{align}"
"\\end{align}$$"
]
},
{
Expand Down Expand Up @@ -61,7 +61,9 @@
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"rnd = np.random\n",
Expand Down

0 comments on commit 86e9297

Please sign in to comment.