Skip to content

Commit

Permalink
Update notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Apr 23, 2020
1 parent b670dc9 commit 5ff76b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/notebook/linear_solver/mip_var_array.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"# [END import]\n",
"\n",
"\n",
"# [START program_part1]\n",
"# [START data_model]\n",
"def create_data_model():\n",
" \"\"\"Stores the data for the problem.\"\"\"\n",
Expand All @@ -50,13 +51,14 @@
"# [START data]\n",
"data = create_data_model()\n",
"# [END data]\n",
"\n",
"# [END program_part1]\n",
"# [START solver]\n",
"# Create the mip solver with the CBC backend.\n",
"solver = pywraplp.Solver('simple_mip_program',\n",
" pywraplp.Solver.CBC_MIXED_INTEGER_PROGRAMMING)\n",
"# [END solver]\n",
"\n",
"# [START program_part2]\n",
"# [START variables]\n",
"infinity = solver.infinity()\n",
"x = {}\n",
Expand Down

0 comments on commit 5ff76b4

Please sign in to comment.