예제 #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