Example #1
0
    def power_available(self, time=None, scenario=None):
        '''power availble (constrained by pmax, ramprate, ...) at time'''
        if time is not None and is_init(time):
            return self.initial_power

        var_name = 'power_available' if self.commitment_problem \
            and self.reserve_required else 'power'
        return self.get_variable(var_name, time, scenario=scenario, indexed=True)
Example #2
0
    def power_available(self, time=None, scenario=None):
        '''power availble (constrained by pmax, ramprate, ...) at time'''
        if time is not None and is_init(time):
            return self.initial_power

        var_name = 'power_available' if self.commitment_problem \
            and self.reserve_required else 'power'
        return self.get_variable(var_name, time, scenario=scenario, indexed=True)
Example #3
0
 def status(self, time=None, scenario=None):
     '''on/off status at time'''
     if self.commitment_problem or user_config.dispatch_decommit_allowed:
         if time is not None and is_init(time):
             return self.initial_status
         else:
             return self.get_variable('status', time, scenario=scenario, indexed=True)
     else:
         return 1
Example #4
0
 def power(self, time=None, scenario=None):
     '''real power output at time'''
     if time is not None and is_init(time):
         return self.initial_power
     else:
         return self.get_variable('power',
                                  time,
                                  scenario=scenario,
                                  indexed=True)
Example #5
0
 def status(self, time=None, scenario=None):
     '''on/off status at time'''
     if self.commitment_problem or user_config.dispatch_decommit_allowed:
         if time is not None and is_init(time):
             return self.initial_status
         else:
             return self.get_variable('status', time, scenario=scenario, indexed=True)
     else:
         return 1
Example #6
0
 def power(self, time=None, scenario=None):
     '''real power output at time'''
     if time is not None and is_init(time):
         return self.initial_power
     else:
         return self.get_variable('power', time, scenario=scenario, indexed=True)