Example #1
0
def schedule_partial_availability():
    availability = []
    # adding a 0 as the first entry in availabiltiy so that the list index corresponds to day
    availability.append(0)
    for x in range(1, days + 1):
        if x not in (1, 2, 7, 8):
            availability.append(1)
        else:
            availability.append(0)
    s = xtot_objects.Schedule(1, days, availability)

    return s
Example #2
0
def schedule_full_availability():
    availability = []
    # adding a 0 as the first entry in availabiltiy so that the list index corresponds to day
    availability.append(0)
    for x in range(1, days+1):
        availability.append(1)
##    start_day = 1
##    end_day = days
##    s = xtot_objects.Schedule(start_day, end_day, availability)
    s = xtot_objects.Schedule(1, days, availability)

    return s
Example #3
0
def schedule_last_day_only():
    #meant to provide demand on the last day of a scenario only to test storage
    availability = []
    # adding a 0 as the first entry in availabiltiy so that the list index corresponds to day
    availability.append(0)
    for x in range(1, days):
        availability.append(0)
    for x in range(days, days+1):
        availability.append(1)
##    start_day = 1
##    end_day = days
##    s = xtot_objects.Schedule(start_day, end_day, availability)
    s = xtot_objects.Schedule(1, days, availability)

    return s