Changeset 4348


Ignore:
Timestamp:
07/08/11 11:10:27 (3 years ago)
Author:
tekl
Message:

Cap diet1 model for PICO solver test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.data.pyomo/trunk/coopr/data/pyomo/diet1.py

    r4333 r4348  
    2323model.f_min = Param(model.FOOD, within=NonNegativeReals, default=0.0) 
    2424 
     25MAX_FOOD_SUPPLY = 20.0 # McDonald's doesn't stock infinite food 
    2526def f_max_validate (model, value, j): 
    2627    return model.f_max[j] > model.f_min[j] 
    27 model.f_max = Param(model.FOOD, validate=f_max_validate, default=infinity) 
     28model.f_max = Param(model.FOOD, validate=f_max_validate, default=MAX_FOOD_SUPPLY) 
    2829 
    2930# Unneeded vars - they're in the .dat file, so we list them here 
Note: See TracChangeset for help on using the changeset viewer.