Changeset 2460


Ignore:
Timestamp:
Mar 26, 2010 6:21:15 PM (9 years ago)
Author:
jwatson
Message:

Various tweaks to the lot sizing model.

Location:
coopr.pysp/trunk/examples/pysp/lotsizing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • coopr.pysp/trunk/examples/pysp/lotsizing/README.txt

    r2411 r2460  
    88Directory "testinstance": A trivial 2-stage stochastic lot-sizing instance.
    99
     10
     11
  • coopr.pysp/trunk/examples/pysp/lotsizing/models/ReferenceModel.py

    r2411 r2460  
    11#
    2 # A lot-sizing problem, taken from Haugen, Lokketangen, and Woodruff.
     2# A lot-sizing problem, taken from Haugen, Lokketangen, and Woodruff (2001).
     3# European Journal of Operational Reserach, Volume 132, pp. 116-122.
    34#
    45
     
    2324model.Stages = Set(rule=stages_set_rule)
    2425
    25 # the initial inventory.
     26# the initial inventory, at time stage 0.
    2627model.InitialInventory = Param(within=NonNegativeReals)
    2728
     
    8182   expr = None
    8283   if (t == 1):
     84      # there is no initial backlog.
    8385      expr = model.AmountProduced[t] + model.InitialInventory + model.Backlog[t] - \
    8486             model.Inventory[t] - model.Demand[t]     
Note: See TracChangeset for help on using the changeset viewer.