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') ... ...