Skip to content

Commit

Permalink
Fix typo in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jinningwang committed Sep 5, 2024
1 parent 05e10a2 commit 8ff7bcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/modeling/example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Model Section
# --- power balance ---
pb = 'Bbus@aBus + Pbusinj + Cl@pd + Csh@gsh - Cg@pg'
self.pb = Constraint(name='pb', info='power balance',
e_str=pb, type='eq',)
e_str=pb, is_eq=True,)
# --- line flow ---
self.plf = Var(info='Line flow',
unit='p.u.',
Expand Down
2 changes: 1 addition & 1 deletion docs/source/modeling/routine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A simplified code snippet for RTED is shown below as an example.
info='Sum Gen vars vector in shape of zone',
no_parse=True, sparse=True)
... ...
self.rbu = Constraint(name='rbu', type='eq',
self.rbu = Constraint(name='rbu', is_eq=True,
info='RegUp reserve balance',
e_str = 'gs @ mul(ug, pru) - dud')
... ...
Expand Down

0 comments on commit 8ff7bcf

Please sign in to comment.