Skip to content

Commit

Permalink
update the url
Browse files Browse the repository at this point in the history
  • Loading branch information
maliheha committed Jun 22, 2024
1 parent 829870a commit 617594b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions intro_to_gurobipy/intro_to_gurobipy/intro_to_gurobipy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -647,10 +647,10 @@
"\n",
" generator = (x[i] + y[j] <= 1 for i in I for j in J)\n",
" model.addConstrs(generator, name=\"c\")\n",
" model.update() \n",
" model.update()\n",
"\n",
" # Print constraint names\n",
" print(model.getAttr(\"ConstrName\", model.getConstrs())) "
" print(model.getAttr(\"ConstrName\", model.getConstrs()))"
]
},
{
Expand Down Expand Up @@ -752,7 +752,7 @@
"import gurobipy as gp\n",
"from gurobipy import GRB\n",
"\n",
"url = \"https://raw.githubusercontent.com/Gurobi/modeling-examples/master/intro_to_gurobipy/intro_to_gurobipy/data/glass4.mps.bz2\"\n",
"url = \"https://raw.githubusercontent.com/Gurobi/modeling-examples/master/intro_to_gurobipy/intro_to_gurobipy/data\"\n",
"path_to_file, _ = urllib.request.urlretrieve(url, \"./glass4.mps.bz2\")\n",
"\n",
"# running notebook locally:\n",
Expand Down Expand Up @@ -800,7 +800,7 @@
"import gurobipy as gp\n",
"from gurobipy import GRB\n",
"\n",
"url = \"https://raw.githubusercontent.com/Gurobi/modeling-examples/master/intro_to_gurobipy/intro_to_gurobipy/data/glass4.mps.bz2\"\n",
"url = \"https://raw.githubusercontent.com/Gurobi/modeling-examples/master/intro_to_gurobipy/intro_to_gurobipy/data\"\n",
"path_to_file, _ = urllib.request.urlretrieve(url, \"./glass4.mps.bz2\")\n",
"\n",
"# running notebook locally:\n",
Expand Down Expand Up @@ -985,7 +985,7 @@
" y = model.addVars(n, vtype=GRB.BINARY, name=\"y\")\n",
"\n",
" risk = gp.quicksum(x[i] * sigma[i, j] * x[j] for i in range(n) for j in range(n))\n",
" # Another approach to build the risk expression \n",
" # Another approach to build the risk expression\n",
" # risk = gp.QuadExpr()\n",
" # for i in range(n):\n",
" # for j in range(n):\n",
Expand Down

0 comments on commit 617594b

Please sign in to comment.