How vova-snapcik/template-assignment-1 works
This is a Python starter application for analyzing demand-side flexibility in active distribution grids. The principal workflow is: a user selects a case, the loader turns shared appliance and grid data plus case parameters into input data, the model builds and solves an optimization problem, and the entry point saves results and figures. Optional sensitivity runs derive modified inputs, solve each case, and compare results. The model formulation is explicitly unfinished; documented extensions for assignment questions are not separate implemented pipelines. The graph reflects shown calls and README workflow; unsampled data files are grouped by their documented roles.
Main entry points: main.py Command entry · plotting.py Figure generation · model.py Consumer model · data_loader.py Input loader
Components 9
Run workflow
- Command entry
main.py
Case and optimization
- Case data
data - Input loader
src/data_loader.py - Consumer model
src/model.py - Gurobi solver
Analysis outputs
- Scenario transforms
src/scenarios.py - Figure generation
src/plotting.py - Saved results
results
Other components
- Analyst
Connections 14
- Analyst → Command entry: runs case
README.md - Input loader → Case data: reads JSON
src/data_loader.py - Command entry → Input loader: loads case
main.py - Command entry → Figure generation: plots inputs
main.py - Command entry → Consumer model: builds and solves
main.py - Consumer model → Gurobi solver: optimizes
src/model.py - Consumer model → Input loader: uses input data
src/model.py - Command entry → Scenario transforms: derives scenarios
main.py - Command entry → Figure generation: compares scenarios
main.py - Figure generation → Consumer model: reads results
src/plotting.py - Figure generation → Input loader: reads inputs
src/plotting.py - Command entry → Saved results: saves outputs
main.py - Command entry → Figure generation: saves figures
main.py - Command entry → Saved results: saves scenario runs
main.py