Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BESS duration limit 2 #621

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ Classify the change according to the following categories:
##### Removed
### Patches

## v3.10.3
### Minor Updates
##### Added
- Added `min_duration_hours` and `max_duration_hours` for limitting electric storage's energy capacity

## v3.10.2
### Minor Updates
##### Changed
Expand Down
4 changes: 3 additions & 1 deletion julia_src/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,9 @@ uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"

[[deps.REopt]]
deps = ["ArchGDAL", "CSV", "CoolProp", "DataFrames", "Dates", "DelimitedFiles", "HTTP", "JLD", "JSON", "JuMP", "LinDistFlow", "LinearAlgebra", "Logging", "MathOptInterface", "Requires", "Roots", "Statistics", "TestEnv"]
git-tree-sha1 = "79c315746fe8274cf047d5d8d04be1b75020065b"
git-tree-sha1 = "66c2462c54e9aa519d28ec7b34042550278397f1"
repo-rev = "develop"
repo-url = "https://github.com/NREL/REopt.jl.git"
uuid = "d36ad4e8-d74a-4f7a-ace1-eaea049febf6"
version = "0.48.1"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 4.0.7 on 2024-12-11 21:23

import django.core.validators
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('reoptjl', '0070_merge_20240925_0600'),
]

operations = [
migrations.AddField(
model_name='electricstorageinputs',
name='max_duration_hours',
field=models.FloatField(blank=True, default=100000.0, help_text='Maximum amount of time storage can discharge at its rated power capacity', validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(1000000.0)]),
),
migrations.AddField(
model_name='electricstorageinputs',
name='min_duration_hours',
field=models.FloatField(blank=True, default=0.0, help_text='Minimum amount of time storage can discharge at its rated power capacity', validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(1000000.0)]),
),
]
18 changes: 18 additions & 0 deletions reoptjl/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3445,6 +3445,24 @@ class ElectricStorageInputs(BaseModel, models.Model):
blank=True,
help_text="Rebate based on installed energy capacity"
)
min_duration_hours = models.FloatField(
default=0.0,
validators=[
MinValueValidator(0),
MaxValueValidator(1.0e9)
],
blank=True,
help_text="Minimum amount of time storage can discharge at its rated power capacity"
)
max_duration_hours = models.FloatField(
default=100000.0,
validators=[
MinValueValidator(0),
MaxValueValidator(1.0e9)
],
blank=True,
help_text="Maximum amount of time storage can discharge at its rated power capacity"
)


class ElectricStorageOutputs(BaseModel, models.Model):
Expand Down
Loading