Changeset 9501


Ignore:
Timestamp:
Dec 18, 2014 3:49:22 PM (4 years ago)
Author:
jwatson
Message:

Updated chance-constrained sizes model.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyomo/trunk/examples/pysp/sizes/CCmodels/ReferenceModel.py

    r9239 r9501  
    9999model.dIndicator = Var(domain=Boolean)# indicate that all demans is met (for scenario)
    100100model.dforsize = Var(model.ProductSizes, domain=Boolean)  # indicate that demand is met for size
     101model.lambdaMult = Param(initialize=0.0, mutable=True)
    101102
    102103# The production capacity per time stage serves as a simple upper bound for "M".
     
    115116# by using the following AllDemandMet constraint
    116117# (this should be commented-out to get a chance constraint)
    117 #def AllDemandMet_rule(model):
    118 #   return model.dIndicator >= 1.0
    119 #model.AllDemandMet = Constraint(rule=AllDemandMet_rule)
     118##def AllDemandMet_rule(model):
     119##   return model.dIndicator >= 1.0
     120##model.AllDemandMet = Constraint(rule=AllDemandMet_rule)
    120121
    121122# ensure that you don't produce any units if the decision has been made to disable producion.
Note: See TracChangeset for help on using the changeset viewer.