Changeset 3943


Ignore:
Timestamp:
04/03/11 15:34:47 (3 years ago)
Author:
wehart
Message:

Doc update

Location:
coopr.data.samples/trunk/coopr/data/samples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • coopr.data.samples/trunk/coopr/data/samples/TRAC.txt

    r3940 r3943  
    2020The following links provide documentation of optimization models that can be used to compare and contrast Pyomo with other optimization modeling tools. Note that the list of [wiki:Documentation/RelatedProjects related projects] summarizes Python software frameworks that provide optimization functionality that is similar to Coopr. 
    2121 
    22  * [wiki:Documentation/CooprGallery/ModelingComparisons/sched sched] 
     22 * [wiki:Documentation/CooprGallery/ModelingComparisons/sched Comparing Pyomo with Commercial Modeling Tools: A Scheduling Problem] 
    2323{{{ 
    2424#!comment 
    2525[[Include(source:coopr.data.samples/trunk/coopr/data/samples/comparisons/sched/README.txt, text/x-trac-wiki)]] 
    2626}}} 
    27  * [wiki:Documentation/CooprGallery/ModelingComparisons/cutstock cutstock] 
     27 * [wiki:Documentation/CooprGallery/ModelingComparisons/cutstock Comparing Pyomo with Python Modeling Tools: A Cut Stock Problem] 
    2828{{{ 
    2929#!comment 
  • coopr.data.samples/trunk/coopr/data/samples/update.py

    r3940 r3943  
    77import glob 
    88import os.path 
     9 
     10def get_title(fname): 
     11    INPUT = open(fname, 'r') 
     12    for line in INPUT: 
     13        sline = line.strip() 
     14        #print sline 
     15        #print sline[0:2] 
     16        #print '.%s.' % sline[-2:] 
     17        if sline[0:2] == '= ' and sline[-2:] == ' =': 
     18            tmp = sline[2:-2] 
     19            tmp.strip() 
     20            return tmp 
     21    return fname 
    922 
    1023 
     
    5063for Dir in glob.glob('comparisons/*'): 
    5164    dir = os.path.basename(Dir) 
    52     print dir 
    53     if os.path.exists('comparisons/%s/README.txt' % dir):     
    54         print >>OUTPUT, " * [wiki:Documentation/CooprGallery/ModelingComparisons/%s %s]" % (dir, dir) 
     65    fname = 'comparisons/%s/README.txt' % dir 
     66    if os.path.exists(fname):     
     67        print >>OUTPUT, " * [wiki:Documentation/CooprGallery/ModelingComparisons/%s %s]" % (dir, get_title(fname)) 
    5568        print >>OUTPUT, "{{{\n#!comment\n[[Include(source:coopr.data.samples/trunk/coopr/data/samples/comparisons/%s/README.txt, text/x-trac-wiki)]]\n}}}" % dir 
    5669 
Note: See TracChangeset for help on using the changeset viewer.