コード例 #1
0
ファイル: CVaRMCKP.py プロジェクト: milljm/LOGOS
 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
コード例 #2
0
ファイル: DROMCKP.py プロジェクト: milljm/LOGOS
 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