B u `(ã@sTdgZddlmZddlmZddlmZddlmZe  d¡Gdd„deƒƒZ dS) ÚSubModelé)ÚModelComponentFactory)Ú Component)Ú SimpleBlock)Ú deprecatedzA submodel in a bilevel programc@s eZdZeddddd„ƒZdS)ra@Use of the pyomo.bilevel package is deprecated. There are known bugs in pyomo.bilevel, and we do not recommend the use of this code. Development of bilevel optimization capabilities has been shifted to the Pyomo Adversarial Optimization (PAO) library. Please contact William Hart for further details (wehart@sandia.gov).z5.6.2)ÚversioncOs€| dd¡}| dd¡}| dd¡}| dt¡tj|f|ž|Ž||_t|tƒr\|g|_n||_t|tƒrv|g|_ n||_ dS)Z ConstructorZruleNZfixedÚvarÚctype) ÚpopÚ setdefaultrrÚ__init__Ú_ruleÚ isinstancerÚ_fixedÚ_var)ÚselfÚargsÚkwargsr rr©rú s