From 8ff7bcf827dc4a52d52935af9f03ed242e283038 Mon Sep 17 00:00:00 2001 From: jinningwang Date: Thu, 5 Sep 2024 14:19:57 -0400 Subject: [PATCH] Fix typo in doc --- docs/source/modeling/example.rst | 2 +- docs/source/modeling/routine.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/modeling/example.rst b/docs/source/modeling/example.rst index a774da7c..c804d801 100644 --- a/docs/source/modeling/example.rst +++ b/docs/source/modeling/example.rst @@ -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.', diff --git a/docs/source/modeling/routine.rst b/docs/source/modeling/routine.rst index 7fcb736e..6cf8dbd4 100644 --- a/docs/source/modeling/routine.rst +++ b/docs/source/modeling/routine.rst @@ -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') ... ...