Skip to content

Commit

Permalink
retry adding ipopt
Browse files Browse the repository at this point in the history
  • Loading branch information
murraybj committed Oct 2, 2024
1 parent 3971ef0 commit 9006de4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
sudo apt update
sudo apt-get install -y -qq glpk-utils
sudo apt-get install -y -qq coinor-cbc
- name: install ipopt
run: |
sudo apt update
sudo pip install idaes-pse --pre
idaes get-extensions --to ./solvers
Expand All @@ -42,7 +46,6 @@ jobs:
pip install -r requirements.txt
pip install openpyxl
# (optional) Cache your executed notebooks between runs
# if you have config:
# execute:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
" return sum( w[i]*m.x[i] for i in A ) <= W_max\n",
"model.weight_con = pyo.Constraint(rule=weight_con_rule)\n",
"\n",
"opt = pyo.SolverFactory('glpk')\n",
"opt = pyo.SolverFactory('cbc')\n",
"opt_success = opt.solve(model)\n",
"\n",
"model.pprint()"
Expand Down

0 comments on commit 9006de4

Please sign in to comment.