def addAdditionalSets(self, model): """ Add specific Sets for MCKP problems @ In, model, pyomo model instance, pyomo abstract model @ Out, model, pyomo model instance, pyomo abstract model """ model = MCKP.addAdditionalSets(self, model) return model
def addAdditionalSets(self, model): """ Add specific Sets for MCKP problems @ In, model, pyomo model instance, pyomo abstract model @ Out, model, pyomo model instance, pyomo abstract model """ model = MCKP.addAdditionalSets(self, model) model.sigma = pyomo.Set(ordered=True) return model