Skip to content

Commit

Permalink
final typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
murraybj committed Oct 2, 2024
1 parent c619115 commit 3c603d2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Material/Dynamic Exercises/param_est2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"source": [
"import pyomo.environ as pyo\n",
"from pyomo.dae import ContinuousSet, DerivativeVar, Simulator\n",
"import scipy\n",
"\n",
"m = pyo.ConcreteModel()\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@
" return m.y == m.x - 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: 1 addition & 1 deletion _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ chapters:
- file: Material/Nonlinear Exercises/1.1 Alternative Initialization
- file: Material/Nonlinear Exercises/1.2 Evaluation errors
- file: Material/Nonlinear Exercises/1.3 Alternative Formulations
- file: Material/Nonlinear Exercises/1.4 Reactor design problem (Hart et al., 2017; Bequette, 2003)
- file: Material/Nonlinear Exercises/1.4 Reactor design problem
- file: Material/Dynamic Exercises
sections:
- file: Material/Dynamic Exercises/param_est1
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ matplotlib
numpy
pandas
pyomo
openpyxl
openpyxl
scipy

0 comments on commit 3c603d2

Please sign in to comment.