Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Release Notes
Upcoming Version
----------------

* Fix docs (pick highs solver)
* Add the `sphinx-copybutton` to the documentation

Version 0.6.1
Expand Down
2 changes: 1 addition & 1 deletion examples/create-a-model-with-coordinates.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"metadata": {},
"outputs": [],
"source": [
"m.solve()"
"m.solve(solver_name=\"highs\")"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/create-a-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
"metadata": {},
"outputs": [],
"source": [
"m.solve()"
"m.solve(solver_name=\"highs\")"
]
},
{
Expand Down
14 changes: 7 additions & 7 deletions examples/manipulating-models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"con2 = m.add_constraints(5 * x + 2 * y >= 3 * factor, name=\"con2\")\n",
"\n",
"m.add_objective(x + 2 * y)\n",
"m.solve()\n",
"m.solve(solver_name=\"highs\")\n",
"\n",
"m.solve()\n",
"m.solve(solver_name=\"highs\")\n",
"sol = m.solution.to_dataframe()\n",
"sol.plot(grid=True, ylabel=\"Optimal Value\")"
]
Expand Down Expand Up @@ -95,7 +95,7 @@
"metadata": {},
"outputs": [],
"source": [
"m.solve()\n",
"m.solve(solver_name=\"highs\")\n",
"sol = m.solution.to_dataframe()\n",
"sol.plot(grid=True, ylabel=\"Optimal Value\")"
]
Expand Down Expand Up @@ -137,7 +137,7 @@
"metadata": {},
"outputs": [],
"source": [
"m.solve()\n",
"m.solve(solver_name=\"highs\")\n",
"sol = m.solution.to_dataframe()\n",
"sol.plot(grid=True, ylabel=\"Optimal Value\")"
]
Expand Down Expand Up @@ -190,7 +190,7 @@
"metadata": {},
"outputs": [],
"source": [
"m.solve()\n",
"m.solve(solver_name=\"highs\")\n",
"sol = m.solution.to_dataframe()\n",
"sol.plot(grid=True, ylabel=\"Optimal Value\")"
]
Expand Down Expand Up @@ -242,7 +242,7 @@
"metadata": {},
"outputs": [],
"source": [
"m.solve()\n",
"m.solve(solver_name=\"highs\")\n",
"sol = m.solution.to_dataframe()\n",
"sol.plot(grid=True, ylabel=\"Optimal Value\")"
]
Expand Down Expand Up @@ -276,7 +276,7 @@
"metadata": {},
"outputs": [],
"source": [
"m.solve()\n",
"m.solve(solver_name=\"highs\")\n",
"sol = m.solution.to_dataframe()\n",
"sol.plot(grid=True, ylabel=\"Optimal Value\")"
]
Expand Down
2 changes: 1 addition & 1 deletion examples/solve-on-oetc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"start_time = time.time()\n",
"\n",
"try:\n",
" status, termination_condition = m.solve(remote=oetc_handler)\n",
" status, termination_condition = m.solve(remote=oetc_handler, solver_name=\"highs\")\n",
"\n",
" end_time = time.time()\n",
" total_time = end_time - start_time\n",
Expand Down
4 changes: 2 additions & 2 deletions examples/transport-tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"In the `solve()` function, you can specify a `solver_name`. The default solver, however, will be the first from the list we printed above."
"In the `solve()` function, you can specify a `solver_name`. The default solver, however, will be the first from the list we printed above. In this example, we will specify a solver explicitly to avoid licensing issues."
]
},
{
Expand All @@ -417,7 +417,7 @@
"outputs": [],
"source": [
"# Solve the model\n",
"m.solve()"
"m.solve(solver_name=\"highs\")"
]
},
{
Expand Down