Skip to content

Commit

Permalink
executable reference fix
Browse files Browse the repository at this point in the history
  • Loading branch information
murraybj committed Oct 2, 2024
1 parent 3c603d2 commit 090b50e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Material/Dynamic Exercises/param_est2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@
"discretizer = pyo.TransformationFactory('dae.collocation')\n",
"discretizer.apply_to(m,nfe=10,ncp=3,scheme='LAGRANGE-RADAU')\n",
"\n",
"solver = pyo.SolverFactory('ipopt')\n",
"ipopt_runner_path = \"/home/runner/work/pyomo_jupyter_book/pyomo_jupyter_book/solvers/ipopt\"\n",
"solver = pyo.SolverFactory('ipopt', executable=ipopt_runner_path)\n",
"solver.solve(m, tee=True)\n",
"\n",
"print('k1= '+str(pyo.value(m.k1)))\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@
" return (m.x - 1.0) / m.y == 1.0\n",
"model.con = pyo.Constraint(rule=con_rule)\n",
"\n",
"solver = pyo.SolverFactory('ipopt', exectuable='/solvers/ipopt')\n",
"ipopt_runner_path = \"/home/runner/work/pyomo_jupyter_book/pyomo_jupyter_book/solvers/ipopt\"\n",
"solver = pyo.SolverFactory('ipopt', executable=ipopt_runner_path)\n",
"solver.solve(model, tee=True)\n",
"\n",
"print(pyo.value(model.x))\n",
Expand Down Expand Up @@ -556,7 +557,8 @@
" return (m.x - 1.0) / m.y == 1.0\n",
"model.con = pyo.Constraint(rule=con_rule)\n",
"\n",
"solver = pyo.SolverFactory('ipopt')\n",
"ipopt_runner_path = \"/home/runner/work/pyomo_jupyter_book/pyomo_jupyter_book/solvers/ipopt\"\n",
"solver = pyo.SolverFactory('ipopt', executable=ipopt_runner_path)\n",
"solver.solve(model, tee=True)\n",
"\n",
"print(pyo.value(model.x))\n",
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# pyomo_jupyter_book
A conversion of the Pyomo workshop into a jupyter book

Find the companion website [here](https://secquoia.github.io/pyomo_jupyter_book/intro.html)

0 comments on commit 090b50e

Please sign in to comment.