Skip to content

Instantly share code, notes, and snippets.

@bart6114
bart6114 / OECDcareresources.csv
Created January 19, 2014 12:44
Evolution hospital beds, resources and consumption
Variable Unit Country Year Value Flags
Total hospital beds Number Australia 1960 99191
Total hospital beds Number Australia 1961 99670
Total hospital beds Number Australia 1962 100413
Total hospital beds Number Australia 1963 102109
Total hospital beds Number Australia 1964 102618
Total hospital beds Number Australia 1965 103580
Total hospital beds Number Australia 1966 103636
Total hospital beds Number Australia 1967 104262
Total hospital beds Number Australia 1968 103397
@bart6114
bart6114 / CG.py
Created January 14, 2014 07:57
Column generation with pulp-or (Python)
import random ## to generate the items
from pulp import * ## import pulp-or functions
class MasterProblem:
def __init__(self, maxValue, itemLengths, itemDemands, initialPatterns, problemname):
self.maxValue=maxValue
self.itemLengths=itemLengths