esfex 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- esfex-0.1.0/LICENSE +201 -0
- esfex-0.1.0/PKG-INFO +421 -0
- esfex-0.1.0/README.md +342 -0
- esfex-0.1.0/pyproject.toml +187 -0
- esfex-0.1.0/setup.cfg +4 -0
- esfex-0.1.0/src/esfex/__init__.py +17 -0
- esfex-0.1.0/src/esfex/analysis/__init__.py +45 -0
- esfex-0.1.0/src/esfex/analysis/ac_contingency.py +366 -0
- esfex-0.1.0/src/esfex/analysis/ac_types.py +49 -0
- esfex-0.1.0/src/esfex/analysis/contingency.py +1651 -0
- esfex-0.1.0/src/esfex/analysis/frequency.py +370 -0
- esfex-0.1.0/src/esfex/analysis/n1_assessment.py +544 -0
- esfex-0.1.0/src/esfex/analysis/native_ac_bridge.py +549 -0
- esfex-0.1.0/src/esfex/analysis/pandapower_bridge.py +533 -0
- esfex-0.1.0/src/esfex/analysis/snapshot_builder.py +207 -0
- esfex-0.1.0/src/esfex/bridge/__init__.py +18 -0
- esfex-0.1.0/src/esfex/bridge/adapters.py +3814 -0
- esfex-0.1.0/src/esfex/bridge/converters.py +2003 -0
- esfex-0.1.0/src/esfex/bridge/julia_setup.py +340 -0
- esfex-0.1.0/src/esfex/bridge/topology_audit.py +345 -0
- esfex-0.1.0/src/esfex/cli.py +792 -0
- esfex-0.1.0/src/esfex/config/__init__.py +29 -0
- esfex-0.1.0/src/esfex/config/loader.py +636 -0
- esfex-0.1.0/src/esfex/config/schema.py +1926 -0
- esfex-0.1.0/src/esfex/config/solver.py +692 -0
- esfex-0.1.0/src/esfex/icons/battery.svg +7 -0
- esfex-0.1.0/src/esfex/icons/busbar.svg +4 -0
- esfex-0.1.0/src/esfex/icons/converter.svg +5 -0
- esfex-0.1.0/src/esfex/icons/development.svg +6 -0
- esfex-0.1.0/src/esfex/icons/electrolizer.svg +6 -0
- esfex-0.1.0/src/esfex/icons/esfex.png +0 -0
- esfex-0.1.0/src/esfex/icons/esfex.svg +224 -0
- esfex-0.1.0/src/esfex/icons/frequency.svg +6 -0
- esfex-0.1.0/src/esfex/icons/fuel_entry.svg +4 -0
- esfex-0.1.0/src/esfex/icons/fuel_storage.svg +6 -0
- esfex-0.1.0/src/esfex/icons/fuel_transport.svg +5 -0
- esfex-0.1.0/src/esfex/icons/generator.svg +5 -0
- esfex-0.1.0/src/esfex/icons/icon.svg +55 -0
- esfex-0.1.0/src/esfex/icons/power_line.svg +53 -0
- esfex-0.1.0/src/esfex/icons/results.svg +37 -0
- esfex-0.1.0/src/esfex/icons/risk.svg +51 -0
- esfex-0.1.0/src/esfex/icons/run.svg +52 -0
- esfex-0.1.0/src/esfex/icons/selection.svg +15 -0
- esfex-0.1.0/src/esfex/icons/sensibility.svg +32 -0
- esfex-0.1.0/src/esfex/icons/system.svg +59 -0
- esfex-0.1.0/src/esfex/icons/trafo.svg +73 -0
- esfex-0.1.0/src/esfex/icons/validate.svg +33 -0
- esfex-0.1.0/src/esfex/io/__init__.py +32 -0
- esfex-0.1.0/src/esfex/io/demand.py +500 -0
- esfex-0.1.0/src/esfex/io/exporter.py +514 -0
- esfex-0.1.0/src/esfex/julia/Manifest.toml +941 -0
- esfex-0.1.0/src/esfex/julia/Project.toml +37 -0
- esfex-0.1.0/src/esfex/julia/build_sysimage.jl +87 -0
- esfex-0.1.0/src/esfex/julia/precompile_workload.jl +210 -0
- esfex-0.1.0/src/esfex/julia/src/ESFEX.jl +390 -0
- esfex-0.1.0/src/esfex/julia/src/acopf_benchmark.jl +328 -0
- esfex-0.1.0/src/esfex/julia/src/dcopf_benchmark.jl +147 -0
- esfex-0.1.0/src/esfex/julia/src/electrolyzer.jl +247 -0
- esfex-0.1.0/src/esfex/julia/src/master_problem.jl +4611 -0
- esfex-0.1.0/src/esfex/julia/src/mga.jl +778 -0
- esfex-0.1.0/src/esfex/julia/src/power_system.jl +4162 -0
- esfex-0.1.0/src/esfex/julia/src/primary_energy.jl +1709 -0
- esfex-0.1.0/src/esfex/julia/src/transmission_ac.jl +762 -0
- esfex-0.1.0/src/esfex/julia/src/transmission_acopf.jl +1222 -0
- esfex-0.1.0/src/esfex/julia/src/transmission_dc.jl +820 -0
- esfex-0.1.0/src/esfex/julia/src/types.jl +2780 -0
- esfex-0.1.0/src/esfex/logging_config.py +217 -0
- esfex-0.1.0/src/esfex/models/__init__.py +71 -0
- esfex-0.1.0/src/esfex/models/adoption_models.py +524 -0
- esfex-0.1.0/src/esfex/models/climate_profiles.py +672 -0
- esfex-0.1.0/src/esfex/models/country_metadata.py +399 -0
- esfex-0.1.0/src/esfex/models/demand_dataset.py +387 -0
- esfex-0.1.0/src/esfex/models/demand_ml.py +296 -0
- esfex-0.1.0/src/esfex/models/demand_projection.py +628 -0
- esfex-0.1.0/src/esfex/models/demand_real_data.py +1755 -0
- esfex-0.1.0/src/esfex/models/demand_tft.py +534 -0
- esfex-0.1.0/src/esfex/models/demand_training.py +814 -0
- esfex-0.1.0/src/esfex/models/demand_zonal_fetchers.py +690 -0
- esfex-0.1.0/src/esfex/models/download_cmip6.py +149 -0
- esfex-0.1.0/src/esfex/models/download_cmip6_subdaily.py +261 -0
- esfex-0.1.0/src/esfex/models/ecvi_gridded.py +774 -0
- esfex-0.1.0/src/esfex/models/ev.py +406 -0
- esfex-0.1.0/src/esfex/models/ev_adoption.py +35 -0
- esfex-0.1.0/src/esfex/models/ev_analysis.py +35 -0
- esfex-0.1.0/src/esfex/models/financial_analysis.py +1718 -0
- esfex-0.1.0/src/esfex/models/hazard_assessment.py +3898 -0
- esfex-0.1.0/src/esfex/models/otec_models.py +275 -0
- esfex-0.1.0/src/esfex/models/pixel_features.py +217 -0
- esfex-0.1.0/src/esfex/models/solar_pv_models.py +535 -0
- esfex-0.1.0/src/esfex/models/solar_rooftop.py +363 -0
- esfex-0.1.0/src/esfex/models/tft_inference.py +466 -0
- esfex-0.1.0/src/esfex/models/tsam.py +282 -0
- esfex-0.1.0/src/esfex/models/wind_models.py +540 -0
- esfex-0.1.0/src/esfex/models/zone_centroids.py +243 -0
- esfex-0.1.0/src/esfex/paths.py +57 -0
- esfex-0.1.0/src/esfex/plugins/__init__.py +12 -0
- esfex-0.1.0/src/esfex/plugins/availability_generator/__init__.py +33 -0
- esfex-0.1.0/src/esfex/plugins/availability_generator/cli_commands.py +148 -0
- esfex-0.1.0/src/esfex/plugins/availability_generator/generator.py +325 -0
- esfex-0.1.0/src/esfex/plugins/availability_generator/grid_builder_hook.py +197 -0
- esfex-0.1.0/src/esfex/plugins/availability_generator/gui_dialog.py +587 -0
- esfex-0.1.0/src/esfex/plugins/availability_generator/otec_cf.py +212 -0
- esfex-0.1.0/src/esfex/plugins/availability_generator/plugin.json +8 -0
- esfex-0.1.0/src/esfex/plugins/availability_generator/solar_cf.py +322 -0
- esfex-0.1.0/src/esfex/plugins/availability_generator/synthetic_cf.py +178 -0
- esfex-0.1.0/src/esfex/plugins/availability_generator/wind_cf.py +403 -0
- esfex-0.1.0/src/esfex/plugins/manager.py +924 -0
- esfex-0.1.0/src/esfex/plugins/protocol.py +218 -0
- esfex-0.1.0/src/esfex/runner.py +7026 -0
- esfex-0.1.0/src/esfex/sensitivity/__init__.py +9 -0
- esfex-0.1.0/src/esfex/sensitivity/engine.py +501 -0
- esfex-0.1.0/src/esfex/sensitivity/lp_parser.py +618 -0
- esfex-0.1.0/src/esfex/sensitivity/worker.py +67 -0
- esfex-0.1.0/src/esfex/topology/__init__.py +49 -0
- esfex-0.1.0/src/esfex/topology/network_reducer.py +651 -0
- esfex-0.1.0/src/esfex/topology/reduction_map.py +160 -0
- esfex-0.1.0/src/esfex/topology/result_expander.py +276 -0
- esfex-0.1.0/src/esfex/topology/transformations.py +651 -0
- esfex-0.1.0/src/esfex/utils/__init__.py +51 -0
- esfex-0.1.0/src/esfex/utils/helpers.py +406 -0
- esfex-0.1.0/src/esfex/utils/paths.py +55 -0
- esfex-0.1.0/src/esfex/utils/temporal.py +337 -0
- esfex-0.1.0/src/esfex/visualization/__init__.py +66 -0
- esfex-0.1.0/src/esfex/visualization/app.py +126 -0
- esfex-0.1.0/src/esfex/visualization/bridge/__init__.py +0 -0
- esfex-0.1.0/src/esfex/visualization/bridge/channel.py +31 -0
- esfex-0.1.0/src/esfex/visualization/bridge/js_bridge.py +156 -0
- esfex-0.1.0/src/esfex/visualization/bridge/sld_bridge.py +51 -0
- esfex-0.1.0/src/esfex/visualization/data/__init__.py +0 -0
- esfex-0.1.0/src/esfex/visualization/data/auto_complete.py +681 -0
- esfex-0.1.0/src/esfex/visualization/data/connectivity_rules.py +117 -0
- esfex-0.1.0/src/esfex/visualization/data/default_colors.py +51 -0
- esfex-0.1.0/src/esfex/visualization/data/geo_asset_parser.py +947 -0
- esfex-0.1.0/src/esfex/visualization/data/geojson_importer.py +220 -0
- esfex-0.1.0/src/esfex/visualization/data/gui_model.py +2778 -0
- esfex-0.1.0/src/esfex/visualization/data/serializer.py +3522 -0
- esfex-0.1.0/src/esfex/visualization/data/undo.py +54 -0
- esfex-0.1.0/src/esfex/visualization/data/validation.py +5679 -0
- esfex-0.1.0/src/esfex/visualization/i18n.py +129 -0
- esfex-0.1.0/src/esfex/visualization/main_window.py +7425 -0
- esfex-0.1.0/src/esfex/visualization/map_widget.py +941 -0
- esfex-0.1.0/src/esfex/visualization/modern_widgets.py +370 -0
- esfex-0.1.0/src/esfex/visualization/panels/__init__.py +0 -0
- esfex-0.1.0/src/esfex/visualization/panels/_dialogs.py +37 -0
- esfex-0.1.0/src/esfex/visualization/panels/acdc_converter_form.py +421 -0
- esfex-0.1.0/src/esfex/visualization/panels/analysis_panel.py +533 -0
- esfex-0.1.0/src/esfex/visualization/panels/auto_complete_dialog.py +157 -0
- esfex-0.1.0/src/esfex/visualization/panels/battery_form.py +561 -0
- esfex-0.1.0/src/esfex/visualization/panels/bus_form.py +246 -0
- esfex-0.1.0/src/esfex/visualization/panels/collapse_button.py +215 -0
- esfex-0.1.0/src/esfex/visualization/panels/dashboard_loader.py +1895 -0
- esfex-0.1.0/src/esfex/visualization/panels/dashboard_view.py +224 -0
- esfex-0.1.0/src/esfex/visualization/panels/doc_viewer.py +691 -0
- esfex-0.1.0/src/esfex/visualization/panels/electrolyzer_form.py +329 -0
- esfex-0.1.0/src/esfex/visualization/panels/element_tree.py +1320 -0
- esfex-0.1.0/src/esfex/visualization/panels/ev_form.py +298 -0
- esfex-0.1.0/src/esfex/visualization/panels/freq_converter_form.py +405 -0
- esfex-0.1.0/src/esfex/visualization/panels/fuel_entry_form.py +273 -0
- esfex-0.1.0/src/esfex/visualization/panels/fuel_form.py +187 -0
- esfex-0.1.0/src/esfex/visualization/panels/fuel_route_form.py +376 -0
- esfex-0.1.0/src/esfex/visualization/panels/fuel_source_form.py +245 -0
- esfex-0.1.0/src/esfex/visualization/panels/fuel_storage_form.py +272 -0
- esfex-0.1.0/src/esfex/visualization/panels/generator_form.py +710 -0
- esfex-0.1.0/src/esfex/visualization/panels/global_settings_form.py +1421 -0
- esfex-0.1.0/src/esfex/visualization/panels/inter_system_link_form.py +473 -0
- esfex-0.1.0/src/esfex/visualization/panels/investment_form.py +358 -0
- esfex-0.1.0/src/esfex/visualization/panels/line_form.py +424 -0
- esfex-0.1.0/src/esfex/visualization/panels/multi_edit.py +133 -0
- esfex-0.1.0/src/esfex/visualization/panels/node_form.py +897 -0
- esfex-0.1.0/src/esfex/visualization/panels/parse_geo_asset_dialog.py +380 -0
- esfex-0.1.0/src/esfex/visualization/panels/plugins_dialog.py +352 -0
- esfex-0.1.0/src/esfex/visualization/panels/preferences_dialog.py +584 -0
- esfex-0.1.0/src/esfex/visualization/panels/properties.py +214 -0
- esfex-0.1.0/src/esfex/visualization/panels/python_console.py +400 -0
- esfex-0.1.0/src/esfex/visualization/panels/results_cache.py +149 -0
- esfex-0.1.0/src/esfex/visualization/panels/results_charts.py +10457 -0
- esfex-0.1.0/src/esfex/visualization/panels/results_charts_bokeh.py +1552 -0
- esfex-0.1.0/src/esfex/visualization/panels/results_charts_plotly.py +1690 -0
- esfex-0.1.0/src/esfex/visualization/panels/results_dialog.py +1588 -0
- esfex-0.1.0/src/esfex/visualization/panels/results_panel.py +2039 -0
- esfex-0.1.0/src/esfex/visualization/panels/rooftop_solar_form.py +273 -0
- esfex-0.1.0/src/esfex/visualization/panels/script_editor.py +469 -0
- esfex-0.1.0/src/esfex/visualization/panels/sensitivity_dialog.py +477 -0
- esfex-0.1.0/src/esfex/visualization/panels/simulation_dialog.py +204 -0
- esfex-0.1.0/src/esfex/visualization/panels/stochastic_form.py +475 -0
- esfex-0.1.0/src/esfex/visualization/panels/system_form.py +323 -0
- esfex-0.1.0/src/esfex/visualization/panels/technology_form.py +333 -0
- esfex-0.1.0/src/esfex/visualization/panels/toolbar.py +482 -0
- esfex-0.1.0/src/esfex/visualization/panels/transformer_form.py +337 -0
- esfex-0.1.0/src/esfex/visualization/panels/validation_dialog.py +819 -0
- esfex-0.1.0/src/esfex/visualization/panels/visual_style_widget.py +210 -0
- esfex-0.1.0/src/esfex/visualization/panels/word_wrap_header.py +102 -0
- esfex-0.1.0/src/esfex/visualization/panels/zone_form.py +439 -0
- esfex-0.1.0/src/esfex/visualization/preferences.py +237 -0
- esfex-0.1.0/src/esfex/visualization/pty_runner.py +248 -0
- esfex-0.1.0/src/esfex/visualization/resources/battery_heatmap.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/battery_heatmap.js +259 -0
- esfex-0.1.0/src/esfex/visualization/resources/battery_operation.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/battery_operation.js +153 -0
- esfex-0.1.0/src/esfex/visualization/resources/carbon_penalty.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/carbon_penalty.js +186 -0
- esfex-0.1.0/src/esfex/visualization/resources/cash_flow.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/cash_flow.js +306 -0
- esfex-0.1.0/src/esfex/visualization/resources/chart_theme.js +153 -0
- esfex-0.1.0/src/esfex/visualization/resources/custom_chart.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/custom_chart.js +201 -0
- esfex-0.1.0/src/esfex/visualization/resources/d3.v7.min.js +2 -0
- esfex-0.1.0/src/esfex/visualization/resources/dashboard.html +270 -0
- esfex-0.1.0/src/esfex/visualization/resources/dashboard.js +759 -0
- esfex-0.1.0/src/esfex/visualization/resources/electricity_cost.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/electricity_cost.js +305 -0
- esfex-0.1.0/src/esfex/visualization/resources/elk.bundled.js +6696 -0
- esfex-0.1.0/src/esfex/visualization/resources/flex_reliability.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/flex_reliability.js +305 -0
- esfex-0.1.0/src/esfex/visualization/resources/font_scale.js +139 -0
- esfex-0.1.0/src/esfex/visualization/resources/fuel_supply.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/fuel_supply.js +190 -0
- esfex-0.1.0/src/esfex/visualization/resources/images/layers-2x.png +0 -0
- esfex-0.1.0/src/esfex/visualization/resources/images/layers.png +0 -0
- esfex-0.1.0/src/esfex/visualization/resources/images/marker-icon-2x.png +0 -0
- esfex-0.1.0/src/esfex/visualization/resources/images/marker-icon.png +0 -0
- esfex-0.1.0/src/esfex/visualization/resources/images/marker-shadow.png +0 -0
- esfex-0.1.0/src/esfex/visualization/resources/images/spritesheet-2x.png +0 -0
- esfex-0.1.0/src/esfex/visualization/resources/images/spritesheet.png +0 -0
- esfex-0.1.0/src/esfex/visualization/resources/images/spritesheet.svg +156 -0
- esfex-0.1.0/src/esfex/visualization/resources/inter_node_flows.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/inter_node_flows.js +197 -0
- esfex-0.1.0/src/esfex/visualization/resources/leaflet.css +661 -0
- esfex-0.1.0/src/esfex/visualization/resources/leaflet.draw.css +10 -0
- esfex-0.1.0/src/esfex/visualization/resources/leaflet.draw.js +10 -0
- esfex-0.1.0/src/esfex/visualization/resources/leaflet.html +96 -0
- esfex-0.1.0/src/esfex/visualization/resources/leaflet.js +6 -0
- esfex-0.1.0/src/esfex/visualization/resources/map_controller.js +3360 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_annotated_dendrogram.html +18 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_annotated_dendrogram.js +215 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_composition.html +18 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_composition.js +109 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_decision_factors.html +18 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_decision_factors.js +260 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_parcoords.html +25 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_parcoords.js +61 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_pathway.html +25 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_pathway.js +91 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_projection.html +18 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_projection.js +192 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_robustness_frontier.html +18 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_robustness_frontier.js +269 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_similarity.html +18 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_similarity.js +212 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_spatial.html +25 -0
- esfex-0.1.0/src/esfex/visualization/resources/mga_spatial.js +101 -0
- esfex-0.1.0/src/esfex/visualization/resources/mix_chart.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/mix_chart.js +331 -0
- esfex-0.1.0/src/esfex/visualization/resources/net_load_heatmap.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/net_load_heatmap.js +192 -0
- esfex-0.1.0/src/esfex/visualization/resources/plotly.min.js +8 -0
- esfex-0.1.0/src/esfex/visualization/resources/price_duration.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/price_duration.js +169 -0
- esfex-0.1.0/src/esfex/visualization/resources/revenue_profitability.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/revenue_profitability.js +216 -0
- esfex-0.1.0/src/esfex/visualization/resources/sankey.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/sankey.js +68 -0
- esfex-0.1.0/src/esfex/visualization/resources/sld.html +87 -0
- esfex-0.1.0/src/esfex/visualization/resources/sld_controller.js +3042 -0
- esfex-0.1.0/src/esfex/visualization/resources/system_metrics.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/system_metrics.js +213 -0
- esfex-0.1.0/src/esfex/visualization/resources/tech_performance.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/tech_performance.js +270 -0
- esfex-0.1.0/src/esfex/visualization/resources/terminal.html +184 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_commitment_heatmap.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_commitment_heatmap.js +111 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_dispatch_stack.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_dispatch_stack.js +188 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_hourly_price.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_hourly_price.js +124 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_lmp_by_node.html +21 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_lmp_by_node.js +114 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_loadshed_curtailment.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_loadshed_curtailment.js +169 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_marginal_tech.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_marginal_tech.js +160 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_netload_duration.html +21 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_netload_duration.js +109 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_price_duration.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_price_duration.js +114 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_ramp_distribution.html +21 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_ramp_distribution.js +102 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_storage_soc.html +31 -0
- esfex-0.1.0/src/esfex/visualization/resources/uc_storage_soc.js +113 -0
- esfex-0.1.0/src/esfex/visualization/resources/world_countries.geojson +1 -0
- esfex-0.1.0/src/esfex/visualization/resources/xterm-addon-fit.js +2 -0
- esfex-0.1.0/src/esfex/visualization/resources/xterm.css +285 -0
- esfex-0.1.0/src/esfex/visualization/resources/xterm.js +2 -0
- esfex-0.1.0/src/esfex/visualization/run_output_view.py +242 -0
- esfex-0.1.0/src/esfex/visualization/scripting_api.py +1062 -0
- esfex-0.1.0/src/esfex/visualization/sld/__init__.py +1 -0
- esfex-0.1.0/src/esfex/visualization/sld/graph_builder.py +700 -0
- esfex-0.1.0/src/esfex/visualization/sld/sld_results_loader.py +490 -0
- esfex-0.1.0/src/esfex/visualization/sld/voltage_colors.py +61 -0
- esfex-0.1.0/src/esfex/visualization/sld_widget.py +107 -0
- esfex-0.1.0/src/esfex/visualization/splash.py +160 -0
- esfex-0.1.0/src/esfex/visualization/theme.py +1855 -0
- esfex-0.1.0/src/esfex/visualization/translations/__init__.py +0 -0
- esfex-0.1.0/src/esfex/visualization/translations/en.json +2389 -0
- esfex-0.1.0/src/esfex/visualization/translations/es.json +2350 -0
- esfex-0.1.0/src/esfex/visualization/translations/ja.json +2396 -0
- esfex-0.1.0/src/esfex/visualization/workflows/__init__.py +1 -0
- esfex-0.1.0/src/esfex/visualization/workflows/_qt_adapters.py +101 -0
- esfex-0.1.0/src/esfex/visualization/workflows/_wizard_utils.py +83 -0
- esfex-0.1.0/src/esfex/visualization/workflows/data_fetchers.py +501 -0
- esfex-0.1.0/src/esfex/visualization/workflows/demand_analysis.py +417 -0
- esfex-0.1.0/src/esfex/visualization/workflows/demand_distribution_steps.py +986 -0
- esfex-0.1.0/src/esfex/visualization/workflows/demand_distribution_wizard.py +260 -0
- esfex-0.1.0/src/esfex/visualization/workflows/demand_estimation_analysis.py +1776 -0
- esfex-0.1.0/src/esfex/visualization/workflows/demand_estimation_fetchers.py +1090 -0
- esfex-0.1.0/src/esfex/visualization/workflows/demand_estimation_steps.py +3010 -0
- esfex-0.1.0/src/esfex/visualization/workflows/demand_estimation_wizard.py +325 -0
- esfex-0.1.0/src/esfex/visualization/workflows/ev_advanced_steps.py +1159 -0
- esfex-0.1.0/src/esfex/visualization/workflows/ev_fetchers.py +262 -0
- esfex-0.1.0/src/esfex/visualization/workflows/ev_steps.py +1075 -0
- esfex-0.1.0/src/esfex/visualization/workflows/ev_wizard.py +333 -0
- esfex-0.1.0/src/esfex/visualization/workflows/financial_charts.py +653 -0
- esfex-0.1.0/src/esfex/visualization/workflows/financial_steps.py +1035 -0
- esfex-0.1.0/src/esfex/visualization/workflows/financial_wizard.py +344 -0
- esfex-0.1.0/src/esfex/visualization/workflows/grid_mapping_builder.py +1037 -0
- esfex-0.1.0/src/esfex/visualization/workflows/grid_mapping_clustering.py +544 -0
- esfex-0.1.0/src/esfex/visualization/workflows/grid_mapping_fetchers.py +1839 -0
- esfex-0.1.0/src/esfex/visualization/workflows/grid_mapping_inference.py +279 -0
- esfex-0.1.0/src/esfex/visualization/workflows/grid_mapping_quality.py +1069 -0
- esfex-0.1.0/src/esfex/visualization/workflows/grid_mapping_steps.py +4986 -0
- esfex-0.1.0/src/esfex/visualization/workflows/grid_mapping_wizard.py +300 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/__init__.py +23 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/cycle_panel.py +285 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/cycles.py +128 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/economics.py +138 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/economics_panel.py +262 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/engineering.py +186 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/operation.py +100 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/operation_panel.py +372 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/optimization_panel.py +396 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/optimize.py +183 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/project.py +282 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/regional.py +122 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/regional_panel.py +295 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/resource.py +139 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/resource_panel.py +329 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/uq.py +119 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/uq_panel.py +343 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/window.py +337 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/workers.py +210 -0
- esfex-0.1.0/src/esfex/visualization/workflows/otec_studio/zones.py +170 -0
- esfex-0.1.0/src/esfex/visualization/workflows/risk_charts.py +949 -0
- esfex-0.1.0/src/esfex/visualization/workflows/risk_panels.py +2971 -0
- esfex-0.1.0/src/esfex/visualization/workflows/risk_wizard.py +542 -0
- esfex-0.1.0/src/esfex/visualization/workflows/solar_adoption_steps.py +1302 -0
- esfex-0.1.0/src/esfex/visualization/workflows/solar_analysis.py +337 -0
- esfex-0.1.0/src/esfex/visualization/workflows/solar_macro_fetchers.py +731 -0
- esfex-0.1.0/src/esfex/visualization/workflows/solar_pv_advanced_steps.py +1435 -0
- esfex-0.1.0/src/esfex/visualization/workflows/solar_pv_analysis.py +1385 -0
- esfex-0.1.0/src/esfex/visualization/workflows/solar_pv_steps.py +1382 -0
- esfex-0.1.0/src/esfex/visualization/workflows/solar_pv_wizard.py +409 -0
- esfex-0.1.0/src/esfex/visualization/workflows/solar_rooftop_steps.py +798 -0
- esfex-0.1.0/src/esfex/visualization/workflows/solar_rooftop_wizard.py +397 -0
- esfex-0.1.0/src/esfex/visualization/workflows/wind_advanced_steps.py +1425 -0
- esfex-0.1.0/src/esfex/visualization/workflows/wind_analysis.py +1555 -0
- esfex-0.1.0/src/esfex/visualization/workflows/wind_steps.py +1320 -0
- esfex-0.1.0/src/esfex/visualization/workflows/wind_wizard.py +396 -0
- esfex-0.1.0/src/esfex/zones.py +532 -0
- esfex-0.1.0/src/esfex.egg-info/PKG-INFO +421 -0
- esfex-0.1.0/src/esfex.egg-info/SOURCES.txt +424 -0
- esfex-0.1.0/src/esfex.egg-info/dependency_links.txt +1 -0
- esfex-0.1.0/src/esfex.egg-info/entry_points.txt +2 -0
- esfex-0.1.0/src/esfex.egg-info/requires.txt +64 -0
- esfex-0.1.0/src/esfex.egg-info/top_level.txt +1 -0
- esfex-0.1.0/tests/test_adapters_helpers.py +902 -0
- esfex-0.1.0/tests/test_auto_complete.py +1950 -0
- esfex-0.1.0/tests/test_availability_generator.py +493 -0
- esfex-0.1.0/tests/test_cli.py +545 -0
- esfex-0.1.0/tests/test_connectivity_rules.py +266 -0
- esfex-0.1.0/tests/test_contingency.py +651 -0
- esfex-0.1.0/tests/test_converters.py +2438 -0
- esfex-0.1.0/tests/test_demand.py +594 -0
- esfex-0.1.0/tests/test_demand_analysis.py +633 -0
- esfex-0.1.0/tests/test_demand_projection_cov.py +559 -0
- esfex-0.1.0/tests/test_electrolyzer_primary_energy.py +587 -0
- esfex-0.1.0/tests/test_ev.py +570 -0
- esfex-0.1.0/tests/test_ev_adoption.py +480 -0
- esfex-0.1.0/tests/test_ev_analysis.py +486 -0
- esfex-0.1.0/tests/test_ev_cov.py +308 -0
- esfex-0.1.0/tests/test_exporter.py +493 -0
- esfex-0.1.0/tests/test_financial_analysis.py +1526 -0
- esfex-0.1.0/tests/test_financial_analysis_cov.py +668 -0
- esfex-0.1.0/tests/test_frequency.py +291 -0
- esfex-0.1.0/tests/test_geo_asset_parser.py +407 -0
- esfex-0.1.0/tests/test_graph_builder_cov.py +624 -0
- esfex-0.1.0/tests/test_gui_model.py +1391 -0
- esfex-0.1.0/tests/test_hazard_assessment_cov.py +890 -0
- esfex-0.1.0/tests/test_helpers.py +702 -0
- esfex-0.1.0/tests/test_i18n.py +297 -0
- esfex-0.1.0/tests/test_julia_setup.py +622 -0
- esfex-0.1.0/tests/test_loader.py +605 -0
- esfex-0.1.0/tests/test_lp_parser.py +1305 -0
- esfex-0.1.0/tests/test_manager_cov.py +898 -0
- esfex-0.1.0/tests/test_master_problem.py +476 -0
- esfex-0.1.0/tests/test_network_reduction.py +620 -0
- esfex-0.1.0/tests/test_otec_studio.py +690 -0
- esfex-0.1.0/tests/test_pandapower_bridge.py +623 -0
- esfex-0.1.0/tests/test_plugins.py +1113 -0
- esfex-0.1.0/tests/test_power_system_parity.py +485 -0
- esfex-0.1.0/tests/test_preferences.py +309 -0
- esfex-0.1.0/tests/test_runner.py +652 -0
- esfex-0.1.0/tests/test_schema.py +1787 -0
- esfex-0.1.0/tests/test_sensitivity_engine.py +1501 -0
- esfex-0.1.0/tests/test_serializer.py +2216 -0
- esfex-0.1.0/tests/test_serializer_cov.py +742 -0
- esfex-0.1.0/tests/test_sld_results_loader.py +332 -0
- esfex-0.1.0/tests/test_snapshot_builder.py +282 -0
- esfex-0.1.0/tests/test_solar_rooftop.py +1108 -0
- esfex-0.1.0/tests/test_solar_rooftop_cov.py +370 -0
- esfex-0.1.0/tests/test_solver.py +570 -0
- esfex-0.1.0/tests/test_temporal.py +521 -0
- esfex-0.1.0/tests/test_undo.py +341 -0
- esfex-0.1.0/tests/test_validation.py +2525 -0
- esfex-0.1.0/tests/test_validation_cov.py +863 -0
- esfex-0.1.0/tests/test_zones.py +1553 -0
- esfex-0.1.0/tests/test_zones_cov.py +653 -0
esfex-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may accept and charge a
|
|
167
|
+
fee for acceptance of support, warranty, indemnity, or other liability
|
|
168
|
+
obligations and/or rights consistent with this License. However, in
|
|
169
|
+
accepting such obligations, You may act only on Your own behalf and on
|
|
170
|
+
Your sole responsibility, not on behalf of any other Contributor, and
|
|
171
|
+
only if You agree to indemnify, defend, and hold each Contributor
|
|
172
|
+
harmless for any liability incurred by, or claims asserted against,
|
|
173
|
+
such Contributor by reason of your accepting any such warranty or
|
|
174
|
+
additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025-2026 Manuel Soto Calvo
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
200
|
+
implied. See the License for the specific language governing
|
|
201
|
+
permissions and limitations under the License.
|
esfex-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: esfex
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: ESFEX: Energy System FlEXibility — Power System Optimization
|
|
5
|
+
Author-email: Manuel <manuel@example.com>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/msotocalvo/ESFEX
|
|
8
|
+
Project-URL: Documentation, https://github.com/msotocalvo/ESFEX#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/msotocalvo/ESFEX
|
|
10
|
+
Keywords: power systems,optimization,renewable energy,flexibility,JuMP
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: numpy>=1.24.0
|
|
24
|
+
Requires-Dist: pandas>=2.0.0
|
|
25
|
+
Requires-Dist: h5py>=3.8.0
|
|
26
|
+
Requires-Dist: pydantic>=2.0.0
|
|
27
|
+
Requires-Dist: pyyaml>=6.0
|
|
28
|
+
Requires-Dist: typer>=0.9.0
|
|
29
|
+
Requires-Dist: juliacall>=0.9.14
|
|
30
|
+
Requires-Dist: networkx>=3.0
|
|
31
|
+
Requires-Dist: openpyxl>=3.1.0
|
|
32
|
+
Requires-Dist: rich>=13.0.0
|
|
33
|
+
Requires-Dist: psutil>=5.9.0
|
|
34
|
+
Requires-Dist: scipy>=1.10.0
|
|
35
|
+
Requires-Dist: windrex>=0.1.0
|
|
36
|
+
Requires-Dist: solarex>=0.1.0
|
|
37
|
+
Requires-Dist: rooftex>=0.1.0
|
|
38
|
+
Requires-Dist: evrex>=0.1.0
|
|
39
|
+
Requires-Dist: PySide6>=6.5.0
|
|
40
|
+
Requires-Dist: superqt>=0.6.0
|
|
41
|
+
Requires-Dist: markdown>=3.4
|
|
42
|
+
Requires-Dist: ptyprocess>=0.7.0; sys_platform != "win32"
|
|
43
|
+
Provides-Extra: dev
|
|
44
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
45
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
46
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
47
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
48
|
+
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
49
|
+
Provides-Extra: viz
|
|
50
|
+
Requires-Dist: matplotlib>=3.7.0; extra == "viz"
|
|
51
|
+
Requires-Dist: plotly>=5.14.0; extra == "viz"
|
|
52
|
+
Requires-Dist: kaleido>=0.2.1; extra == "viz"
|
|
53
|
+
Provides-Extra: sensitivity
|
|
54
|
+
Requires-Dist: SALib>=1.4.7; extra == "sensitivity"
|
|
55
|
+
Requires-Dist: matplotlib>=3.7.0; extra == "sensitivity"
|
|
56
|
+
Provides-Extra: benchmark
|
|
57
|
+
Requires-Dist: pypsa>=0.28.0; extra == "benchmark"
|
|
58
|
+
Requires-Dist: pandapower>=2.14.0; extra == "benchmark"
|
|
59
|
+
Requires-Dist: pypower>=5.1.0; extra == "benchmark"
|
|
60
|
+
Requires-Dist: matpower>=7.1.0; extra == "benchmark"
|
|
61
|
+
Provides-Extra: workflows
|
|
62
|
+
Requires-Dist: pvlib>=0.11.0; extra == "workflows"
|
|
63
|
+
Requires-Dist: geopandas>=0.14.0; extra == "workflows"
|
|
64
|
+
Requires-Dist: duckdb>=1.0.0; extra == "workflows"
|
|
65
|
+
Requires-Dist: shapely>=2.0.0; extra == "workflows"
|
|
66
|
+
Requires-Dist: requests>=2.28.0; extra == "workflows"
|
|
67
|
+
Requires-Dist: overpy>=0.7; extra == "workflows"
|
|
68
|
+
Requires-Dist: otex>=0.1.0; extra == "workflows"
|
|
69
|
+
Requires-Dist: scikit-learn>=1.3.0; extra == "workflows"
|
|
70
|
+
Requires-Dist: atlite>=0.2.11; extra == "workflows"
|
|
71
|
+
Requires-Dist: rasterio>=1.3.0; extra == "workflows"
|
|
72
|
+
Provides-Extra: ml
|
|
73
|
+
Requires-Dist: xgboost>=2.0.0; extra == "ml"
|
|
74
|
+
Provides-Extra: dl
|
|
75
|
+
Requires-Dist: torch>=2.0.0; extra == "dl"
|
|
76
|
+
Requires-Dist: pytorch-lightning>=2.0.0; extra == "dl"
|
|
77
|
+
Requires-Dist: pytorch-forecasting>=1.0.0; extra == "dl"
|
|
78
|
+
Dynamic: license-file
|
|
79
|
+
|
|
80
|
+
<p align="center">
|
|
81
|
+
<img src="docs/assets/esfex.png" alt="ESFEX Logo" width="460"/>
|
|
82
|
+
</p>
|
|
83
|
+
|
|
84
|
+
<h1 align="center">ESFEX — Energy System Flexibility Studio</h1>
|
|
85
|
+
|
|
86
|
+
<p align="center">
|
|
87
|
+
<strong>A framework for power system capacity expansion and operational dispatch under high renewable penetration</strong>
|
|
88
|
+
</p>
|
|
89
|
+
|
|
90
|
+
<p align="center">
|
|
91
|
+
<a href="https://github.com/msotocalvo/ESFEX/actions/workflows/ci.yml">
|
|
92
|
+
<img src="https://github.com/msotocalvo/ESFEX/actions/workflows/ci.yml/badge.svg" alt="CI">
|
|
93
|
+
</a>
|
|
94
|
+
<a href="https://codecov.io/gh/msotocalvo/ESFEX">
|
|
95
|
+
<img src="https://codecov.io/gh/msotocalvo/ESFEX/branch/main/graph/badge.svg" alt="codecov">
|
|
96
|
+
</a>
|
|
97
|
+
<a href="https://esfex.readthedocs.io/">
|
|
98
|
+
<img src="https://readthedocs.org/projects/esfex/badge/?version=latest" alt="Documentation">
|
|
99
|
+
</a>
|
|
100
|
+
<a href="https://doi.org/10.5281/zenodo.20504838">
|
|
101
|
+
<img src="https://zenodo.org/badge/1256767759.svg" alt="DOI">
|
|
102
|
+
</a>
|
|
103
|
+
<a href="https://www.python.org/downloads/">
|
|
104
|
+
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue.svg" alt="Python">
|
|
105
|
+
</a>
|
|
106
|
+
<a href="https://julialang.org/">
|
|
107
|
+
<img src="https://img.shields.io/badge/Julia-1.9%2B-9558B2.svg" alt="Julia">
|
|
108
|
+
</a>
|
|
109
|
+
<a href="https://jump.dev/">
|
|
110
|
+
<img src="https://img.shields.io/badge/optimization-JuMP-2C8C3C.svg" alt="JuMP">
|
|
111
|
+
</a>
|
|
112
|
+
<a href="LICENSE">
|
|
113
|
+
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License">
|
|
114
|
+
</a>
|
|
115
|
+
<a href="https://api.reuse.software/info/github.com/msotocalvo/ESFEX">
|
|
116
|
+
<img src="https://api.reuse.software/badge/github.com/msotocalvo/ESFEX" alt="REUSE status">
|
|
117
|
+
</a>
|
|
118
|
+
<a href="https://github.com/astral-sh/ruff">
|
|
119
|
+
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
|
|
120
|
+
</a>
|
|
121
|
+
<a href="https://pepy.tech/project/esfex">
|
|
122
|
+
<img src="https://static.pepy.tech/badge/esfex" alt="Downloads">
|
|
123
|
+
</a>
|
|
124
|
+
<img src="https://img.shields.io/badge/status-alpha-orange.svg" alt="Status">
|
|
125
|
+
</p>
|
|
126
|
+
|
|
127
|
+
<p align="center">
|
|
128
|
+
<a href="#overview">Overview</a> •
|
|
129
|
+
<a href="#key-features">Features</a> •
|
|
130
|
+
<a href="#installation">Installation</a> •
|
|
131
|
+
<a href="#quick-start">Quick Start</a> •
|
|
132
|
+
<a href="#the-studio">Studio</a> •
|
|
133
|
+
<a href="#documentation">Documentation</a> •
|
|
134
|
+
<a href="#citation">Citation</a>
|
|
135
|
+
</p>
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Overview
|
|
140
|
+
|
|
141
|
+
**ESFEX** (Energy System Flexibility) is an open-source power system planning framework that co-optimizes generation, storage, and transmission investment over multi-decade horizons while explicitly capturing the operational flexibility constraints that arise in systems with high shares of variable renewable energy.
|
|
142
|
+
|
|
143
|
+
It couples a strategic **capacity expansion planner** (Master Problem) with a detailed **operational dispatch engine** through a two-stage decomposition — bridging the gap between long-term investment planning tools and short-term production cost models. Investment decisions are validated operationally (ramp rates, minimum stable generation, storage cycling, demand response, sector coupling) *before* being accepted, so the plan that ESFEX produces is one the system can actually operate.
|
|
144
|
+
|
|
145
|
+
ESFEX is implemented as a hybrid system: **Python** handles configuration, data management, orchestration, the GIS Studio, and post-processing; **Julia** (via [JuMP](https://jump.dev/)) handles the mathematical optimization, leveraging its compiled performance for large-scale LP and MIP problems. The two communicate through [`juliacall`](https://github.com/JuliaPy/PythonCall.jl). The architecture is modular: seven interlinked optimization models can be selectively enabled depending on the study scope.
|
|
146
|
+
|
|
147
|
+
### Target Applications
|
|
148
|
+
|
|
149
|
+
- **Island power systems and isolated grids** transitioning from diesel dependence to high RE penetration
|
|
150
|
+
- **Regional transmission planning** with DC and AC power flows, N-1 security, and transmission investment
|
|
151
|
+
- **Sector coupling studies** combining electricity, hydrogen (electrolyzer), fuel logistics (primary energy), and electric vehicles (V2G)
|
|
152
|
+
- **Policy analysis** evaluating RE targets, CO₂ budgets, storage mandates, and technology cost trajectories
|
|
153
|
+
- **Near-optimal space exploration** via MGA (Hop-Skip-Jump) or SPORES (per-objective sweep) for robust investment strategies under uncertainty
|
|
154
|
+
- **Academic research** in energy systems optimization, flexibility quantification, and capacity expansion methodology
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Key Features
|
|
159
|
+
|
|
160
|
+
### Optimization Architecture
|
|
161
|
+
|
|
162
|
+
- **Two-stage decomposition** — Master Problem (all years simultaneously, representative days/periods) + Operational Dispatch (year-by-year, full chronological year). Investments are operationally validated before acceptance.
|
|
163
|
+
- **Rolling horizon dispatch** — Configurable overlapping time windows with boundary-condition propagation (battery SOC, generator status) and automatic result stitching.
|
|
164
|
+
- **Two simulation modes** — `development` (LP, continuous commitment + investment), `unit_commitment` (MIP, binary startup/shutdown with min up/down times).
|
|
165
|
+
- **Unit decommissioning planning** — Age-based retirement plus NPV-based retirement for flexible phase-out / retention of the unit inventory.
|
|
166
|
+
|
|
167
|
+
### Power System Modeling
|
|
168
|
+
|
|
169
|
+
- **DC power flow** — KCL/KVL constraints with a cycle-based formulation for meshed networks, voltage angle variables, piecewise-linear losses, and transmission investment.
|
|
170
|
+
- **AC optimal power flow** — Four selectable ACOPF formulations: SOC relaxation (convex W-space), QC relaxation (McCormick envelopes), Polar NLP (exact V-θ), and Rectangular NLP (exact e-f), solved with Ipopt. Models voltage magnitudes, reactive balance, apparent-power limits (`P² + Q² ≤ S²`).
|
|
171
|
+
- **AC power flow verification** — Post-DC Newton-Raphson AC power flow (native Julia solver + pandapower bridge for IEC 60909 short-circuit analysis) to validate voltage profiles and detect violations the DC approximation misses.
|
|
172
|
+
- **N-1 security** — Automatic critical-contingency identification with post-contingency flow redistribution for generation and transmission, in both DC and AC.
|
|
173
|
+
- **Frequency stability** — Post-contingency ROCOF, frequency nadir, and steady-state frequency via a center-of-inertia (COI) model, with N-1 screening of online generators.
|
|
174
|
+
- **Battery storage** — Cyclic SOC, charge/discharge efficiency, calendar + throughput degradation, power/energy co-optimization with duration bounds.
|
|
175
|
+
- **Flexible demand** — Multi-sector decomposition with criticality-weighted load shedding and intra-day shifting of deferrable loads.
|
|
176
|
+
|
|
177
|
+
### Sector Coupling
|
|
178
|
+
|
|
179
|
+
ESFEX treats sector coupling as a first-class architectural principle. Any energy end-use — electrical, thermal, chemical, or kinetic — can be represented as a demand with its own temporal profile, criticality, and coupling constraints, so arbitrary power-to-X / X-to-power pathways can be modeled without touching the core formulation.
|
|
180
|
+
|
|
181
|
+
- **Electrolyzer (P2H₂)** — Power-to-hydrogen with capacity investment, load-dependent efficiency, ramp constraints, and coupling to both the electrical balance and hydrogen demand.
|
|
182
|
+
- **Primary energy supply chain** — Multi-fuel import nodes, storage tanks, and transport links (pipelines/tankers) coupled to generator fuel consumption.
|
|
183
|
+
- **Electric vehicles** — Multi-method fleet adoption, multi-category vehicles (passenger, bus, truck…), time-of-day charging, and bidirectional V2G optimization.
|
|
184
|
+
- **Rooftop solar** — Stochastic adoption with behind-the-meter generation modeled as negative demand.
|
|
185
|
+
- **Flexible sectoral demand** — Sector-specific criticality and temporal flexibility for demand-side participation in system balancing.
|
|
186
|
+
|
|
187
|
+
### Planning and Analysis
|
|
188
|
+
|
|
189
|
+
- **MGA and SPORES** — Near-optimal alternatives under a shared cost-slack envelope: classical Hop-Skip-Jump diversity (MGA) and per-objective sweeps (SPORES: minimum build, technology equity, regional equity, evolutionary distance).
|
|
190
|
+
- **Stochastic programming** — Scenario-based expansion with probability-weighted costs and shared investment variables (EVPI/VSS analysis).
|
|
191
|
+
- **Sobol sensitivity analysis** — Global sensitivity indices quantifying how input uncertainty (costs, demand growth, availability) propagates to investment decisions and system cost.
|
|
192
|
+
- **Progressive RE targets** — Linear interpolation from initial to target RE penetration with annual increment bounds and constraint-based curtailment limits.
|
|
193
|
+
|
|
194
|
+
### Tools and Interface
|
|
195
|
+
|
|
196
|
+
- **GIS-based Studio** — A PySide6 + Leaflet.js map for visually building power systems: place nodes, generators, batteries, and transmission lines with polyline routing. Includes resource-assessment wizards for rooftop solar, utility-scale PV, wind, and OTEC availability profiles.
|
|
197
|
+
- **Plugin system** — Directory-based plugins with simulation lifecycle hooks, GUI integration, and Julia overlay modules for custom constraints.
|
|
198
|
+
- **CLI** — `run`, `validate`, `export`, `studio`, `precompile`, `info`, and `plugin` commands with Rich formatting and progress tracking.
|
|
199
|
+
- **HDF5 output** — Structured results with derived metrics (LCOE, VALCOE, capacity factor) exportable to CSV, Excel, and JSON.
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Feature Comparison
|
|
204
|
+
|
|
205
|
+
| Feature | ESFEX | PyPSA | GenX | Calliope | TIMES | OSeMOSYS |
|
|
206
|
+
|---------|:-----:|:-----:|:----:|:--------:|:-----:|:--------:|
|
|
207
|
+
| Capacity expansion | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
208
|
+
| Operational dispatch (hourly) | ✅ | ✅ | ✅ | ✅ | Time slices | Time slices |
|
|
209
|
+
| Two-stage decomposition | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
|
|
210
|
+
| Rolling horizon dispatch | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ |
|
|
211
|
+
| DC power flow (KCL/KVL) | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
|
|
212
|
+
| AC optimal power flow | ✅ | ⚠️* | ❌ | ❌ | ❌ | ❌ |
|
|
213
|
+
| Battery cyclic SOC | ✅ | ✅ | ✅ | ✅ | Simplified | Simplified |
|
|
214
|
+
| EV fleet modeling (V2G) | ✅ | Limited | ❌ | ❌ | ✅ | ❌ |
|
|
215
|
+
| Primary energy supply chain | ✅ | Limited | ❌ | Limited | ✅ | Partial |
|
|
216
|
+
| Electrolyzer / P2H₂ | ✅ | ✅ | ✅ | ✅ | ✅ | Limited |
|
|
217
|
+
| Stochastic programming | ✅ | ✅ | ❌ | ❌ | ✅ | ❌ |
|
|
218
|
+
| N-1 security constraints | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
|
|
219
|
+
| MGA / near-optimal | MGA + SPORES | MGA | MGA | SPORES | ❌ | ❌ |
|
|
220
|
+
| Sobol sensitivity | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
|
|
221
|
+
| GIS-based Studio | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
|
|
222
|
+
| Plugin / extension system | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
|
|
223
|
+
| Solver backend | JuMP | Linopy | JuMP | Pyomo | GAMS | GLPK/CBC |
|
|
224
|
+
|
|
225
|
+
<sub>*PyPSA performs an AC power flow via Newton-Raphson, not a full ACOPF. See [`docs/index.md`](docs/index.md) for the extended comparison and citations.</sub>
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## Installation
|
|
230
|
+
|
|
231
|
+
ESFEX is a hybrid Python/Julia package. Python ≥ 3.10 and a working Julia ≥ 1.9 installation are required; the Julia dependencies are managed automatically through `juliacall` on first run.
|
|
232
|
+
|
|
233
|
+
### From source (development mode)
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
git clone https://github.com/msotocalvo/ESFEX.git
|
|
237
|
+
cd ESFEX
|
|
238
|
+
pip install -e .
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
The GIS Studio (PySide6) is included in the core install — no extra is required.
|
|
242
|
+
|
|
243
|
+
### Optional dependency groups
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
pip install -e ".[dev]" # pytest, ruff, black, mypy
|
|
247
|
+
pip install -e ".[viz]" # matplotlib, plotly, kaleido
|
|
248
|
+
pip install -e ".[sensitivity]" # SALib (Sobol indices)
|
|
249
|
+
pip install -e ".[workflows]" # resource-assessment pipelines (pvlib, geopandas, atlite, rasterio, …)
|
|
250
|
+
pip install -e ".[benchmark]" # pypsa, pandapower, pypower (cross-model validation)
|
|
251
|
+
pip install -e ".[ml]" # xgboost (demand model)
|
|
252
|
+
pip install -e ".[dl]" # torch, pytorch-forecasting (TFT demand model)
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Julia backend
|
|
256
|
+
|
|
257
|
+
The Julia optimization models live in [`src/esfex/julia/`](src/esfex/julia/) with their own `Project.toml`. On the first `esfex run`, `juliacall` instantiates the Julia environment automatically. To build a sysimage for faster startup:
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
esfex precompile
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Solvers
|
|
264
|
+
|
|
265
|
+
ESFEX defaults to the open-source **HiGHS** solver. Gurobi, CPLEX, CBC, and GLPK are also supported and selectable per run (`--solver`) or in the config. Ipopt is used for the nonlinear ACOPF formulations.
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## Quick Start
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
# Validate a configuration file
|
|
273
|
+
esfex validate -c my_system.yaml
|
|
274
|
+
|
|
275
|
+
# Run a 25-year capacity expansion + dispatch simulation
|
|
276
|
+
esfex run -c my_system.yaml --years 25 --verbose
|
|
277
|
+
|
|
278
|
+
# Run in unit-commitment (MIP) mode with a specific solver
|
|
279
|
+
esfex run -c my_system.yaml --mode unit_commitment --solver gurobi
|
|
280
|
+
|
|
281
|
+
# Export results to CSV
|
|
282
|
+
esfex export -r results/output.h5 -f csv
|
|
283
|
+
|
|
284
|
+
# Show version and system information
|
|
285
|
+
esfex info
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Python API
|
|
289
|
+
|
|
290
|
+
```python
|
|
291
|
+
from esfex import load_config
|
|
292
|
+
from esfex.runner import Orchestrator
|
|
293
|
+
|
|
294
|
+
config = load_config("my_system.yaml")
|
|
295
|
+
orchestrator = Orchestrator(config, output_dir="./results")
|
|
296
|
+
results = orchestrator.run(years=25)
|
|
297
|
+
|
|
298
|
+
for year in results:
|
|
299
|
+
print(f"Year {year.year}: RE={year.re_penetration:.1%}, "
|
|
300
|
+
f"Cost=${year.objective:,.0f}")
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
## The Studio
|
|
306
|
+
|
|
307
|
+
ESFEX ships with an interactive, map-based **Studio** for building and editing power-system configurations visually instead of hand-writing YAML.
|
|
308
|
+
|
|
309
|
+
```bash
|
|
310
|
+
esfex studio # start from a blank canvas
|
|
311
|
+
esfex studio -c my_system.yaml # open an existing configuration
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
Place nodes, generators, batteries, and transmission lines directly on a Leaflet map with geographic routing, edit element parameters through validated forms, and run resource-assessment wizards (rooftop solar, utility PV, wind, OTEC) to generate availability profiles. The Studio writes standard ESFEX YAML that the CLI and Python API consume unchanged.
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## Configuration
|
|
319
|
+
|
|
320
|
+
ESFEX is driven by a single YAML configuration describing the system topology, technologies, temporal settings, and solver options. Key sections:
|
|
321
|
+
|
|
322
|
+
| Section | Purpose |
|
|
323
|
+
|---------|---------|
|
|
324
|
+
| `simulation_mode` | `development`, `economic_dispatch`, or `unit_commitment` |
|
|
325
|
+
| `temporal` | Resolution, rolling-horizon window/overlap, investment resolution |
|
|
326
|
+
| `solver` | Solver name, threads, gap, time limit, numerical options |
|
|
327
|
+
| `nodes` / `buses` | Network topology and demand assignment |
|
|
328
|
+
| `generators` | Thermal, renewable, and conversion technologies |
|
|
329
|
+
| `batteries` | Storage with degradation and duration bounds |
|
|
330
|
+
| `transmission` | Lines, transformers, converters; DC/AC power flow settings |
|
|
331
|
+
| `development_zones` | Candidate sites for new generation investment |
|
|
332
|
+
|
|
333
|
+
See the [Configuration Reference](docs/reference/config-reference.md) and the [User Guide](docs/user-guide/configuration.md) for the full schema.
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
## Project Structure
|
|
338
|
+
|
|
339
|
+
```
|
|
340
|
+
ESFEX/
|
|
341
|
+
├── src/esfex/
|
|
342
|
+
│ ├── cli.py # Typer CLI entry point
|
|
343
|
+
│ ├── runner.py # Orchestrator (two-stage run loop)
|
|
344
|
+
│ ├── config/ # Pydantic schema + YAML loader
|
|
345
|
+
│ ├── bridge/ # Python↔Julia bridge (juliacall adapters)
|
|
346
|
+
│ ├── julia/ # Julia optimization models (JuMP)
|
|
347
|
+
│ │ └── src/ESFEX.jl # Power system, master problem, AC/DC flow, …
|
|
348
|
+
│ ├── models/ # EV, rooftop solar, demand estimation
|
|
349
|
+
│ ├── io/ # Demand loading, HDF5/CSV/Excel export
|
|
350
|
+
│ ├── topology/ # Network construction and reduction
|
|
351
|
+
│ ├── sensitivity/ # Sobol / sensitivity analysis
|
|
352
|
+
│ ├── analysis/ # Post-processing and derived metrics
|
|
353
|
+
│ ├── visualization/ # PySide6 GIS Studio + result charts
|
|
354
|
+
│ ├── plugins/ # Plugin framework and discovery
|
|
355
|
+
│ └── paths.py # Central data-path registry
|
|
356
|
+
├── tests/ # Test suite (pytest)
|
|
357
|
+
├── docs/ # MkDocs documentation
|
|
358
|
+
├── mkdocs.yml # Documentation site config
|
|
359
|
+
└── pyproject.toml # Package + dependency configuration
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
---
|
|
363
|
+
|
|
364
|
+
## Documentation
|
|
365
|
+
|
|
366
|
+
Full documentation is built with MkDocs and lives under [`docs/`](docs/).
|
|
367
|
+
|
|
368
|
+
| Section | Description |
|
|
369
|
+
|---------|-------------|
|
|
370
|
+
| [Getting Started](docs/getting-started/installation.md) | Installation, quickstart, architecture, core concepts |
|
|
371
|
+
| [Tutorials](docs/tutorials/single-system.md) | Single-system, multi-node, EV, stochastic, sensitivity |
|
|
372
|
+
| [User Guide](docs/user-guide/cli.md) | CLI, configuration, master problem, data formats |
|
|
373
|
+
| [GUI Editor](docs/gui/overview.md) | Interactive map-based grid editor (Studio) |
|
|
374
|
+
| [Mathematical Formulation](docs/formulation/overview.md) | Master problem, dispatch, DC/AC flow, primary energy, electrolyzer |
|
|
375
|
+
| [API Reference](docs/api/index.md) | Python and Julia public API |
|
|
376
|
+
| [Reference](docs/reference/config-reference.md) | Config fields, HDF5 schema, constraint catalog, glossary |
|
|
377
|
+
|
|
378
|
+
To serve the docs locally:
|
|
379
|
+
|
|
380
|
+
```bash
|
|
381
|
+
pip install mkdocs-material
|
|
382
|
+
mkdocs serve
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
## Requirements
|
|
388
|
+
|
|
389
|
+
- **Python** ≥ 3.10 (3.10, 3.11, 3.12 supported)
|
|
390
|
+
- **Julia** ≥ 1.9 (managed via `juliacall`)
|
|
391
|
+
- Core Python: NumPy, Pandas, SciPy, h5py, Pydantic, NetworkX, Typer, Rich, PySide6
|
|
392
|
+
- A supported solver: HiGHS (default, open-source), or Gurobi / CPLEX / CBC / GLPK
|
|
393
|
+
|
|
394
|
+
---
|
|
395
|
+
|
|
396
|
+
## Citation
|
|
397
|
+
|
|
398
|
+
If you use ESFEX in academic work, please cite:
|
|
399
|
+
|
|
400
|
+
```bibtex
|
|
401
|
+
@software{esfex2026,
|
|
402
|
+
title = {ESFEX: Energy System FlEXibility — Power System Optimization},
|
|
403
|
+
author = {Soto Calvo, Manuel and Lee, Han Soo},
|
|
404
|
+
year = {2026},
|
|
405
|
+
url = {https://github.com/msotocalvo/ESFEX},
|
|
406
|
+
version = {0.1.0},
|
|
407
|
+
license = {Apache-2.0}
|
|
408
|
+
}
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
---
|
|
412
|
+
|
|
413
|
+
## Contributing
|
|
414
|
+
|
|
415
|
+
Contributions are welcome. See [Development Setup](docs/contributing/development-setup.md) for the development environment and [Testing](docs/contributing/testing.md) for the test workflow. Bug reports and feature requests go to the GitHub issue tracker.
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
## License
|
|
420
|
+
|
|
421
|
+
ESFEX is released under the **Apache License 2.0** — see [LICENSE](LICENSE) for the full text.
|