3. PyomoFundamentals

§ model.IDX= Set( initialize = [1,2,5] ) § model.IDX= Set( [1,2,5] ) Like indices, Sets can be initialized from any iterable Note: This doesn’t do what you want. This creates a 3-member indexed set, where each set is empty. Note: capitalization matters: Set= Pyomoclass set= native Python set Pyomo Fundamentals 22 ................
................