inputs given

edit2
Shahla Huseynova 1 year ago
parent 5e68ecb6cf
commit 24742ca1c1

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,4 +1,4 @@
Tsource (VDG),Tsink (VDG),MW (VDG)
Tsource,Tsink,MW
75,144,1
75,144,1
75,144,1

1 Tsource (VDG) Tsource Tsink (VDG) Tsink MW (VDG) MW
2 75 144 1
3 75 144 1
4 75 144 1

File diff suppressed because it is too large Load Diff

@ -42,6 +42,7 @@ DATABASES = {
def db_engine(db_name):
db_config = DATABASES[db_name]
print(db_config)
connection_string = (
f"mssql+pyodbc://{db_config['db_user']}:{db_config['db_password']}"

@ -210,7 +210,8 @@ class Heatpump(Asset):
return func
return cop_curve
# return cop_curve
return 2.7
@lru_cache(maxsize=None)
def get_cop(self, heat_output, Tsink=None, Tsource=None):
@ -245,9 +246,11 @@ class Heatpump(Asset):
f"Chosen heat output is out of range [{self.min_th_power} - {self.max_th_power}]. "
"Heat output is being limited to the closest boundary."
)
heat_output = min(max(heat_output, self.min_th_power), self.max_th_power)
# heat_output = min(max(heat_output, self.min_th_power), self.max_th_power)
heat_output = 1
cop = self.get_cop(heat_output=heat_output, Tsink=Tsink, Tsource=Tsource)
# cop = self.get_cop(heat_output=heat_output, Tsink=Tsink, Tsource=Tsource)
cop = 2.7
return -heat_output / cop
def set_load(self, *args, **kwargs):
@ -555,12 +558,14 @@ class HotWaterStorage(Battery):
@property
def charging_power_limit(self):
max_charging_energy = self.max_chargelevel - self.chargelevel
return min(self.MWh_to_MW(max_charging_energy), -self.min_power)
# return min(self.MWh_to_MW(max_charging_energy), -self.min_power)
return 0.5
@property
def discharging_power_limit(self):
max_discharging_energy = self.chargelevel - self.min_chargelevel
return min(self.MWh_to_MW(max_discharging_energy), self.max_power)
# return min(self.MWh_to_MW(max_discharging_energy), self.max_power)
return 1
class GasBoiler(Asset):

@ -12,7 +12,7 @@ class DateTimeTZ(TypeDecorator):
return None
return value.replace(tzinfo=pytz.utc)
DATABASE_URL = 'mssql+pyodbc://rop:OptimalTransition@rop-prices-test.cyqrsg0mmelh.eu-central-1.rds.amazonaws.com:8472/test?driver=ODBC+Driver+17+for+SQL+Server'
DATABASE_URL = 'mssql+pyodbc://rop:OptimalTransition@production-rop-prices.cyqrsg0mmelh.eu-central-1.rds.amazonaws.com:1433/prices?driver=ODBC+Driver+17+for+SQL+Server'
# DATABASE_URL = 'mssql+pyodbc://rop:OptimalTransition@rop-prices-dev-20230123.cyqrsg0mmelh.eu-central-1.rds.amazonaws.com:1433/test?driver=ODBC+Driver+17+for+SQL+Server'
# DATABASE_URL = Config().SQLALCHEMY_DATABASE_URI
BASE = declarative_base()

@ -24,11 +24,11 @@ DATABASES = {
"db_port": "1433",
},
"rop_prices_test": {
"db_url": "rop-prices-test.cyqrsg0mmelh.eu-central-1.rds.amazonaws.com",
"db_name": "test",
"db_url": "production-rop-prices.cyqrsg0mmelh.eu-central-1.rds.amazonaws.com",
"db_name": "prices",
"db_user": "rop",
"db_password": "OptimalTransition",
"db_port": "8472",
"db_port": "1433",
},
"rop_assets_test": {
"db_url": "rop-assets-test.cyqrsg0mmelh.eu-central-1.rds.amazonaws.com",
@ -42,6 +42,7 @@ DATABASES = {
def db_engine(db_name):
db_config = DATABASES[db_name]
print('db_config')
connection_string = (
f"mssql+pyodbc://{db_config['db_user']}:{db_config['db_password']}"

@ -12,7 +12,7 @@ class TimeFramework:
"""
def __init__(self, start, end):
print('testets')
print('testetss')
if type(start) is str:
start = pytz.timezone("Europe/Amsterdam").localize(
datetime.strptime(start, "%Y-%m-%d")

Loading…
Cancel
Save