Skip to content

Commit

Permalink
Merge pull request #179 from shivaniraochepuri21/master
Browse files Browse the repository at this point in the history
changed a comment - mterm is terminal cost
  • Loading branch information
4flixt committed Sep 2, 2021
2 parents 8ff0156 + f5e1a26 commit 0eaa216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/source/example_gallery/batch_reactor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@
"metadata": {},
"outputs": [],
"source": [
"mterm = -model.x['P_s'] # stage cost\n",
"lterm = -model.x['P_s'] # terminal cost\n",
"mterm = -model.x['P_s'] # terminal cost\n",
"lterm = -model.x['P_s'] # stage cost\n",
"\n",
"mpc.set_objective(mterm=mterm, lterm=lterm)\n",
"mpc.set_rterm(inp=1.0) # penalty on input changes"
Expand Down

0 comments on commit 0eaa216

Please sign in to comment.