Changeset 10892
 Timestamp:
 Nov 17, 2015 1:40:10 AM (6 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

pyomo/trunk/examples/pysp/farmer/smps_model/ReferenceModel.py
r10859 r10892 19 19 # existence in future releases. 20 20 from pyomo.core.beta.dict_objects import ConstraintDict 21 from pyomo.core.base.constraint import _GeneralConstraintData as ConstraintObject 21 22 22 23 # … … 102 103 103 104 model.EnforceCattleFeedRequirement[i] = \ 104 (model.CattleFeedRequirement[i] <=105 (model.Yield[i] * model.DevotedAcreage[i]) + \106 model.QuantityPurchased[i]  \107 model.QuantitySubQuotaSold[i]  \108 model.QuantitySuperQuotaSold[i])105 ConstraintObject(model.CattleFeedRequirement[i] <= 106 (model.Yield[i] * model.DevotedAcreage[i]) + \ 107 model.QuantityPurchased[i]  \ 108 model.QuantitySubQuotaSold[i]  \ 109 model.QuantitySuperQuotaSold[i]) 109 110 # tag which variable in the above constraint has a stochastic 110 111 # coefficient … … 114 115 115 116 model.LimitAmountSold[i] = \ 116 (model.QuantitySubQuotaSold[i] + \117 model.QuantitySuperQuotaSold[i]  \118 (model.Yield[i] * model.DevotedAcreage[i]) <= 0.0)117 ConstraintObject(model.QuantitySubQuotaSold[i] + \ 118 model.QuantitySuperQuotaSold[i]  \ 119 (model.Yield[i] * model.DevotedAcreage[i]) <= 0.0) 119 120 # tag which variable in the above constraint has a stochastic 120 121 # coefficient
Note: See TracChangeset
for help on using the changeset viewer.