def __init__(self, k): Domain.__init__(self) self.charge_loss_factor = 0.9 self.soc_external_losses = -0.05 self.capacity_min = 0.1 self.capacity_max = 0.3 self.soc_min = 0.0 self.soc_max = 1.0 self.tau_min = 0.0 self.tau_max = 1.0 self.load_min = 0.0 self.load_max = 1.0 self.charge_min = 0.0 self.charge_max = 0.5 self.load_mean = 0.5 self.load_std = 0.8 self.initial_value = 0.0 # state and action variables soc = Variable(self.soc_min, self.soc_max, 0.01) # state of charge capacity = Variable(self.capacity_min, self.capacity_max, 0.1) # consumption load a_tau = Variable(self.tau_min, self.tau_max, k) # consumption load charge = Variable(self.charge_min, self.capacity_max, 0.1) # consumption load self.tariff = rt.receive_tariff() self.setStateVariables({'soc':soc, 'capacity':capacity}) # define the state variables self.setActionVariables({'charge':charge, 'tau':a_tau}) # sets the action variables self.current_state = {'capacity':self.capacity_max, 'soc':self.soc_max} # initial state self.previous_state = None self.new_capacity = self.capacity_max
def __init__(self): Domain.__init__(self) self.charge_loss_factor = 0.95 self.soc_external_losses = -0.03 self.initial_value = 10.0 self.max_soc = 0.5 self.min_soc = 0.0 self.max_load = 1.0 self.min_load = 0.0 self.max_proc = 2.0 self.min_proc = 0.0 self.max_tariff, self.base_price, self.pr_coeff, self.pr_im_coeff = 9, 0.22, 0.02, 0.4 self.imbalance = 0.0 self.load_mean = 0.0 self.load_std = 0.1
def __init__(self, k): Domain.__init__(self) self.charge_loss_factor = 0.9 self.soc_external_losses = -0.05 self.capacity_min = 0.1 self.capacity_max = 0.3 self.soc_min = 0.0 self.soc_max = 1.0 self.tau_min = 0.0 self.tau_max = 1.0 self.load_min = 0.0 self.load_max = 1.0 self.charge_min = 0.0 self.charge_max = 0.5 self.load_mean = 0.5 self.load_std = 0.8 self.initial_value = 0.0 # state and action variables soc = Variable(self.soc_min, self.soc_max, 0.01) # state of charge capacity = Variable(self.capacity_min, self.capacity_max, 0.1) # consumption load a_tau = Variable(self.tau_min, self.tau_max, k) # consumption load charge = Variable(self.charge_min, self.capacity_max, 0.1) # consumption load self.tariff = rt.receive_tariff() self.setStateVariables({ 'soc': soc, 'capacity': capacity }) # define the state variables self.setActionVariables({ 'charge': charge, 'tau': a_tau }) # sets the action variables self.current_state = { 'capacity': self.capacity_max, 'soc': self.soc_max } # initial state self.previous_state = None self.new_capacity = self.capacity_max