-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
860ff67
commit 523f9aa
Showing
11 changed files
with
15 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"api_key": "uaz52dr5KTT5Qs5U72rS70hw3IYeHVEyAaDUFQvo", "Settings": {"timeout_seconds": 420, "time_steps_per_hour": 1, "optimality_tolerance": 0.001, "add_soc_incentive": true, "run_bau": true, "include_climate_in_objective": false, "include_health_in_objective": false, "off_grid_flag": false}, "Financial": {"analysis_years": 25, "elec_cost_escalation_rate_fraction": 0.006, "offtaker_discount_rate_fraction": 0.07, "offtaker_tax_rate_fraction": 0.0, "om_cost_escalation_rate_fraction": 0.001, "owner_discount_rate_fraction": 0.07, "owner_tax_rate_fraction": 0.0, "third_party_ownership": false, "value_of_lost_load_per_kwh": 0.0, "microgrid_upgrade_cost_fraction": 0.0, "offgrid_other_capital_costs": 0.0, "offgrid_other_annual_costs": 0.0, "CO2_cost_per_tonne": 51.0, "CO2_cost_escalation_rate_fraction": 0.042173, "generator_fuel_cost_escalation_rate_fraction": 0.012, "existing_boiler_fuel_cost_escalation_rate_fraction": 0.015, "boiler_fuel_cost_escalation_rate_fraction": 0.015, "chp_fuel_cost_escalation_rate_fraction": 0.015}, "Site": {"latitude": 39.91065, "longitude": -105.2348, "include_exported_elec_emissions_in_total": true, "include_exported_renewable_electricity_in_total": true}, "ElectricLoad": {"annual_kwh": 10000000.0, "doe_reference_name": "MediumOffice", "year": 2017, "loads_kw_is_net": true, "critical_loads_kw_is_net": false, "critical_load_fraction": 0.5, "operating_reserve_required_fraction": 0.0, "min_load_met_annual_fraction": 1.0}, "ElectricTariff": {"monthly_demand_rates": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "monthly_energy_rates": [0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2], "urdb_label": "", "urdb_rate_name": "", "urdb_utility_name": "", "add_monthly_rates_to_urdb_rate": false, "add_tou_energy_rates_to_urdb_rate": false}, "ElectricUtility": {"interconnection_limit_kw": 1000000000.0, "net_metering_limit_kw": 100000000.0, "emissions_region": "", "emissions_factor_CO2_decrease_fraction": 0.01174, "emissions_factor_NOx_decrease_fraction": 0.01174, "emissions_factor_SO2_decrease_fraction": 0.01174, "emissions_factor_PM25_decrease_fraction": 0.01174}, "Wind": {"size_class": "large", "min_kw": 0.0, "max_kw": 10000.0, "installed_cost_per_kw": 2386.0, "om_cost_per_kw": 35.0, "macrs_option_years": 0, "macrs_bonus_fraction": 0.0, "macrs_itc_reduction": 0.5, "federal_itc_fraction": 0.0, "state_ibi_fraction": 0.0, "state_ibi_max": 10000000000.0, "utility_ibi_fraction": 0.0, "utility_ibi_max": 10000000000.0, "federal_rebate_per_kw": 0.0, "state_rebate_per_kw": 0.0, "state_rebate_max": 10000000000.0, "utility_rebate_per_kw": 0.0, "utility_rebate_max": 10000000000.0, "production_incentive_per_kwh": 0.0, "production_incentive_max_benefit": 1000000000.0, "production_incentive_years": 1, "production_incentive_max_kw": 1000000000.0, "can_net_meter": true, "can_wholesale": true, "can_export_beyond_nem_limit": true, "can_curtail": true, "operating_reserve_required_fraction": 0.0}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
version: "2.1" | ||
|
||
services: | ||
licenseserver: | ||
container_name: xpress_license_server_dev | ||
build: | ||
context: ./xpress/licenseserver | ||
mac_address: c4:b3:01:d3:d5:eb | ||
command: xpserver | ||
expose: | ||
- 27100 | ||
|
||
julia: | ||
container_name: julia_api_dev | ||
build: | ||
context: . | ||
args: | ||
- XPRESS_LICENSE_HOST=xpress_license_server_dev | ||
command: julia --project="/opt/julia_src" http.jl | ||
ports: | ||
- "8081:8081" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
FROM ubuntu:latest | ||
# For creating base image of Julia API. Requires an untracked tar.gz file for FICO Xpress | ||
# Used in both production and local development | ||
|
||
WORKDIR /opt/reopt/solver | ||
COPY xp8.12.3_linux_x86_64.tar.gz . | ||
COPY install.sh . | ||
# For creating base image of Julia API |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
docker compose build | ||
docker compose up | ||
|
||
docker extension for viewing container status, attaching to containers | ||
|
||
Julia package changes | ||
Updating REopt.jl version within Docker container - REopt#branch versus Docker no-julia | ||
Restart julia_api | ||
|
||
Test with postman | ||
Test with django - shell into django container | ||
|
||
Debugging within VSCode Remote Containers in the django container |