flextool 4.7.0__tar.gz → 4.7.1__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.
Files changed (759) hide show
  1. {flextool-4.7.0 → flextool-4.7.1}/MANIFEST.in +2 -0
  2. {flextool-4.7.0/flextool.egg-info → flextool-4.7.1}/PKG-INFO +1 -1
  3. {flextool-4.7.0 → flextool-4.7.1}/docs/dev/architecture.md +1 -1
  4. {flextool-4.7.0 → flextool-4.7.1}/docs/dev/engine.md +1 -0
  5. {flextool-4.7.0 → flextool-4.7.1}/docs/excel_interface.md +24 -0
  6. flextool-4.7.1/docs/how_to/demand_response.md +135 -0
  7. {flextool-4.7.0 → flextool-4.7.1}/docs/how_to/index.md +13 -0
  8. {flextool-4.7.0 → flextool-4.7.1}/docs/how_to/performance.md +1 -1
  9. flextool-4.7.1/docs/how_to/stochastic_examples.md +48 -0
  10. {flextool-4.7.0 → flextool-4.7.1}/docs/how_to/stochastics.md +7 -3
  11. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/flow_groups.md +2 -2
  12. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/groups.md +2 -2
  13. {flextool-4.7.0 → flextool-4.7.1}/docs/results.md +1 -1
  14. {flextool-4.7.0 → flextool-4.7.1}/docs/terminal_workflow.md +7 -0
  15. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/inputs/_notes.py +2 -1
  16. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/inputs/_schema.py +0 -7
  17. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/inputs/_units.py +2 -2
  18. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_export_to_tabular.py +21 -0
  19. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_read_self_describing_tabular_input.py +4 -1
  20. {flextool-4.7.0 → flextool-4.7.1}/flextool/docs_build/parameters.py +2 -1
  21. {flextool-4.7.0 → flextool-4.7.1}/flextool/docs_build/scope.py +2 -0
  22. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/autoscale/_quantity_types.py +3 -3
  23. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_solve_config.py +1 -1
  24. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_timeline.py +1 -1
  25. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_cumulative_invest.py +67 -6
  26. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/core.py +63 -21
  27. flextool-4.7.1/flextool/engine/preprocess/_co2_carry.py +171 -0
  28. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_provider_keys.py +2 -0
  29. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_provider_translators.py +3 -1
  30. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_co2_accumulators.py +17 -1
  31. flextool-4.7.1/flextool/engine/preprocess/emit/_flowgroup_accumulators.py +232 -0
  32. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_mid_sets.py +5 -4
  33. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_pdt_lookup.py +108 -75
  34. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_period_calc.py +29 -0
  35. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_period_params.py +2 -2
  36. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_reserve_sets.py +1 -1
  37. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/flex_data.py +65 -139
  38. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_direct.py +0 -10
  39. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_profiles.py +1 -1
  40. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_projection.py +26 -5
  41. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_benders.py +54 -33
  42. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_carry_routing.py +1 -1
  43. flextool-4.7.1/flextool/engine/solve/_co2_total_scope.py +135 -0
  44. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_handoff.py +8 -1
  45. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_orchestration.py +12 -3
  46. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_region_filter.py +265 -204
  47. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_run_model.py +12 -0
  48. {flextool-4.7.0 → flextool-4.7.1}/flextool/export_to_tabular/excel_writer.py +333 -233
  49. {flextool-4.7.0 → flextool-4.7.1}/flextool/export_to_tabular/export_settings.yaml +17 -12
  50. {flextool-4.7.0 → flextool-4.7.1}/flextool/export_to_tabular/export_to_excel.py +112 -11
  51. {flextool-4.7.0 → flextool-4.7.1}/flextool/export_to_tabular/formatting.py +254 -61
  52. flextool-4.7.1/flextool/export_to_tabular/index_names.py +81 -0
  53. {flextool-4.7.0 → flextool-4.7.1}/flextool/export_to_tabular/sheet_config.py +60 -10
  54. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/add_dialog.py +2 -1
  55. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/main_window.py +2 -0
  56. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_inputs/read_old_flextool.py +106 -0
  57. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_inputs/read_self_describing_excel.py +61 -10
  58. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_inputs/write_old_flextool_to_db.py +329 -240
  59. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_inputs/write_self_describing_to_db.py +46 -2
  60. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/_fan_labels.py +9 -7
  61. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/drop_levels.py +5 -5
  62. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/out_capacity.py +28 -10
  63. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/read_parameters.py +33 -26
  64. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/read_sets.py +16 -4
  65. flextool-4.7.1/flextool/schemas/canonical_databases/howto_demand_response.json +7453 -0
  66. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/canonical_databases/howto_stochastics.json +1610 -141
  67. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/canonical_databases/templates_examples.json +0 -110
  68. {flextool-4.7.0 → flextool-4.7.1}/flextool/spinedb_backend/_backend.py +1 -1
  69. {flextool-4.7.0 → flextool-4.7.1}/flextool/units_of_measure.py +21 -0
  70. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/canonical_databases.py +3 -2
  71. flextool-4.7.1/flextool/update_flextool/db_migration/__init__.py +21 -0
  72. flextool-4.7.1/flextool/update_flextool/db_migration/__main__.py +11 -0
  73. flextool-4.7.1/flextool/update_flextool/db_migration/common.py +555 -0
  74. flextool-4.7.1/flextool/update_flextool/db_migration/head.py +164 -0
  75. flextool-4.7.1/flextool/update_flextool/db_migration/runner.py +625 -0
  76. flextool-4.7.1/flextool/update_flextool/db_migration/v01_v25.py +472 -0
  77. flextool-4.7.1/flextool/update_flextool/db_migration/v26_v43.py +1054 -0
  78. flextool-4.7.1/flextool/update_flextool/db_migration/v44_v49.py +576 -0
  79. flextool-4.7.1/flextool/update_flextool/db_migration/v50_v55.py +1156 -0
  80. flextool-4.7.1/flextool/update_flextool/db_migration/v56_methods.py +1351 -0
  81. flextool-4.7.1/flextool/update_flextool/db_migration/v56_renames.py +1304 -0
  82. flextool-4.7.1/flextool/update_flextool/db_migration/v57_v69.py +1210 -0
  83. flextool-4.7.1/flextool/update_flextool/db_migration/v70_v76.py +778 -0
  84. flextool-4.7.1/flextool/update_flextool/db_migration/v77.py +1198 -0
  85. flextool-4.7.1/flextool/update_flextool/db_migration/v78.py +295 -0
  86. flextool-4.7.1/flextool/update_flextool/db_migration/v79.py +843 -0
  87. flextool-4.7.1/flextool/update_flextool/db_migration/v80.py +330 -0
  88. flextool-4.7.1/flextool/update_flextool/db_migration/v81.py +587 -0
  89. flextool-4.7.1/flextool/update_flextool/db_migration/v82.py +514 -0
  90. flextool-4.7.1/flextool/update_flextool/db_migration/v83.py +817 -0
  91. {flextool-4.7.0/flextool/update_flextool → flextool-4.7.1/flextool/update_flextool/db_migration}/v84_branching.py +3 -4
  92. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/extend_tests_fixture.py +1 -1
  93. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/list_default_restore.py +2 -2
  94. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/sync_master_json_template.py +2 -2
  95. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/value_list_archive.py +2 -2
  96. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/value_list_history.py +2 -2
  97. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/value_list_write.py +1 -1
  98. {flextool-4.7.0 → flextool-4.7.1/flextool.egg-info}/PKG-INFO +1 -1
  99. {flextool-4.7.0 → flextool-4.7.1}/flextool.egg-info/SOURCES.txt +30 -2
  100. {flextool-4.7.0 → flextool-4.7.1}/pyproject.toml +1 -1
  101. {flextool-4.7.0 → flextool-4.7.1}/tests/test_export_to_tabular.py +5 -4
  102. flextool-4.7.1/tests/test_export_workbook_layout.py +608 -0
  103. {flextool-4.7.0 → flextool-4.7.1}/tests/test_invariant_guards.py +19 -1
  104. {flextool-4.7.0 → flextool-4.7.1}/tests/test_recourse_cost_reconciliation.py +8 -0
  105. flextool-4.7.1/tests/test_split_check.py +182 -0
  106. {flextool-4.7.0 → flextool-4.7.1}/tests/test_v70_migration.py +3 -3
  107. flextool-4.7.0/flextool/update_flextool/db_migration.py +0 -13303
  108. {flextool-4.7.0 → flextool-4.7.1}/LICENSE.txt +0 -0
  109. {flextool-4.7.0 → flextool-4.7.1}/README.md +0 -0
  110. {flextool-4.7.0 → flextool-4.7.1}/_flextool_build.py +0 -0
  111. {flextool-4.7.0 → flextool-4.7.1}/docs/advanced_concepts.md +0 -0
  112. {flextool-4.7.0 → flextool-4.7.1}/docs/ai_assistant.md +0 -0
  113. {flextool-4.7.0 → flextool-4.7.1}/docs/dev/assistant.md +0 -0
  114. {flextool-4.7.0 → flextool-4.7.1}/docs/dev/slack_convention.md +0 -0
  115. {flextool-4.7.0 → flextool-4.7.1}/docs/env_vars.md +0 -0
  116. {flextool-4.7.0 → flextool-4.7.1}/docs/flextool_gui_interface.md +0 -0
  117. {flextool-4.7.0 → flextool-4.7.1}/docs/how_to/basics.md +0 -0
  118. {flextool-4.7.0 → flextool-4.7.1}/docs/how_to/emissions.md +0 -0
  119. {flextool-4.7.0 → flextool-4.7.1}/docs/how_to/investment.md +0 -0
  120. {flextool-4.7.0 → flextool-4.7.1}/docs/how_to/outputs.md +0 -0
  121. {flextool-4.7.0 → flextool-4.7.1}/docs/how_to/solve_sequences.md +0 -0
  122. {flextool-4.7.0 → flextool-4.7.1}/docs/how_to/storage_hydro.md +0 -0
  123. {flextool-4.7.0 → flextool-4.7.1}/docs/how_to/thermal_chp.md +0 -0
  124. {flextool-4.7.0 → flextool-4.7.1}/docs/index.md +0 -0
  125. {flextool-4.7.0 → flextool-4.7.1}/docs/install_gui.md +0 -0
  126. {flextool-4.7.0 → flextool-4.7.1}/docs/install_toolbox.md +0 -0
  127. {flextool-4.7.0 → flextool-4.7.1}/docs/interface_overview.md +0 -0
  128. {flextool-4.7.0 → flextool-4.7.1}/docs/limitations.md +0 -0
  129. {flextool-4.7.0 → flextool-4.7.1}/docs/reading_results.md +0 -0
  130. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/commodities.md +0 -0
  131. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/connections.md +0 -0
  132. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/entities_and_time.md +0 -0
  133. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/index.md +0 -0
  134. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/nodes.md +0 -0
  135. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/parameter_groups.md +0 -0
  136. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/reserves.md +0 -0
  137. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/units.md +0 -0
  138. {flextool-4.7.0 → flextool-4.7.1}/docs/reference/user_constraints.md +0 -0
  139. {flextool-4.7.0 → flextool-4.7.1}/docs/solvers/copt.md +0 -0
  140. {flextool-4.7.0 → flextool-4.7.1}/docs/solvers/cplex.md +0 -0
  141. {flextool-4.7.0 → flextool-4.7.1}/docs/solvers/gurobi.md +0 -0
  142. {flextool-4.7.0 → flextool-4.7.1}/docs/solvers/highs.md +0 -0
  143. {flextool-4.7.0 → flextool-4.7.1}/docs/solvers/index.md +0 -0
  144. {flextool-4.7.0 → flextool-4.7.1}/docs/solvers/option_trust_internals.md +0 -0
  145. {flextool-4.7.0 → flextool-4.7.1}/docs/solvers/xpress.md +0 -0
  146. {flextool-4.7.0 → flextool-4.7.1}/docs/spine_database.md +0 -0
  147. {flextool-4.7.0 → flextool-4.7.1}/docs/spine_toolbox.md +0 -0
  148. {flextool-4.7.0 → flextool-4.7.1}/docs/tutorial.md +0 -0
  149. {flextool-4.7.0 → flextool-4.7.1}/flextool/__init__.py +0 -0
  150. {flextool-4.7.0 → flextool-4.7.1}/flextool/_allocator.py +0 -0
  151. {flextool-4.7.0 → flextool-4.7.1}/flextool/_child_python.py +0 -0
  152. {flextool-4.7.0 → flextool-4.7.1}/flextool/_file_lock.py +0 -0
  153. {flextool-4.7.0 → flextool-4.7.1}/flextool/_local_solver_settings.py +0 -0
  154. {flextool-4.7.0 → flextool-4.7.1}/flextool/_mem_sampler.py +0 -0
  155. {flextool-4.7.0 → flextool-4.7.1}/flextool/_process_tree.py +0 -0
  156. {flextool-4.7.0 → flextool-4.7.1}/flextool/_resources.py +0 -0
  157. {flextool-4.7.0 → flextool-4.7.1}/flextool/_safe_text.py +0 -0
  158. {flextool-4.7.0 → flextool-4.7.1}/flextool/_solver_config_source.py +0 -0
  159. {flextool-4.7.0 → flextool-4.7.1}/flextool/_solver_option_rules.py +0 -0
  160. {flextool-4.7.0 → flextool-4.7.1}/flextool/_thread_budget.py +0 -0
  161. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/__init__.py +0 -0
  162. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/_files.py +0 -0
  163. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/backends/__init__.py +0 -0
  164. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/backends/_common.py +0 -0
  165. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/backends/anthropic_messages.py +0 -0
  166. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/backends/openai_chat.py +0 -0
  167. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/budget.py +0 -0
  168. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/caps.py +0 -0
  169. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/chat_cli.py +0 -0
  170. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/cli.py +0 -0
  171. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/context.py +0 -0
  172. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/docs_store.py +0 -0
  173. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/endpoint.py +0 -0
  174. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/env_knobs.py +0 -0
  175. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/errors.py +0 -0
  176. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/inputs/__init__.py +0 -0
  177. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/inputs/_db.py +0 -0
  178. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/inputs/_values.py +0 -0
  179. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/keys.py +0 -0
  180. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/llm_adapter.py +0 -0
  181. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/llm_errors.py +0 -0
  182. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/llm_retry.py +0 -0
  183. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/mcp_server.py +0 -0
  184. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/model_check.py +0 -0
  185. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/model_facts.py +0 -0
  186. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/model_list_cache.py +0 -0
  187. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/model_versions.py +0 -0
  188. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/net.py +0 -0
  189. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/pacing.py +0 -0
  190. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/placeholders.py +0 -0
  191. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/probes.py +0 -0
  192. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/project.py +0 -0
  193. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/prompt.py +0 -0
  194. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/providers.py +0 -0
  195. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/redact.py +0 -0
  196. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/registry.py +0 -0
  197. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/results/__init__.py +0 -0
  198. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/results/_catalog.py +0 -0
  199. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/results/_entity.py +0 -0
  200. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/results/_overview.py +0 -0
  201. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/results/_query.py +0 -0
  202. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/results/_runs.py +0 -0
  203. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/results/_slacks.py +0 -0
  204. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/runtime_context.py +0 -0
  205. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/session.py +0 -0
  206. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/settings.py +0 -0
  207. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/store.py +0 -0
  208. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/textsearch.py +0 -0
  209. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/thoughts.py +0 -0
  210. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/tiers.py +0 -0
  211. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/tools/__init__.py +0 -0
  212. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/tools/diagnostics.py +0 -0
  213. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/tools/discovery.py +0 -0
  214. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/tools/explain.py +0 -0
  215. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/tools/inputs.py +0 -0
  216. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/tools/orientation.py +0 -0
  217. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/tools/results.py +0 -0
  218. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/unit_wording.py +0 -0
  219. {flextool-4.7.0 → flextool-4.7.1}/flextool/assistant/usage.py +0 -0
  220. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/__init__.py +0 -0
  221. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/__main__.py +0 -0
  222. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/_cli.py +0 -0
  223. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/_db_alt.py +0 -0
  224. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/_final_outputs.py +0 -0
  225. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/_guard.py +0 -0
  226. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/_loop.py +0 -0
  227. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/_readers.py +0 -0
  228. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/_report.py +0 -0
  229. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/_sizing.py +0 -0
  230. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/_solve.py +0 -0
  231. {flextool-4.7.0 → flextool-4.7.1}/flextool/calibrate/_solve_status.py +0 -0
  232. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/__init__.py +0 -0
  233. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/_console.py +0 -0
  234. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/_timing.py +0 -0
  235. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_execute_flextool_workflow.py +0 -0
  236. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_freeze_database.py +0 -0
  237. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_import_sensitivities.py +0 -0
  238. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_migrate_database.py +0 -0
  239. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_open_results_db.py +0 -0
  240. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_project_package.py +0 -0
  241. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_read_matpower.py +0 -0
  242. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_read_old_flextool.py +0 -0
  243. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_read_tabular_input.py +0 -0
  244. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_repair_value_list.py +0 -0
  245. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_run_flextool.py +0 -0
  246. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_scenario_results.py +0 -0
  247. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_solve_mps.py +0 -0
  248. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_time_runs.py +0 -0
  249. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_trust_workspace.py +0 -0
  250. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_update_flextool.py +0 -0
  251. {flextool-4.7.0 → flextool-4.7.1}/flextool/cli/cmd_write_outputs.py +0 -0
  252. {flextool-4.7.0 → flextool-4.7.1}/flextool/common_utils/__init__.py +0 -0
  253. {flextool-4.7.0 → flextool-4.7.1}/flextool/common_utils/plot_mem_shape.py +0 -0
  254. {flextool-4.7.0 → flextool-4.7.1}/flextool/console_markers.py +0 -0
  255. {flextool-4.7.0 → flextool-4.7.1}/flextool/decomposition/__init__.py +0 -0
  256. {flextool-4.7.0 → flextool-4.7.1}/flextool/decomposition/region_decomposition.py +0 -0
  257. {flextool-4.7.0 → flextool-4.7.1}/flextool/decomposition/region_filter.py +0 -0
  258. {flextool-4.7.0 → flextool-4.7.1}/flextool/docs_build/__init__.py +0 -0
  259. {flextool-4.7.0 → flextool-4.7.1}/flextool/docs_build/__main__.py +0 -0
  260. {flextool-4.7.0 → flextool-4.7.1}/flextool/docs_build/catalogue.py +0 -0
  261. {flextool-4.7.0 → flextool-4.7.1}/flextool/docs_build/formulation.py +0 -0
  262. {flextool-4.7.0 → flextool-4.7.1}/flextool/docs_build/index.py +0 -0
  263. {flextool-4.7.0 → flextool-4.7.1}/flextool/docs_build/warnings.py +0 -0
  264. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/__init__.py +0 -0
  265. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/_behaviour_changes.py +0 -0
  266. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/_csv_reload/__init__.py +0 -0
  267. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/_csv_reload/_field_seeds.py +0 -0
  268. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/_csv_reload/_meta.py +0 -0
  269. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/_csv_reload/_seed.py +0 -0
  270. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/_csv_reload/_stamp.py +0 -0
  271. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/_csv_reload/_topology.py +0 -0
  272. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/_csv_reload/load.py +0 -0
  273. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/_csv_reload/offline_outputs.py +0 -0
  274. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/autoscale/__init__.py +0 -0
  275. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/autoscale/_config.py +0 -0
  276. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/autoscale/_guard.py +0 -0
  277. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/autoscale/_layer2.py +0 -0
  278. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/autoscale/_layer2_types.py +0 -0
  279. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/autoscale/_report.py +0 -0
  280. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/__init__.py +0 -0
  281. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_axis_enums.py +0 -0
  282. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_constants.py +0 -0
  283. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_db_loader.py +0 -0
  284. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_db_reader.py +0 -0
  285. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_inmemory_reader.py +0 -0
  286. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_input_source.py +0 -0
  287. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_lifetime_roles.py +0 -0
  288. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_param_shapes.py +0 -0
  289. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_piecewise_curve.py +0 -0
  290. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_solve_state.py +0 -0
  291. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_solve_step_aggregation.py +0 -0
  292. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_spinedb_reader.py +0 -0
  293. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/input/_timeline_rules.py +0 -0
  294. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/__init__.py +0 -0
  295. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_balance_terms.py +0 -0
  296. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_capacity.py +0 -0
  297. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_coarse_flows.py +0 -0
  298. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_commodity_ladder.py +0 -0
  299. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_common.py +0 -0
  300. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_dc_power_flow.py +0 -0
  301. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_delay.py +0 -0
  302. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_exact.py +0 -0
  303. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_extend.py +0 -0
  304. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_group_slack.py +0 -0
  305. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_lead_time.py +0 -0
  306. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_non_anticipativity.py +0 -0
  307. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_online.py +0 -0
  308. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_pdt_join.py +0 -0
  309. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_period_rows.py +0 -0
  310. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_reserve.py +0 -0
  311. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_retire_built.py +0 -0
  312. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_self_discharge.py +0 -0
  313. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/model/_unit_floors.py +0 -0
  314. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/__init__.py +0 -0
  315. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/_benders_slice.py +0 -0
  316. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/_capacity_margin.py +0 -0
  317. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/_coarse_flows.py +0 -0
  318. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/_cohort_capacity.py +0 -0
  319. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/_dump_csvs.py +0 -0
  320. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/_horizon_dump.py +0 -0
  321. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/_parquet_bundle.py +0 -0
  322. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/_prices.py +0 -0
  323. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/_reserve_report.py +0 -0
  324. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/output/_writer.py +0 -0
  325. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/__init__.py +0 -0
  326. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_annuity.py +0 -0
  327. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_co2_methods.py +0 -0
  328. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_dump_stamp.py +0 -0
  329. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_flex_data_provider.py +0 -0
  330. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_input_writer.py +0 -0
  331. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_invest_seeds.py +0 -0
  332. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_provider_io.py +0 -0
  333. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_reduce_detail.py +0 -0
  334. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_reserve_methods.py +0 -0
  335. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_solve_context.py +0 -0
  336. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_step_relations.py +0 -0
  337. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/_stochastic_detect.py +0 -0
  338. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/__init__.py +0 -0
  339. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_arc_unions.py +0 -0
  340. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_base_steps.py +0 -0
  341. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_blocks.py +0 -0
  342. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_calc_params.py +0 -0
  343. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_capacity_margin_peak.py +0 -0
  344. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_chain_params.py +0 -0
  345. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_dispatchers.py +0 -0
  346. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_energy_margin.py +0 -0
  347. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_energy_margin_adder.py +0 -0
  348. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_inflow_scaling.py +0 -0
  349. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_inflow_scaling_checks.py +0 -0
  350. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_leaf_sets.py +0 -0
  351. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_lp_scaling.py +0 -0
  352. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_pdt_params.py +0 -0
  353. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_per_solve.py +0 -0
  354. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_solve_time.py +0 -0
  355. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_solve_writers.py +0 -0
  356. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/emit/_vectorize.py +0 -0
  357. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/__init__.py +0 -0
  358. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_arithmetic.py +0 -0
  359. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_block.py +0 -0
  360. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_block_layout.py +0 -0
  361. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_branch.py +0 -0
  362. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_coarse.py +0 -0
  363. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_cohort_handoff.py +0 -0
  364. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_cohorts.py +0 -0
  365. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_cost_lines.py +0 -0
  366. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_derived.py +0 -0
  367. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_discount.py +0 -0
  368. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_existing.py +0 -0
  369. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_existing_salvage.py +0 -0
  370. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_extend.py +0 -0
  371. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_fixed_costs.py +0 -0
  372. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_lifetime_costs.py +0 -0
  373. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_lifetime_inputs.py +0 -0
  374. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_mintime.py +0 -0
  375. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_npv.py +0 -0
  376. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_per_solve_sets.py +0 -0
  377. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_period_values.py +0 -0
  378. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_piecewise.py +0 -0
  379. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_ramp_links.py +0 -0
  380. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_report_lines.py +0 -0
  381. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_retire_built.py +0 -0
  382. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_retire_existing.py +0 -0
  383. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_retire_settlement.py +0 -0
  384. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_run_calendar.py +0 -0
  385. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_run_costs.py +0 -0
  386. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/preprocess/params/_walks.py +0 -0
  387. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/__init__.py +0 -0
  388. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_acceptance.py +0 -0
  389. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_benders_final.py +0 -0
  390. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_determinism.py +0 -0
  391. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_objective_options.py +0 -0
  392. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_realization.py +0 -0
  393. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_realization_tail.py +0 -0
  394. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_realized_overlap.py +0 -0
  395. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_recursive_solve.py +0 -0
  396. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_solver_base.py +0 -0
  397. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_solver_catalogue.py +0 -0
  398. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_solver_dispatch.py +0 -0
  399. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_solver_outcome.py +0 -0
  400. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_stochastic.py +0 -0
  401. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_subprocess_solve.py +0 -0
  402. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/_warm.py +0 -0
  403. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/chain.py +0 -0
  404. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/solver_catalogue/copt.json +0 -0
  405. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/solver_catalogue/cplex.json +0 -0
  406. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/solver_catalogue/gurobi.json +0 -0
  407. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/solver_catalogue/highs.json +0 -0
  408. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine/solve/solver_catalogue/xpress.json +0 -0
  409. {flextool-4.7.0 → flextool-4.7.1}/flextool/engine_polars/__init__.py +0 -0
  410. {flextool-4.7.0 → flextool-4.7.1}/flextool/env_check.py +0 -0
  411. {flextool-4.7.0 → flextool-4.7.1}/flextool/export_to_tabular/__init__.py +0 -0
  412. {flextool-4.7.0 → flextool-4.7.1}/flextool/export_to_tabular/db_reader.py +0 -0
  413. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/__init__.py +0 -0
  414. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/__main__.py +0 -0
  415. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/_menus.py +0 -0
  416. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/__init__.py +0 -0
  417. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/chat_tab.py +0 -0
  418. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/chat_window.py +0 -0
  419. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/entry.py +0 -0
  420. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/fonts.py +0 -0
  421. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/gate.py +0 -0
  422. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/geometry.py +0 -0
  423. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/gui_state.py +0 -0
  424. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/markdown_stream.py +0 -0
  425. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/notices.py +0 -0
  426. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/settings_dialog.py +0 -0
  427. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/strings.py +0 -0
  428. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/transcript.py +0 -0
  429. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/assistant/worker.py +0 -0
  430. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/calibrate_commands.py +0 -0
  431. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/calibrate_jobs.py +0 -0
  432. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/check_tree.py +0 -0
  433. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/cli_format.py +0 -0
  434. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/config_parser.py +0 -0
  435. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/data_models.py +0 -0
  436. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/db_editor_integration.py +0 -0
  437. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/db_version_check.py +0 -0
  438. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/__init__.py +0 -0
  439. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/_modal_base.py +0 -0
  440. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/calibrate_dialog.py +0 -0
  441. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/file_picker.py +0 -0
  442. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/group_picker.py +0 -0
  443. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/local_solver_settings_dialog.py +0 -0
  444. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/message_box.py +0 -0
  445. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/message_list_window.py +0 -0
  446. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/migration_consent_dialog.py +0 -0
  447. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/migration_progress_dialog.py +0 -0
  448. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/plot_dialog.py +0 -0
  449. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/plot_settings_picker.py +0 -0
  450. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/project_dialog.py +0 -0
  451. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/project_package_dialog.py +0 -0
  452. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/dialogs/update_dialog.py +0 -0
  453. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/downsampling.py +0 -0
  454. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/error_handling.py +0 -0
  455. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/execution_manager.py +0 -0
  456. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/execution_window.py +0 -0
  457. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/hover_tooltip.py +0 -0
  458. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/input_sources.py +0 -0
  459. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/log_view.py +0 -0
  460. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/message_sources.py +0 -0
  461. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/messages.py +0 -0
  462. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/network_graph.py +0 -0
  463. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/output_actions.py +0 -0
  464. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/output_log_window.py +0 -0
  465. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/platform_utils.py +0 -0
  466. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/plot_cache.py +0 -0
  467. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/plot_canvas.py +0 -0
  468. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/plot_config_reader.py +0 -0
  469. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/project_utils.py +0 -0
  470. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/result_viewer.py +0 -0
  471. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/scenario_key.py +0 -0
  472. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/scenario_lists.py +0 -0
  473. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/settings_io.py +0 -0
  474. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/solve_reader.py +0 -0
  475. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/tree_reorder.py +0 -0
  476. {flextool-4.7.0 → flextool-4.7.1}/flextool/gui/ui_metrics.py +0 -0
  477. {flextool-4.7.0 → flextool-4.7.1}/flextool/input_derivation/__init__.py +0 -0
  478. {flextool-4.7.0 → flextool-4.7.1}/flextool/input_derivation/_commodity_ladder.py +0 -0
  479. {flextool-4.7.0 → flextool-4.7.1}/flextool/input_derivation/_commodity_ladder_sets.py +0 -0
  480. {flextool-4.7.0 → flextool-4.7.1}/flextool/input_derivation/_dc_power_flow.py +0 -0
  481. {flextool-4.7.0 → flextool-4.7.1}/flextool/input_derivation/_method_constants.py +0 -0
  482. {flextool-4.7.0 → flextool-4.7.1}/flextool/input_derivation/_piecewise.py +0 -0
  483. {flextool-4.7.0 → flextool-4.7.1}/flextool/input_derivation/_process_method.py +0 -0
  484. {flextool-4.7.0 → flextool-4.7.1}/flextool/input_derivation/_specs.py +0 -0
  485. {flextool-4.7.0 → flextool-4.7.1}/flextool/input_derivation/_validators.py +0 -0
  486. {flextool-4.7.0 → flextool-4.7.1}/flextool/lean_parquet.py +0 -0
  487. {flextool-4.7.0 → flextool-4.7.1}/flextool/model_builder/__init__.py +0 -0
  488. {flextool-4.7.0 → flextool-4.7.1}/flextool/model_builder/_special.py +0 -0
  489. {flextool-4.7.0 → flextool-4.7.1}/flextool/model_builder/build_model.py +0 -0
  490. {flextool-4.7.0 → flextool-4.7.1}/flextool/model_builder/encoding.py +0 -0
  491. {flextool-4.7.0 → flextool-4.7.1}/flextool/model_builder/names.py +0 -0
  492. {flextool-4.7.0 → flextool-4.7.1}/flextool/model_builder/profiles.py +0 -0
  493. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/__init__.py +0 -0
  494. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/axis_helpers.py +0 -0
  495. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/color_template.py +0 -0
  496. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/config.py +0 -0
  497. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/format_helpers.py +0 -0
  498. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/legend_helpers.py +0 -0
  499. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/orchestrator.py +0 -0
  500. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/perf.py +0 -0
  501. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/plan.py +0 -0
  502. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/plot_bars.py +0 -0
  503. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/plot_bars_detail.py +0 -0
  504. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/plot_lines.py +0 -0
  505. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/shared_manifest.py +0 -0
  506. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/subplot_helpers.py +0 -0
  507. {flextool-4.7.0 → flextool-4.7.1}/flextool/plot_outputs/unit_labels.py +0 -0
  508. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_inputs/__init__.py +0 -0
  509. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_inputs/import_old_excel_input.json +0 -0
  510. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_inputs/read_matpower.py +0 -0
  511. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_inputs/read_tabular_with_specification.py +0 -0
  512. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_inputs/write_to_input_db.py +0 -0
  513. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/__init__.py +0 -0
  514. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/_annualize.py +0 -0
  515. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/_csv_sidecars.py +0 -0
  516. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/_excel_writer.py +0 -0
  517. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/_inmemory_helpers.py +0 -0
  518. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/_output_meta.py +0 -0
  519. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/_ramp_inputs.py +0 -0
  520. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/_sheet_names.py +0 -0
  521. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/_timeline_breaks.py +0 -0
  522. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/_unit_context.py +0 -0
  523. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/calc_capacity_flows.py +0 -0
  524. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/calc_connections.py +0 -0
  525. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/calc_costs.py +0 -0
  526. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/calc_group_flows.py +0 -0
  527. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/calc_piecewise.py +0 -0
  528. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/calc_ramp_envelope.py +0 -0
  529. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/calc_slacks.py +0 -0
  530. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/calc_storage_vre.py +0 -0
  531. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/handoff_writers.py +0 -0
  532. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/out_ancillary.py +0 -0
  533. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/out_costs.py +0 -0
  534. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/out_flowgroup.py +0 -0
  535. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/out_flows.py +0 -0
  536. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/out_group.py +0 -0
  537. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/out_node.py +0 -0
  538. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/persist_realized_slice.py +0 -0
  539. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/process_results.py +0 -0
  540. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/read_highs_solution.py +0 -0
  541. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/read_variables.py +0 -0
  542. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/reduced_cells.py +0 -0
  543. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/solve_order.py +0 -0
  544. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/spinedb_replay.py +0 -0
  545. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/union_realized_slice.py +0 -0
  546. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/write_outputs.py +0 -0
  547. {flextool-4.7.0 → flextool-4.7.1}/flextool/process_outputs/write_spinedb.py +0 -0
  548. {flextool-4.7.0 → flextool-4.7.1}/flextool/project_package.py +0 -0
  549. {flextool-4.7.0 → flextool-4.7.1}/flextool/representative_periods/__init__.py +0 -0
  550. {flextool-4.7.0 → flextool-4.7.1}/flextool/representative_periods/clustering.py +0 -0
  551. {flextool-4.7.0 → flextool-4.7.1}/flextool/representative_periods/force_include.py +0 -0
  552. {flextool-4.7.0 → flextool-4.7.1}/flextool/representative_periods/netload.py +0 -0
  553. {flextool-4.7.0 → flextool-4.7.1}/flextool/representative_periods/netload_inputs.py +0 -0
  554. {flextool-4.7.0 → flextool-4.7.1}/flextool/representative_periods/netload_iterate.py +0 -0
  555. {flextool-4.7.0 → flextool-4.7.1}/flextool/representative_periods/preprocess.py +0 -0
  556. {flextool-4.7.0 → flextool-4.7.1}/flextool/representative_periods/scenario_stack.py +0 -0
  557. {flextool-4.7.0 → flextool-4.7.1}/flextool/representative_periods/weights.py +0 -0
  558. {flextool-4.7.0 → flextool-4.7.1}/flextool/run_options.py +0 -0
  559. {flextool-4.7.0 → flextool-4.7.1}/flextool/run_record/__init__.py +0 -0
  560. {flextool-4.7.0 → flextool-4.7.1}/flextool/run_record/_owner.py +0 -0
  561. {flextool-4.7.0 → flextool-4.7.1}/flextool/run_record/_status.py +0 -0
  562. {flextool-4.7.0 → flextool-4.7.1}/flextool/run_record/_tee.py +0 -0
  563. {flextool-4.7.0 → flextool-4.7.1}/flextool/run_warnings/__init__.py +0 -0
  564. {flextool-4.7.0 → flextool-4.7.1}/flextool/run_warnings/_behaviour_specs.py +0 -0
  565. {flextool-4.7.0 → flextool-4.7.1}/flextool/run_warnings/_engine_specs.py +0 -0
  566. {flextool-4.7.0 → flextool-4.7.1}/flextool/run_warnings/_input_specs.py +0 -0
  567. {flextool-4.7.0 → flextool-4.7.1}/flextool/run_warnings/registry.py +0 -0
  568. {flextool-4.7.0 → flextool-4.7.1}/flextool/safe_names.py +0 -0
  569. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/__init__.py +0 -0
  570. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/config_builder.py +0 -0
  571. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/constants.py +0 -0
  572. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/data_models.py +0 -0
  573. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/db_reader.py +0 -0
  574. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/dispatch_data.py +0 -0
  575. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/dispatch_mappings.py +0 -0
  576. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/dispatch_plots.py +0 -0
  577. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/input_entity_colors.py +0 -0
  578. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/orchestrator.py +0 -0
  579. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/plan_union.py +0 -0
  580. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/plot_settings_seed.py +0 -0
  581. {flextool-4.7.0 → flextool-4.7.1}/flextool/scenario_comparison/ramp_plots.py +0 -0
  582. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/AXIS_CONTRACT.md +0 -0
  583. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/canonical_databases/howto_aggregate_output.json +0 -0
  584. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/canonical_databases/howto_connections.json +0 -0
  585. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/canonical_databases/howto_demand.json +0 -0
  586. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/canonical_databases/howto_hydro_reservoir.json +0 -0
  587. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/canonical_databases/howto_hydro_reservoir_with_pump.json +0 -0
  588. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/canonical_databases/howto_non_sync_and_curtailment.json +0 -0
  589. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/canonical_databases/howto_ramp_and_start_up.json +0 -0
  590. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/canonical_databases/templates_time_settings_only.json +0 -0
  591. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/comparison_settings_template.json +0 -0
  592. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/default_plot_settings.yaml +0 -0
  593. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/default_plots.yaml +0 -0
  594. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/flextool_axis_contract.json +0 -0
  595. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/flextool_axis_contract.schema.json +0 -0
  596. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/old_flextool_import_template.json +0 -0
  597. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/output_info_template.json +0 -0
  598. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/output_settings_template.json +0 -0
  599. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_constant_default.json +0 -0
  600. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_default_optional_output.json +0 -0
  601. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_default_value.json +0 -0
  602. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_drop_down.json +0 -0
  603. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_lifetime_method.json +0 -0
  604. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_optional_outputs.json +0 -0
  605. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_output_node_flows.json +0 -0
  606. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_results_master.json +0 -0
  607. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_rolling_start_remove.json +0 -0
  608. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_rolling_window.json +0 -0
  609. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_storage_binding_defaults.json +0 -0
  610. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_v2.json +0 -0
  611. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/pre_v26/flextool_template_v25.json +0 -0
  612. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/spinedb_results_schema.json +0 -0
  613. {flextool-4.7.0 → flextool-4.7.1}/flextool/schemas/spinedb_schema.json +0 -0
  614. {flextool-4.7.0 → flextool-4.7.1}/flextool/solver_config/copt.opt.template +0 -0
  615. {flextool-4.7.0 → flextool-4.7.1}/flextool/solver_config/cplex.opt.template +0 -0
  616. {flextool-4.7.0 → flextool-4.7.1}/flextool/solver_config/gurobi.opt.template +0 -0
  617. {flextool-4.7.0 → flextool-4.7.1}/flextool/solver_config/highs.opt.template +0 -0
  618. {flextool-4.7.0 → flextool-4.7.1}/flextool/solver_config/xpress.opt.template +0 -0
  619. {flextool-4.7.0 → flextool-4.7.1}/flextool/spinedb_backend/__init__.py +0 -0
  620. {flextool-4.7.0 → flextool-4.7.1}/flextool/spinedb_backend/_axis_enums.py +0 -0
  621. {flextool-4.7.0 → flextool-4.7.1}/flextool/sqlite_url.py +0 -0
  622. {flextool-4.7.0 → flextool-4.7.1}/flextool/timeline_pieces.py +0 -0
  623. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/__init__.py +0 -0
  624. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/bundle_install.py +0 -0
  625. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/db_handle.py +0 -0
  626. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/ensure_settings_db.py +0 -0
  627. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/export_database.py +0 -0
  628. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/fixture_schema.py +0 -0
  629. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/frozen.py +0 -0
  630. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/generate_canonical.py +0 -0
  631. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/initialize_database.py +0 -0
  632. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/install_info.py +0 -0
  633. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/list_default_repair.py +0 -0
  634. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/migrate_before_run.py +0 -0
  635. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/migration_backup.py +0 -0
  636. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/self_update.py +0 -0
  637. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/test_fixtures.py +0 -0
  638. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/value_list_answers.py +0 -0
  639. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/value_list_repair.py +0 -0
  640. {flextool-4.7.0 → flextool-4.7.1}/flextool/update_flextool/value_list_suspects.py +0 -0
  641. {flextool-4.7.0 → flextool-4.7.1}/flextool/user_dirs.py +0 -0
  642. {flextool-4.7.0 → flextool-4.7.1}/flextool.egg-info/dependency_links.txt +0 -0
  643. {flextool-4.7.0 → flextool-4.7.1}/flextool.egg-info/entry_points.txt +0 -0
  644. {flextool-4.7.0 → flextool-4.7.1}/flextool.egg-info/requires.txt +0 -0
  645. {flextool-4.7.0 → flextool-4.7.1}/flextool.egg-info/top_level.txt +0 -0
  646. {flextool-4.7.0 → flextool-4.7.1}/flextool_assistant_entry.py +0 -0
  647. {flextool-4.7.0 → flextool-4.7.1}/flextool_run_supervisor.py +0 -0
  648. {flextool-4.7.0 → flextool-4.7.1}/setup.cfg +0 -0
  649. {flextool-4.7.0 → flextool-4.7.1}/tests/test_bar_layout.py +0 -0
  650. {flextool-4.7.0 → flextool-4.7.1}/tests/test_bar_sub_pixel_labels.py +0 -0
  651. {flextool-4.7.0 → flextool-4.7.1}/tests/test_blocks.py +0 -0
  652. {flextool-4.7.0 → flextool-4.7.1}/tests/test_branch_weights.py +0 -0
  653. {flextool-4.7.0 → flextool-4.7.1}/tests/test_child_python_safe_path.py +0 -0
  654. {flextool-4.7.0 → flextool-4.7.1}/tests/test_child_run_argv.py +0 -0
  655. {flextool-4.7.0 → flextool-4.7.1}/tests/test_ci_shard.py +0 -0
  656. {flextool-4.7.0 → flextool-4.7.1}/tests/test_color_template.py +0 -0
  657. {flextool-4.7.0 → flextool-4.7.1}/tests/test_commodity_ladder_rolling.py +0 -0
  658. {flextool-4.7.0 → flextool-4.7.1}/tests/test_comparison_excel.py +0 -0
  659. {flextool-4.7.0 → flextool-4.7.1}/tests/test_comparison_project_root.py +0 -0
  660. {flextool-4.7.0 → flextool-4.7.1}/tests/test_comparison_results_registry.py +0 -0
  661. {flextool-4.7.0 → flextool-4.7.1}/tests/test_complete_period_share_reduction.py +0 -0
  662. {flextool-4.7.0 → flextool-4.7.1}/tests/test_connection_node_warnings.py +0 -0
  663. {flextool-4.7.0 → flextool-4.7.1}/tests/test_console_run_tool.py +0 -0
  664. {flextool-4.7.0 → flextool-4.7.1}/tests/test_cost_aggregation_semantics.py +0 -0
  665. {flextool-4.7.0 → flextool-4.7.1}/tests/test_cost_breakdown_by_entity.py +0 -0
  666. {flextool-4.7.0 → flextool-4.7.1}/tests/test_csv_dump_roundtrip.py +0 -0
  667. {flextool-4.7.0 → flextool-4.7.1}/tests/test_dc_power_flow.py +0 -0
  668. {flextool-4.7.0 → flextool-4.7.1}/tests/test_dependency_caps.py +0 -0
  669. {flextool-4.7.0 → flextool-4.7.1}/tests/test_dispatch_consumer_and_connection_signs.py +0 -0
  670. {flextool-4.7.0 → flextool-4.7.1}/tests/test_dispatch_multi_period.py +0 -0
  671. {flextool-4.7.0 → flextool-4.7.1}/tests/test_dispatch_node_debug_and_tree.py +0 -0
  672. {flextool-4.7.0 → flextool-4.7.1}/tests/test_dispatch_order_specials.py +0 -0
  673. {flextool-4.7.0 → flextool-4.7.1}/tests/test_dispatch_scenario_tag.py +0 -0
  674. {flextool-4.7.0 → flextool-4.7.1}/tests/test_ensure_settings_db.py +0 -0
  675. {flextool-4.7.0 → flextool-4.7.1}/tests/test_entity_unitsize_invariant.py +0 -0
  676. {flextool-4.7.0 → flextool-4.7.1}/tests/test_entity_universe_carrier.py +0 -0
  677. {flextool-4.7.0 → flextool-4.7.1}/tests/test_env_check.py +0 -0
  678. {flextool-4.7.0 → flextool-4.7.1}/tests/test_env_knob_registry.py +0 -0
  679. {flextool-4.7.0 → flextool-4.7.1}/tests/test_excel_text_cells.py +0 -0
  680. {flextool-4.7.0 → flextool-4.7.1}/tests/test_execution_log_lint.py +0 -0
  681. {flextool-4.7.0 → flextool-4.7.1}/tests/test_extend_tests_fixture.py +0 -0
  682. {flextool-4.7.0 → flextool-4.7.1}/tests/test_flowgroup_indicators.py +0 -0
  683. {flextool-4.7.0 → flextool-4.7.1}/tests/test_force_include.py +0 -0
  684. {flextool-4.7.0 → flextool-4.7.1}/tests/test_group_output_warnings.py +0 -0
  685. {flextool-4.7.0 → flextool-4.7.1}/tests/test_handoff_writers.py +0 -0
  686. {flextool-4.7.0 → flextool-4.7.1}/tests/test_input_entity_colors.py +0 -0
  687. {flextool-4.7.0 → flextool-4.7.1}/tests/test_lean_parquet.py +0 -0
  688. {flextool-4.7.0 → flextool-4.7.1}/tests/test_lh2_three_region.py +0 -0
  689. {flextool-4.7.0 → flextool-4.7.1}/tests/test_min_load_rolling.py +0 -0
  690. {flextool-4.7.0 → flextool-4.7.1}/tests/test_model_builder_invest.py +0 -0
  691. {flextool-4.7.0 → flextool-4.7.1}/tests/test_model_builder_special_functions.py +0 -0
  692. {flextool-4.7.0 → flextool-4.7.1}/tests/test_non_anticipativity.py +0 -0
  693. {flextool-4.7.0 → flextool-4.7.1}/tests/test_old_flextool_importer_schema_drift.py +0 -0
  694. {flextool-4.7.0 → flextool-4.7.1}/tests/test_open_results_db.py +0 -0
  695. {flextool-4.7.0 → flextool-4.7.1}/tests/test_output_column_metadata.py +0 -0
  696. {flextool-4.7.0 → flextool-4.7.1}/tests/test_output_csv_names.py +0 -0
  697. {flextool-4.7.0 → flextool-4.7.1}/tests/test_output_metadata_renderers.py +0 -0
  698. {flextool-4.7.0 → flextool-4.7.1}/tests/test_output_work_folder_isolation.py +0 -0
  699. {flextool-4.7.0 → flextool-4.7.1}/tests/test_parameter_group_coverage.py +0 -0
  700. {flextool-4.7.0 → flextool-4.7.1}/tests/test_period_share_of_year_output.py +0 -0
  701. {flextool-4.7.0 → flextool-4.7.1}/tests/test_piecewise_validation.py +0 -0
  702. {flextool-4.7.0 → flextool-4.7.1}/tests/test_plan_union.py +0 -0
  703. {flextool-4.7.0 → flextool-4.7.1}/tests/test_plot_draw_order.py +0 -0
  704. {flextool-4.7.0 → flextool-4.7.1}/tests/test_plot_gaps.py +0 -0
  705. {flextool-4.7.0 → flextool-4.7.1}/tests/test_plot_pipeline.py +0 -0
  706. {flextool-4.7.0 → flextool-4.7.1}/tests/test_plot_plan_chunk_reconstruction.py +0 -0
  707. {flextool-4.7.0 → flextool-4.7.1}/tests/test_plot_plan_time_labels_roundtrip.py +0 -0
  708. {flextool-4.7.0 → flextool-4.7.1}/tests/test_plot_settings_seed.py +0 -0
  709. {flextool-4.7.0 → flextool-4.7.1}/tests/test_project_package_cli.py +0 -0
  710. {flextool-4.7.0 → flextool-4.7.1}/tests/test_ramp_histogram.py +0 -0
  711. {flextool-4.7.0 → flextool-4.7.1}/tests/test_read_highs_solution.py +0 -0
  712. {flextool-4.7.0 → flextool-4.7.1}/tests/test_regional_filter.py +0 -0
  713. {flextool-4.7.0 → flextool-4.7.1}/tests/test_representative_periods.py +0 -0
  714. {flextool-4.7.0 → flextool-4.7.1}/tests/test_rolling_online_carry.py +0 -0
  715. {flextool-4.7.0 → flextool-4.7.1}/tests/test_rolling_online_mintime_carry.py +0 -0
  716. {flextool-4.7.0 → flextool-4.7.1}/tests/test_rolling_online_minuptime.py +0 -0
  717. {flextool-4.7.0 → flextool-4.7.1}/tests/test_rp_alternative_name.py +0 -0
  718. {flextool-4.7.0 → flextool-4.7.1}/tests/test_rp_force_include_wiring.py +0 -0
  719. {flextool-4.7.0 → flextool-4.7.1}/tests/test_rp_solves_filter.py +0 -0
  720. {flextool-4.7.0 → flextool-4.7.1}/tests/test_run_options.py +0 -0
  721. {flextool-4.7.0 → flextool-4.7.1}/tests/test_safe_names.py +0 -0
  722. {flextool-4.7.0 → flextool-4.7.1}/tests/test_safe_text.py +0 -0
  723. {flextool-4.7.0 → flextool-4.7.1}/tests/test_scenario_colors.py +0 -0
  724. {flextool-4.7.0 → flextool-4.7.1}/tests/test_scenario_stack.py +0 -0
  725. {flextool-4.7.0 → flextool-4.7.1}/tests/test_scenarios.py +0 -0
  726. {flextool-4.7.0 → flextool-4.7.1}/tests/test_self_describing_reader.py +0 -0
  727. {flextool-4.7.0 → flextool-4.7.1}/tests/test_shared_axis_manifest.py +0 -0
  728. {flextool-4.7.0 → flextool-4.7.1}/tests/test_simple_bar_entity_color.py +0 -0
  729. {flextool-4.7.0 → flextool-4.7.1}/tests/test_solve_config.py +0 -0
  730. {flextool-4.7.0 → flextool-4.7.1}/tests/test_solve_reader.py +0 -0
  731. {flextool-4.7.0 → flextool-4.7.1}/tests/test_specification_excel_import.py +0 -0
  732. {flextool-4.7.0 → flextool-4.7.1}/tests/test_sqlite_url.py +0 -0
  733. {flextool-4.7.0 → flextool-4.7.1}/tests/test_stochastic_co2_total_price.py +0 -0
  734. {flextool-4.7.0 → flextool-4.7.1}/tests/test_stream_concat_temp_cleanup.py +0 -0
  735. {flextool-4.7.0 → flextool-4.7.1}/tests/test_support_load.py +0 -0
  736. {flextool-4.7.0 → flextool-4.7.1}/tests/test_synthesize_invest_dual.py +0 -0
  737. {flextool-4.7.0 → flextool-4.7.1}/tests/test_thread_budget.py +0 -0
  738. {flextool-4.7.0 → flextool-4.7.1}/tests/test_time_runs.py +0 -0
  739. {flextool-4.7.0 → flextool-4.7.1}/tests/test_timeline_breaks.py +0 -0
  740. {flextool-4.7.0 → flextool-4.7.1}/tests/test_timings_csv.py +0 -0
  741. {flextool-4.7.0 → flextool-4.7.1}/tests/test_toolbox_specs.py +0 -0
  742. {flextool-4.7.0 → flextool-4.7.1}/tests/test_unidirectional_connection.py +0 -0
  743. {flextool-4.7.0 → flextool-4.7.1}/tests/test_unit_online_dt_columns.py +0 -0
  744. {flextool-4.7.0 → flextool-4.7.1}/tests/test_units_of_measure.py +0 -0
  745. {flextool-4.7.0 → flextool-4.7.1}/tests/test_units_of_measure_validators.py +0 -0
  746. {flextool-4.7.0 → flextool-4.7.1}/tests/test_user_dirs_isolation.py +0 -0
  747. {flextool-4.7.0 → flextool-4.7.1}/tests/test_v52_migration.py +0 -0
  748. {flextool-4.7.0 → flextool-4.7.1}/tests/test_v63_migration.py +0 -0
  749. {flextool-4.7.0 → flextool-4.7.1}/tests/test_v64_migration.py +0 -0
  750. {flextool-4.7.0 → flextool-4.7.1}/tests/test_v65_migration.py +0 -0
  751. {flextool-4.7.0 → flextool-4.7.1}/tests/test_v66_migration.py +0 -0
  752. {flextool-4.7.0 → flextool-4.7.1}/tests/test_v67_migration.py +0 -0
  753. {flextool-4.7.0 → flextool-4.7.1}/tests/test_v68_migration.py +0 -0
  754. {flextool-4.7.0 → flextool-4.7.1}/tests/test_v69_migration.py +0 -0
  755. {flextool-4.7.0 → flextool-4.7.1}/tests/test_workdir_empty_default.py +0 -0
  756. {flextool-4.7.0 → flextool-4.7.1}/tests/test_xlsx_startup_input_round_trip.py +0 -0
  757. {flextool-4.7.0 → flextool-4.7.1}/tests/test_xlsx_v77_round_trip.py +0 -0
  758. {flextool-4.7.0 → flextool-4.7.1}/tests/test_xlsx_workflow.py +0 -0
  759. {flextool-4.7.0 → flextool-4.7.1}/tests/test_years_represented.py +0 -0
@@ -21,10 +21,12 @@ include docs/reference/parameter_groups.md
21
21
  include docs/how_to/index.md
22
22
  include docs/how_to/basics.md
23
23
  include docs/how_to/storage_hydro.md
24
+ include docs/how_to/demand_response.md
24
25
  include docs/how_to/thermal_chp.md
25
26
  include docs/how_to/investment.md
26
27
  include docs/how_to/solve_sequences.md
27
28
  include docs/how_to/stochastics.md
29
+ include docs/how_to/stochastic_examples.md
28
30
  include docs/how_to/emissions.md
29
31
  include docs/how_to/outputs.md
30
32
  include docs/how_to/performance.md
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flextool
3
- Version: 4.7.0
3
+ Version: 4.7.1
4
4
  Summary: IRENA FlexTool is an energy and power systems model for understanding the role of variable power generation in future energy systems.
5
5
  Author: IRENA FlexTool contributors
6
6
  License: © International Renewable Energy Agency 2018-2022
@@ -657,7 +657,7 @@ message_sources.py The list's sources (W-0490, upgraded, unreadabl
657
657
  | File | Purpose |
658
658
  |---|---|
659
659
  | `self_update.py` (`update_flextool`) | `git pull` + project-side migration. |
660
- | `db_migration.py` (`migrate_database`) | Walk the version chain to the current `FLEXTOOL_DB_VERSION`. |
660
+ | `db_migration/` (`migrate_database`) | Walk the version chain to the current `FLEXTOOL_DB_VERSION`: `runner.py` walks, one module per step (`v01_v25` .. `v84_branching`), `common.py` the shared helpers, `head.py` the refresh at the current version. |
661
661
  | `migration_backup.py` | The pre-migration copy (`<db>.premigration.bak`) and its atomic restore on failure; shared by `migrate_database` and the window's upgrade. |
662
662
  | `initialize_database.py` (`initialize_database`) | Create new DB from JSON template. |
663
663
  | `ensure_settings_db.py` | Idempotent settings-DB creation. |
@@ -1030,6 +1030,7 @@ columns are those of the module docstring:
1030
1030
  | `cumulative_co2` | `[group, period, value, represented]` | Running CO2 totals across rolls (`value` tonnes; `represented` the tonnes × years represented / period share of the realizing solve). |
1031
1031
  | `cumulative_commodity` | `[commodity, tier, period, p_ladder_cum_realized_mwh]` | Per-tier commodity consumption (ladder pricing). |
1032
1032
  | `cum_sim_hours` | `[period, p_ladder_cum_sim_hours]` | Running simulated-hour total per period (ladder and CO2 cap). |
1033
+ | `cumulative_flowgroup` | `[group, period, flow, hours, weight]` | Running realized net flow and hours (Σ step_duration · timestep_weight) per flow group with a cumulative flow limit (`_flowgroup_accumulators`); `weight` the years represented / period share of the latest solve that realized steps of the period (one weight per period, for the solve row). Read as `flowgroup_realized` into the carry of `{max,min}Cumulative_flow_{period,solve}`. |
1033
1034
 
1034
1035
  The other attributes are not carriers: `unit_detail` / `online_left_out`
1035
1036
  ([Solve-level detail reduction](#solve-level-detail-reduction)), and
@@ -88,6 +88,8 @@ Useful flags:
88
88
  | `--groups timeline,model,solve_basics,basics` | Restrict to the listed parameter groups (same semantics as the GUI picker). Sheets that lose all their columns are dropped, unless listed in `always_include_with_groups` in `export_settings.yaml`. |
89
89
  | `--include-advanced` | Include advanced sheets (solve sequences, periods available, stochastic data) even when empty. |
90
90
  | `--old-format` | Emit the legacy v1 layout instead of v2 self-describing — only needed for tooling pinned to the older format. |
91
+ | `--omit-empty-columns` | Leave out the parameter columns that have no value on their sheet, for a narrower workbook of an existing model. The reference list to the right of each sheet still names every parameter: to add one, insert a column before the blank column and type its name in the parameter row and its data type in the data type row. A sheet with no values at all keeps its columns. Not with `--old-format`. |
92
+ | `--units-row` | Show only each parameter's unit (MW, CUR/MWh, `-` for a share; empty for a choice or a name) in the first row of the parameter sheets, labelled `unit`, instead of its description. The full description stays in the note on the parameter name. Not with `--old-format`. |
91
93
 
92
94
  A realistic minimal-template export:
93
95
 
@@ -113,6 +115,17 @@ embeds its own header describing what it contains:
113
115
 
114
116
  A few practical notes:
115
117
 
118
+ - The header rows and the key columns (alternative, entity, index) stay in view while you scroll; the
119
+ definition column scrolls away. Every other parameter column has a slightly different background.
120
+ - The parameter columns are ordered by parameter group; the name of each parameter has its group's colour.
121
+ Every group after the first is an Excel outline group (the +/- buttons above the column letters). A group
122
+ with no value on the sheet starts collapsed; open it with +.
123
+ - The `index:` column holds the index of the sheet's maps (period, time step, solver argument, ...). When the
124
+ parameters of one sheet have different index names, an `index name` row under the data types gives each
125
+ column's own.
126
+ - The description row shows the first four lines of each parameter's description. The full text is in the note
127
+ (comment) on the parameter name: hover over the name to read it.
128
+
116
129
  - Sheets whose parameter group was not selected at export time are simply
117
130
  absent. Re-export later if you decide to start editing them.
118
131
  - When **any** parameter on a sheet carries a database default, a
@@ -132,8 +145,19 @@ A few practical notes:
132
145
  spreadsheet locale to one convention (typically English/US) and the
133
146
  column format to plain `Number` for data columns.
134
147
 
148
+ !!! note "Number precision"
149
+ The export writes every number exactly, so a value such as 0.30000000000000004 reads back unchanged.
150
+ LibreOffice keeps only 15 significant digits when it saves an xlsx file again, so a workbook re-saved in
151
+ LibreOffice reads back such values rounded to 15 digits.
152
+
135
153
  ## Importing edited data back
136
154
 
155
+ !!! note "Workbooks from FlexTool 4.7.1 need FlexTool 4.7.1 or later"
156
+ A link sheet (a relationship without parameters, such as `group_node`) has `alternative` and
157
+ `entity existence` columns when an entity is switched on or off in an alternative. FlexTool 4.7.0 reads those
158
+ cells as part of the entity names, so it loses the memberships and their activity. Import such a workbook
159
+ with FlexTool 4.7.1 or later.
160
+
137
161
  ### From the FlexTool GUI
138
162
 
139
163
  Add the edited `.xlsx` as an input source via the **Add input source**
@@ -0,0 +1,135 @@
1
+ # Demand response
2
+
3
+ Demand response is demand that changes with the price or the needs of the power system: it is cut when power is
4
+ scarce, or moved to cheaper hours. FlexTool has no separate demand response entity. Instead, it is built from units,
5
+ storage nodes and connections. The sections below go from a simple price-sensitive reduction to EV smart charging.
6
+ They share one small model in `demand_response.sqlite`, with one scenario per section.
7
+
8
+ **The model** (alternative *base*, scenario *no_dr*). It has 48 one-hour time steps: a Friday (t0001–t0024) and a
9
+ Saturday (t0025–t0048). The demand node *town* is served by *base_plant* (700 MW, 40 €/MWh) and *peak_plant* (300
10
+ MW, 150 €/MWh). Both are units without inputs, and their cost is `other_operational_cost` on the
11
+ `unit__outputNode`. Demand that the plants cannot serve goes unserved at the `penalty_up` of *town*, 3000 €/MWh.
12
+ The demand (MW) is:
13
+
14
+ | Friday | 00–05 | 06–07 | 08–16 | 17–18 | 19–20 | 21–23 |
15
+ |---|---|---|---|---|---|---|
16
+ | demand | 680 | 800 | 950 | 1080 | 1130 | 780 |
17
+
18
+ | Saturday | 00–07 | 08–16 | 17–20 | 21–23 |
19
+ |---|---|---|---|---|
20
+ | demand | 550 | 820 | 980 | 650 |
21
+
22
+ So the price of *town* (`price_t` in the `node` results) is 40 €/MWh below 700 MW and 150 €/MWh between 700 and
23
+ 1000 MW. Above 1000 MW it is 3000 €/MWh. In *no_dr*, 80 MW is unserved at Friday 17–18 and 130 MW at 19–20
24
+ (*Loss of load* in the node balance, and the `slack_up_t` of *town* per time step).
25
+
26
+ The scenarios *dr_decrease_demand*, *dr_increase_demand* and *dr_shift_demand* of `examples.sqlite` are
27
+ smaller versions of the same ideas on the node *west*.
28
+
29
+ ## How to model price-sensitive demand reduction
30
+
31
+ **(demand_response.sqlite, scenario: dr_price)**
32
+ ***base - dr_price***
33
+
34
+ Consumers who are willing to cut their consumption when the price exceeds a given level are modelled as a unit that
35
+ feeds the demand node. Each MWh the unit "produces" is a MWh of demand that is not consumed. The unit *dr_reduce*
36
+ has:
37
+
38
+ - a `unit__outputNode` *dr_reduce – town*, and no input;
39
+ - `existing`: 150 [MW], the largest reduction;
40
+ - `other_operational_cost` on *dr_reduce – town*: 200 [€/MWh], the price at which the consumers start to cut.
41
+
42
+ The model uses the reduction only when it is cheaper than the other ways to serve the demand, that is, when the
43
+ price would otherwise be above 200 €/MWh. In *dr_price*, *dr_reduce* cuts 80 MW at Friday 17–18 and 130 MW at
44
+ 19–20, exactly the demand that was unserved in *no_dr*. In all other hours the price is at most 150 €/MWh and
45
+ *dr_reduce* stays at 0. The price at Friday 17–20 is now 200 €/MWh instead of 3000 €/MWh. The reduction is the
46
+ `unit__node` result `flow_t` of *dr_reduce – town*.
47
+
48
+ ## How to model a price-elastic demand (stepwise price blocks)
49
+
50
+ **(demand_response.sqlite, scenario: dr_blocks)**
51
+ ***base - dr_price - dr_blocks***
52
+
53
+ A demand curve, where the demand falls step by step as the price rises, is a set of reduction units with rising
54
+ costs. Each unit is one block of the curve. The alternative *dr_blocks* builds on *dr_price*:
55
+
56
+ - *dr_reduce* gets `existing` 50 [MW] and becomes the middle block (200 €/MWh);
57
+ - *dr_reduce_low*: 50 MW at 100 €/MWh (a block below the cost of the peak plant);
58
+ - *dr_reduce_high*: 50 MW at 500 €/MWh.
59
+
60
+ Results:
61
+
62
+ - *dr_reduce_low* cuts 50 MW in every hour with demand above 700 MW, where the price would otherwise be 150 €/MWh.
63
+ The price there is still 150 €/MWh, set by *peak_plant*.
64
+ - *dr_reduce* cuts 30 MW at Friday 17–18 and sets the price there to 200 €/MWh. It cuts its full 50 MW at 19–20.
65
+ - *dr_reduce_high* cuts 30 MW at Friday 19–20 only (700 + 300 + 50 + 50 + 30 = 1130 MW). The price there is
66
+ 500 €/MWh.
67
+
68
+ No demand goes unserved. More blocks give a finer curve.
69
+
70
+ ## How to make demand response available only part of the time
71
+
72
+ **(demand_response.sqlite, scenario: dr_window)**
73
+ ***base - dr_price - dr_window***
74
+
75
+ Many demand response programmes can be called only at given times, e.g. on weekday daytime when an office or a
76
+ factory is operating. The unit `availability` time series sets this. The alternative *dr_window* builds on
77
+ *dr_price* and gives *dr_reduce* an `availability` of 1 on Friday 08–18 (t0009–t0019) and 0 at every other hour.
78
+
79
+ In *dr_window*, *dr_reduce* cuts 80 MW at Friday 17–18, as in *dr_price*. At 19–20 it is outside its window, so it
80
+ cuts nothing, and 130 MW of demand goes unserved although the price is 3000 €/MWh. On Saturday it is not available
81
+ at all.
82
+
83
+ An `availability` between 0 and 1 gives the share of the capacity that can be called, e.g. 0.3 for a programme that
84
+ can call 30 % of its 150 MW at night.
85
+
86
+ ## How to model load shifting as a storage
87
+
88
+ **(demand_response.sqlite, scenario: dr_shift)**
89
+ ***base - dr_shift***
90
+
91
+ Some consumption can be moved to another time, e.g. heating, cooling or industrial batches. Moving it means
92
+ consuming less at one time and more at another, and that is a storage: a storage node connected to the demand node.
93
+ Energy that flows from the storage node to *town* is consumption cut now. Energy that flows from *town* to the
94
+ storage node is that consumption made up at another time. The alternative *dr_shift* adds:
95
+
96
+ - node *town_shift*: `node_type` *storage*, `existing` 500 [MWh] (how much consumption can be moved),
97
+ `storage_binding_method` *bind_within_solve* (all the consumption that is moved is made up within the solve),
98
+ and `penalty_up` / `penalty_down` 3000;
99
+ - connection *shift_link* between *town* and *town_shift*: `existing` 150 [MW] (how much consumption can be moved
100
+ in an hour), `efficiency` 1, `transfer_method` *variable_cost_only* and `other_operational_cost` 60 [€/MWh]. The
101
+ cost applies in both directions and stands for the lost comfort or wear of moving consumption: 120 €/MWh for each
102
+ MWh moved and made up.
103
+
104
+ In *dr_shift* the storage delivers 80 MW at Friday 17–18 and 130 MW at 19–20 (420 MWh), and no demand goes
105
+ unserved. The 420 MWh are consumed in hours with a price of 40 €/MWh: Friday 00–05 (20 MW, the room left on
106
+ *base_plant*), Saturday 07:00 and Saturday 21–23. Some of it is made up on Saturday night. The storage cycles over
107
+ the solve, so this energy also covers the start of Friday. Consumption is not moved out of the hours with a price
108
+ of 150 €/MWh, since a 110 €/MWh price difference does not pay the 120 €/MWh of a round trip. With a lower
109
+ `other_operational_cost`, consumption would also move from those hours to the 40 €/MWh hours. When several hours
110
+ are equally cheap, the hours the solver picks are one choice of several equally good ones.
111
+
112
+ Energy that is moved can also be lost (e.g. a building that cools down): give *town_shift* a
113
+ `self_discharge_loss`. The storage does not require the moved consumption to be made up within the same day or
114
+ within a given number of hours. That would need a storage balance every N hours, which is a possible future
115
+ option.
116
+
117
+ ## How to model EV smart charging
118
+
119
+ **(demand_response.sqlite, scenario: ev_smart_charging)**
120
+ ***base - ev_charging***
121
+
122
+ A fleet of electric vehicles is a storage that is connected to the grid only while the cars are plugged in. Its
123
+ energy is used for driving whether the cars are plugged in or not. The alternative *ev_charging* adds:
124
+
125
+ - node *ev_battery*: `node_type` *storage*, `existing` 300 [MWh] (the fleet's battery energy),
126
+ `storage_binding_method` *bind_within_solve*, and `inflow` −40 [MW] at 07–08 and 16–17 each day (the driving,
127
+ 160 MWh a day);
128
+ - unit *ev_charger* from *town* (`unit__inputNode`) to *ev_battery* (`unit__outputNode`): `existing` 60 [MW],
129
+ `efficiency` 0.9, and `availability` 1 at 00–06 and 18–23, 0 at 07–17 while the cars are away.
130
+
131
+ The charger cannot charge while `availability` is 0, so the battery must hold the energy for the drives during the
132
+ day. In *ev_smart_charging* the charger has no flow at 07–17. It charges 320 MWh into *ev_battery* over the two
133
+ days, 355.6 MWh from *town*, and all of it in hours with a price of 40 €/MWh. It does not charge in the Friday
134
+ evening, where demand is unserved. For vehicle-to-grid, add a second unit from *ev_battery* to *town* with the same
135
+ `availability`.
@@ -19,6 +19,14 @@ Each example will either include an example database file that is located in the
19
19
  - [How to create a hydro reservoir](storage_hydro.md#how-to-create-a-hydro-reservoir)
20
20
  - [How to create a hydro pump storage](storage_hydro.md#how-to-create-a-hydro-pump-storage)
21
21
 
22
+ ## [Demand response](demand_response.md)
23
+
24
+ - [How to model price-sensitive demand reduction](demand_response.md#how-to-model-price-sensitive-demand-reduction)
25
+ - [How to model a price-elastic demand (stepwise price blocks)](demand_response.md#how-to-model-a-price-elastic-demand-stepwise-price-blocks)
26
+ - [How to make demand response available only part of the time](demand_response.md#how-to-make-demand-response-available-only-part-of-the-time)
27
+ - [How to model load shifting as a storage](demand_response.md#how-to-model-load-shifting-as-a-storage)
28
+ - [How to model EV smart charging](demand_response.md#how-to-model-ev-smart-charging)
29
+
22
30
  ## [Thermal, CHP and reserves](thermal_chp.md)
23
31
 
24
32
  - [How to create combined heat and power (CHP)](thermal_chp.md#how-to-create-combined-heat-and-power-chp)
@@ -51,6 +59,11 @@ Each example will either include an example database file that is located in the
51
59
 
52
60
  - [How to use stochastics (representing uncertainty)](stochastics.md#how-to-use-stochastics-representing-uncertainty)
53
61
 
62
+ ## [Stochastic examples](stochastic_examples.md)
63
+
64
+ - [How to compare the realization methods of a stochastic rolling dispatch](stochastic_examples.md#how-to-compare-the-realization-methods-of-a-stochastic-rolling-dispatch)
65
+ - [How to compare stochastic investment choices](stochastic_examples.md#how-to-compare-stochastic-investment-choices)
66
+
54
67
  ## [Emissions and system limits](emissions.md)
55
68
 
56
69
  - [How to add CO2 emissions, costs and limits](emissions.md#how-to-add-co2-emissions-costs-and-limits)
@@ -54,7 +54,7 @@ Large systems that naturally split into regions (e.g. an interconnected pan-cont
54
54
 
55
55
  Set up the regions in the database:
56
56
 
57
- - create one `group` per region, list its `node` members via `group__node`; units and connections belong to the region of their nodes (listing them with `group__unit` / `group__connection` is optional). A unit that is not listed and converts through the unit itself (several inputs or outputs, or one input and one output with a `piecewise_linear_efficiency` curve of two or more segments) must have all its nodes in one region. A unit with one input and one output and a single efficiency (one direct flow) is cut between two regions like a connection, unless it has online variables (a `startup_method`) or reserves: then it is refused, as such a connection is. A one-variable connection (`no_losses_no_variable_cost`) between regions works in both directions; a DC power-flow line (`dc_power_flow_with_angles`) between regions is refused: put both its nodes in one region
57
+ - create one `group` per region, list its `node` members via `group__node`; units and connections belong to the region of their nodes (listing them with `group__unit` / `group__connection` is optional). A unit that converts through the unit itself (several inputs or outputs, or one input and one output with a `piecewise_linear_efficiency` curve of two or more segments) with nodes in more than one region is solved in the master (see [Groups](../reference/groups.md#decomposition-spatial-benders) for what it then cannot have); the run log line `Benders master: …` counts the connections and the `unit__inputNode` / `unit__outputNode` arcs in the master. A unit with one input and one output and a single efficiency (one direct flow) is cut between two regions like a connection, unless it has online variables (a `startup_method`) or reserves: then it is refused, as such a connection is. A one-variable connection (`no_losses_no_variable_cost`) between regions works in both directions; a DC power-flow line (`dc_power_flow_with_angles`) between regions is refused: put both its nodes in one region
58
58
  - set the group parameter `decomposition_method` to *benders_regional* on each region group
59
59
  - declare at least two such region groups in the active scenario
60
60
 
@@ -0,0 +1,48 @@
1
+ # Stochastic examples
2
+
3
+ Two small models in `stochastics.sqlite` that put the stochastic settings side by side: the realization methods of a stochastic rolling dispatch, and the investment choices of a stochastic investment solve. [Stochastics](stochastics.md) explains every setting used here.
4
+
5
+ ## How to compare the realization methods of a stochastic rolling dispatch
6
+ **(stochastics.sqlite scenarios: rolling_deterministic, rolling_within_solve, rolling_separate_dispatch, rolling_perfect_within_solve, rolling_perfect_separate_dispatch)**
7
+
8
+ The model (alternative *rolling_demo*): three periods *period1* - *period3* of three days each (216 hours, one time step per hour), each representing one year, and one rolling solve *rolling_dispatch* with `rolling_solve_jump` 24 and `rolling_solve_horizon` 48: each roll dispatches a day and looks a day ahead. One node *elec* with a daily demand curve (peak at 19:00); *wind_farm* 650 MW on the stochastic profile *wind_cf*; *coal_units* 3 x 100 MW (`startup_method` *integer_fix_in_uc*, minimum up time 8 h, start-up 5000 EUR a unit); *gas_peaker* 350 MW (`startup_method` *linear*); *battery* 400 MWh with the 100 MW *battery_inverter*. The wind farm and the battery are in the `include_stochastics` group *rolling_stochastic*.
9
+
10
+ The wind profile is a (branch, analysis_time, time) map. At the start of each day (t0001, t0025, ... t0193) there are two forecasts, *high* and *low*, of the next 48 hours, and the actual wind of that day in branch *actual*. The solve's `stochastic_branches` gives, at each of these times, *high* and *low* with weight 0.5 each (`realized: no`) and *actual* (`realized: yes`). The scenarios differ only in `dispatch_realization_method`, and two of them in the forecasts:
11
+
12
+ - **rolling_deterministic** (rolling_demo): `deterministic`. The forecasts are not solved: each roll reads the actual wind as one timeline, also in its look-ahead, so it knows the next day's wind exactly. This is the perfect-foresight benchmark of the rolling solve; warning W-0593 says that the forecasts are ignored.
13
+ - **rolling_within_solve** (rolling_demo, within_solve): one solve per roll. The day is dispatched once, on the actual wind, under the period's own name; from the end of the day the roll looks ahead with the forecasts made then, each in its own branch period (*period1_high*, *period1_low*, ...). The day's units online and battery use hedge against both forecasts of the next day.
14
+ - **rolling_separate_dispatch** (rolling_demo, separate_dispatch): two solves per roll. *rolling_dispatch_roll_k* is stochastic from the roll's first hour on the forecasts made then, and ties across the forecasts only the units online of *coal_units* (*integer_fix_in_uc*) over the day. *rolling_dispatch__realized_dispatch_roll_k* keeps that commitment, dispatches the day on the actual wind and looks ahead with the forecasts made at the end of the day. The peaker (*linear*) and the battery are decided again there.
15
+ - **rolling_perfect_within_solve** and **rolling_perfect_separate_dispatch** (rolling_demo, perfect_forecast, the method): alternative *perfect_forecast* replaces the forecasts with one forecast *exact* (weight 1) equal to the actual wind. Both methods then give the deterministic result, roll by roll.
16
+
17
+ Results over the 216 hours. They are the realized operation only: the look-ahead of the forecasts is not in the results. The cost is the fuel, start-ups, battery inverter and unserved energy of the realized hours (the sum of `costs__dt`). Starts and energies are over the simulated hours.
18
+
19
+ | scenario | solves | cost (k EUR) | coal starts | peaker starts (350 MW each) | battery discharged (MWh) | battery charged (MWh) | coal (GWh) | peaker (GWh) | wind (GWh) | unserved (MWh) |
20
+ |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|
21
+ | rolling_deterministic | 9 | 1,853.6 | 10 | 2.0 | 2,682 | 3,190 | 41.05 | 6.95 | 65.95 | 0.0 |
22
+ | rolling_within_solve | 9 | 1,854.1 | 10 | 2.1 | 2,652 | 3,155 | 41.05 | 6.95 | 65.95 | 0.0 |
23
+ | rolling_separate_dispatch | 18 | 1,876.9 | 11 | 2.1 | 2,280 | 2,714 | 41.32 | 6.93 | 65.63 | 0.0 |
24
+ | rolling_perfect_within_solve | 9 | 1,853.6 | 10 | 2.0 | 2,682 | 3,190 | 41.05 | 6.95 | 65.95 | 0.0 |
25
+ | rolling_perfect_separate_dispatch | 18 | 1,853.6 | 10 | 2.0 | 2,682 | 3,190 | 41.05 | 6.95 | 65.95 | 0.0 |
26
+
27
+ *rolling_within_solve* dispatches each day on the actual wind and is uncertain only about the next day, so it comes close to the benchmark. *rolling_separate_dispatch* commits the coal units for the day before it sees the day's actual wind, so it starts a coal unit more and uses the battery less. With a perfect forecast both methods give the benchmark exactly.
28
+
29
+ ## How to compare stochastic investment choices
30
+ **(stochastics.sqlite scenarios: invest_operations_only, invest_after_reveal_period, invest_then_dispatch)**
31
+
32
+ The model (alternative *invest_demo*): two periods *y2030* and *y2035* of four hours each, each representing 5 years (`years_represented`), no discounting (`social_discount_rate` 0). One node *town* whose demand is 100 MW in y2030; in y2035 it is 160 MW in forecast *high* and 120 MW in forecast *low* (weight 0.5 each). The demand is a stochastic `inflow` (branch, analysis_time, time) with every forecast made at t0001, and *town* is in the `include_stochastics` group *invest_stochastic*. The only supply is *new_plant*, built by the model (`invest_method` *invest_no_limit*): `invest_cost` 500 EUR/kW in y2030 and 1500 EUR/kW in y2035, `discount_rate` 0, `lifetime_technical` 10 years, no operating cost. Unserved energy costs 3000 EUR/MWh, so demand is always met.
33
+
34
+ The solve *invest_plan* (`solve_mode` *single_solve*) invests in both periods (`invest_periods`) and realizes y2030 only (`realized_invest_periods` and `realized_periods`): y2035 is look-ahead. Its forecasts start at y2030 (`stochastic_branches` at t0001), with branch *actual* (`realized: yes`, the high demand) for the realization dispatch. The uncertainty is about the 2035 demand: the forecasts do not differ in 2030.
35
+
36
+ With a `discount_rate` of 0 a plant pays `invest_cost` x 1000 / `lifetime_technical` a year for each modelled year it serves (see [Investment parameters](investment.md)). A MW built in 2030 serves both periods, 10 years: 500 x 100 x 10 = 500 000 EUR. A MW built in 2035 serves 5 modelled years: 1500 x 100 x 5 = 750 000 EUR. Building early is cheaper per MW, but a plant built early for a future that does not come is wasted.
37
+
38
+ - **invest_operations_only** (invest_demo): `invest_solve_branching_method` is not set, so it is `operations_only`: every period's investment is one decision for both forecasts. The y2035 fleet must serve the high demand, and building it in 2030 is cheaper, so the solve builds 160 MW in 2030: 160 x 500 000 = 80.0 M EUR.
39
+ - **invest_after_reveal_period** (invest_demo, after_reveal_period): `investments_after_reveal_period`. The y2030 investment is still one decision for both forecasts, but the y2035 investment follows each forecast. The solve builds 120 MW in 2030 (the low demand) and, in the forecast *high*, 40 MW more in 2035: 120 x 500 000 + 0.5 x 40 x 750 000 = 75.0 M EUR. Building a 121st MW in 2030 would cost 500 000 EUR and save 750 000 EUR only in the forecast *high*, worth 375 000 EUR. Being able to adapt later is worth 80.0 − 75.0 = 5.0 M EUR here.
40
+ - **invest_then_dispatch** (invest_demo, after_reveal_period, invest_then_dispatch): the structure that warning W-0640 points to, an investment solve followed by a dispatch solve. `model.solves` is *invest_first*, *dispatch_2030*. *invest_first* is *invest_plan* with `investments_after_reveal_period`, no `realized_periods` and no realized branch: it only decides and realizes the y2030 investment. *dispatch_2030* is a dispatch solve of y2030 (no `invest_periods`; `realized_periods` y2030) with its own `stochastic_branches` (the forecasts and *actual*) and `dispatch_realization_method` *separate_dispatch*. It starts from the 120 MW that *invest_first* realized. Its forecasts do not differ in 2030, and *new_plant* has no units online to commit, so the result equals the realization dispatch of *invest_after_reveal_period*; note W-0588 says that the realization keeps nothing of the stochastic solve. The structure pays off when the dispatch step differs from the investment solve, for example with a finer time resolution, a full year after representative periods, or forecasts made closer to the operation.
41
+
42
+ | scenario | solves | objective of the investment solve (M EUR) | y2030 investment (MW) | its yearly cost (M EUR) | y2030 dispatch (MWh) |
43
+ |---|---|---:|---:|---:|---:|
44
+ | invest_operations_only | invest_plan, invest_plan__realized_dispatch | 80.0 | 160 | 16.0 | 400 |
45
+ | invest_after_reveal_period | invest_plan, invest_plan__realized_dispatch | 75.0 | 120 | 12.0 | 400 |
46
+ | invest_then_dispatch | invest_first, dispatch_2030, dispatch_2030__realized_dispatch | 75.0 | 120 | 12.0 | 400 |
47
+
48
+ The results hold the realized y2030 investment and the y2030 dispatch. The y2035 investments are look-ahead, and under `investments_after_reveal_period` they differ per forecast, so they are only in the `model.output_horizon` dump. To decide them, add a later solve for y2035 (see "Investing year by year under uncertainty" in [Stochastics](stochastics.md#investing-year-by-year-under-uncertainty-fan-realize-next-year)). For a perfect-foresight benchmark, run a scenario without `stochastic_branches` and with the actual demand as a plain `inflow`.
@@ -60,6 +60,8 @@ So a **dispatch** solve commits its committed part (shared storage / online / re
60
60
 
61
61
  ## Stochastic period solve (investment or multi-period)
62
62
 
63
+ An example that compares `operations_only` with `investments_after_reveal_period`, and an investment solve followed by a dispatch solve, on one small model: [How to compare stochastic investment choices](stochastic_examples.md#how-to-compare-stochastic-investment-choices).
64
+
63
65
  A stochastic period solve is a solve that is not rolling, over one period or several, with `stochastic_branches`. With `invest_periods` or `realized_invest_periods` it is an investment solve, set up with `invest_solve_branching_method` (see "Stochastic investment" below); without them it is a dispatch solve over its periods, set up with `dispatch_realization_method` (the methods are listed under "Stochastic rolling dispatch" and apply to single solves too).
64
66
 
65
67
  ### Single solve stochastics
@@ -71,10 +73,10 @@ To set up a stochastic solve, we need three things: the stochastic branch inform
71
73
  The information about the branches is set with the *solve* parameter `stochastic_branches`. This is a 4-dimensional map. (Edit -> choose map -> right click -> add columns.) The example is a dispatch solve (it invests nothing): its forecasts are solved only when it also sets `dispatch_realization_method` to `within_solve` (as the example does) or `separate_dispatch`; with the default, `deterministic`, the solve uses only the data of its `realized: yes` branch (see "Rolling horizon stochastics" for the three methods). An investment solve solves its forecasts without that setting (see "Stochastic investment").
72
74
  The columns are: period, branch, analysis_time (starting time of the branch), realized (yes/no), and the value is the branch's **probability weight**. In this example we have forecast branches (e.g. mid, upper and lower) representing the wind forecasts. The weights set each branch's probability in the objective function (expected model cost) and are normalized so that the total weight is always one across the forecast branches at each start time. The *realized* flag is optional: at most one branch per start time may be flagged `yes`, and it only designates which branch's data are the actuals used by the realization dispatch (above) — a realized-flagged branch is **not** counted among the weighted forecasts. In this example all four branches (realized, upper, lower and mid) are forecasts and none is flagged `yes`: the fan is pure forecasts, so the solve reports no realized dispatch (its normal results are empty apart from the objective), and the example sets `output_horizon` (below) to write the forecast branches to the raw dump. Flag one branch `realized: yes` to get a realization dispatch of the 48 hours.
73
75
 
74
- The stochastic wind timeseries are set with the same *profile* parameter `profile`, but with a three-dimensional map instead of the regular one-dimensional one. The tool recognizes a stochastic timeseries from the dimensions of the data. The three dimensions are: branch, analysis_time and time. The model reads the branch-specific series for each forecast branch; where a forecast branch period has no stochastic data available for part of the horizon, it falls back to the profile's non-stochastic value, if one is given. A forecast branch period reads the series whose `analysis_time` is the solve's fan start (the step at which the solve branches): the solve decides then, so it uses only the forecasts made then. One series per branch given at the fan's `analysis_time` serves every later period of the horizon, and it must cover them: where it has no value for a time step of a later period but a series given later (at that period's own first time step, for example the forecast meant for the next solve) has one, the run stops with a configuration error naming the entity, the parameter, the solve and the time steps. Where the fan's series has a value, a series given later is not read by this solve; it serves the solve or roll that fans out at its `analysis_time`. Every period before the reveal (before the forecasts branch out) reads only the series of the realized branch given at the solve's start, its first time step: never the fan-start series and never a series given at a later period's own first time step (a forecast made after the solve starts, information the solve does not have yet). That series must cover every time step of these periods; where it does not, the run stops with a configuration error naming the entity, the parameter, the solve, the period, the time steps and the forecasts made at other times that do have values there (FlexTool never fills them with a later forecast or a default value). A forecasts-only fan (no branch marked `realized: yes`) has no series for the periods before it, and FlexTool does not pick one of the forecasts: a stochastic value read there is a configuration error too. Designate a realized branch (it provides the shared data before the fan) or give the parameter a value without forecasts. A model whose first periods are deterministic (for example 2030 and 2035) and whose later period fans out (2040) therefore gives one series under the realized branch at the solve's start that covers 2030 and 2035, and the forecasts at 2040's first step.
76
+ The stochastic wind timeseries are set with the same *profile* parameter `profile`, but with a three-dimensional map instead of the regular one-dimensional one. The tool recognizes a stochastic timeseries from the dimensions of the data. The three dimensions are: branch, analysis_time and time. The model reads the branch-specific series for each forecast branch. A forecast branch period reads the series whose `analysis_time` is the solve's fan start (the step at which the solve branches): the solve decides then, so it uses only the forecasts made then. One series per branch given at the fan's `analysis_time` serves the fan's period and every later period of the horizon, and it must cover every time step of them. Where it has no value for a time step, the run stops with a configuration error before the solve, naming the entity, the parameter, the forecast, the solve and the first time step without a value; FlexTool does not fill the step with the default value or with the series of another branch (such as the realized one). When a series given later (at a later period's own first time step, for example the forecast meant for the next solve) has a value there, the error names it: a solve must not use a forecast made after it branches. Where the fan's series has a value, a series given later is not read by this solve; it serves the solve or roll that fans out at its `analysis_time`. Every period before the reveal (before the forecasts branch out) reads only the series of the realized branch given at the solve's start, its first time step: never the fan-start series and never a series given at a later period's own first time step (a forecast made after the solve starts, information the solve does not have yet). That series must cover every time step of these periods; where it does not, the run stops with a configuration error naming the entity, the parameter, the solve, the period, the time steps and the forecasts made at other times that do have values there (FlexTool never fills them with a later forecast or a default value). A forecasts-only fan (no branch marked `realized: yes`) has no series for the periods before it, and FlexTool does not pick one of the forecasts: a stochastic value read there is a configuration error too. Designate a realized branch (it provides the shared data before the fan) or give the parameter a value without forecasts. A model whose first periods are deterministic (for example 2030 and 2035) and whose later period fans out (2040) therefore gives one series under the realized branch at the solve's start that covers 2030 and 2035, and the forecasts at 2040's first step.
75
77
  The other parameters documented as "stochastic time" in the reference (`availability` of units and nodes, unit `efficiency` and `min_load`, `other_operational_cost` of unit inputs and outputs, `reservation`, `penalty_up` and `penalty_down`, node `inflow`) take the same three-level map and are read the same way; an entity's value is read regardless of whether it is in an `include_stochastics` group — the group changes HOW it is read, not whether it is read at all (below). Giving a value to only some of a reveal's forecast branches and leaving the rest out is a configuration error (naming the entity, the parameter and the branches left out); give every branch a value, or none.
76
78
 
77
- The parts of the model that will use stochastic data **per branch** are chosen with a *group* parameter `include_stochastics`: the units, nodes and connections added to this group read the matching forecast branch's own value on every branch period (if available). Here we add the unit *wind_plant* to this group. A profile is read per profile, not per user: when any unit, node or connection that uses a stochastic-time profile is in an `include_stochastics` group, every user of that profile reads the forecast branch's own series, including users outside the group. To keep one of two wind plants on a single series, give it its own non-stochastic profile. An entity with a stochastic-time value that is in no such group still reads the series — every one of its branch periods reads the single value of the designated realized branch rather than its own branch's value. A forecasts-only fan (no branch flagged `realized: yes`) has no such value, so a stochastic-time value of an entity outside every `include_stochastics` group is a configuration error there, naming the entity and the parameter — add the entity to the group, designate a realized branch, or give the parameter a non-stochastic value. Inside the group a forecasts-only fan is valid: every forecast reads its own branch. The period label (the original name of the period that opens the fan, see "Stochastics over multiple periods") has no dispatch, so it needs no value of its own. The realization dispatch reads the designated branch's value for every entity. A deterministic solve that declares no `stochastic_branches` at all takes the designated realized branch's value too, so authoring a stochastic-time value there without one is a configuration error, unless a realized branch elsewhere (e.g. the stochastic solve whose realization dispatch it is) was projected onto it.
79
+ The parts of the model that will use stochastic data **per branch** are chosen with a *group* parameter `include_stochastics`: the units, nodes and connections added to this group read the matching forecast branch's own value on every branch period. A forecast branch with no values at all at the fan's `analysis_time` reads the series of the realized branch instead; a forecast branch that has values there must cover every time step of the horizon, or the run stops with a configuration error (FlexTool does not fill the gaps with the realized series). Here we add the unit *wind_plant* to this group. A profile is read per profile, not per user: when any unit, node or connection that uses a stochastic-time profile is in an `include_stochastics` group, every user of that profile reads the forecast branch's own series, including users outside the group. To keep one of two wind plants on a single series, give it its own non-stochastic profile. An entity with a stochastic-time value that is in no such group still reads the series — every one of its branch periods reads the single value of the designated realized branch rather than its own branch's value. A forecasts-only fan (no branch flagged `realized: yes`) has no such value, so a stochastic-time value of an entity outside every `include_stochastics` group is a configuration error there, naming the entity and the parameter — add the entity to the group, designate a realized branch, or give the parameter a non-stochastic value. Inside the group a forecasts-only fan is valid: every forecast reads its own branch. The period label (the original name of the period that opens the fan, see "Stochastics over multiple periods") has no dispatch, so it needs no value of its own. The realization dispatch reads the designated branch's value for every entity. A deterministic solve that declares no `stochastic_branches` at all takes the designated realized branch's value too, so authoring a stochastic-time value there without one is a configuration error, unless a realized branch elsewhere (e.g. the stochastic solve whose realization dispatch it is) was projected onto it.
78
80
 
79
81
  An option exists to look at the stochastic (forecast-branch) horizons for debugging your system: the *model* parameter `output_horizon`. It does not change the normal results (they hold the realized rows only, with or without the option); instead `output_parquet/<scenario>/horizon/` gets one raw parquet per LP variable and constraint with every row of every solve (forecast branches and rolling look-ahead included), a `realized` column marking the rows that reach the normal results, and the raw primal values, reduced costs and duals (see [Results](../results.md)). The values are raw solver values, without cost processing.
80
82
 
@@ -176,6 +178,8 @@ A decision maker who invests once a year, each time knowing the past but not the
176
178
 
177
179
  ## Stochastic rolling dispatch
178
180
 
181
+ An example that runs the same rolling solve with each `dispatch_realization_method`, and with a perfect forecast: [How to compare the realization methods of a stochastic rolling dispatch](stochastic_examples.md#how-to-compare-the-realization-methods-of-a-stochastic-rolling-dispatch).
182
+
179
183
  A rolling solve (`solve_mode` *rolling_window*) with `stochastic_branches` is a dispatch solve: its rolls build no investment (invest in a solve before it), so `invest_solve_branching_method` is refused there. `dispatch_realization_method` sets how its forecasts are solved and realized (the methods are listed below; they apply to single dispatch solves too). Representative periods are refused in a rolling solve.
180
184
 
181
185
  ### Rolling horizon stochastics
@@ -193,7 +197,7 @@ A rolling `within_solve` or `separate_dispatch` solve needs forecasts at the tim
193
197
 
194
198
  Each roll fans out once: a realization roll (`within_solve`, and the realization of `separate_dispatch`) at the end of its jump, the other rolls at the first reveal in their horizon; the reveals later in its horizon belong to the rolls that fan out there. Forecasts declared inside a roll's horizon at a point where no roll fans out are ignored, with one warning per run naming them (the debug log gives the rolls that reach them). A `realized: yes` row there is an error naming the roll in the rolling solves that keep the earlier realization; in the others the jumps read it as one more realized series. Every roll needs a forecast: at its start or where it fans out later in its horizon. A roll whose horizon reaches no forecast of `stochastic_branches` stops the run with a configuration error naming the roll, its start and its horizon. The `realized: yes` row where each roll fans out names the same branch (one realization series); each roll reads that branch's series at its own `analysis_time`.
195
199
 
196
- **Look-ahead periods.** A roll uses only the forecasts available when it decides, at its fan's `analysis_time`. Every period of the roll after the fan's period (the look-ahead periods and, in the solves that keep the earlier realization, also the later committed periods of a multi-period jump) reads the forecast given at the roll's own fan `analysis_time`, even where a later roll's forecast is given at that period's first time step. The roll's fan forecast must therefore cover the roll's whole horizon, look-ahead included: where it has no value for a time step of such a period but a forecast given later (at the period's own first time step) has one, the run stops before the roll is solved with an error naming the entity, the parameter, the roll and the uncovered time steps. A time step that no forecast covers reads the non-stochastic value, as before. The realization of a rolling `within_solve` or `separate_dispatch` solve reads the designated branch over each jump as one timeline (each time step from the realized series that covers it; where several do, the one made nearest to the start of the roll), and after the jump the forecasts made at the end of the jump. Data that is not stochastic (a plain time series) is read as before. A single (non-rolling) solve follows the same rule (see "Stochastics over multiple periods").
200
+ **Look-ahead periods.** A roll uses only the forecasts available when it decides, at its fan's `analysis_time`. Every period of the roll after the fan's period (the look-ahead periods and, in the solves that keep the earlier realization, also the later committed periods of a multi-period jump) reads the forecast given at the roll's own fan `analysis_time`, even where a later roll's forecast is given at that period's first time step. The roll's fan forecast must therefore cover the roll's whole horizon, look-ahead included: where it has no value for a time step of such a period but a forecast given later (at the period's own first time step) has one, the run stops before the roll is solved with an error naming the entity, the parameter, the roll and the uncovered time steps. A time step that the roll's fan forecast does not cover and no other forecast covers either is the same error, naming the forecast, the roll and the first such time step (FlexTool does not read the default value, nor the realized series, instead). The realization of a rolling `within_solve` or `separate_dispatch` solve reads the designated branch over each jump as one timeline (each time step from the realized series that covers it; where several do, the one made nearest to the start of the roll), and after the jump the forecasts made at the end of the jump. Data that is not stochastic (a plain time series) is read as before. A single (non-rolling) solve follows the same rule (see "Stochastics over multiple periods").
197
201
 
198
202
  In this example branch *realized* is designated `realized: yes` at every roll start, and each jump is realized with the designated branch's data, read as one timeline, every committed period of a multi-period jump included: with `within_solve` (as in the example) in the roll itself, with `separate_dispatch` in a realization solve after the roll's stochastic solve (see the methods below); either branches at the end of the jump into the forecasts made there. In the solves that keep the earlier realization each roll fans at its first step, so its committed jump lies inside the fan. The next roll continues from the end state of the realized jump (storage, units online, ramps). At the first step of the first roll, and of a period that does not continue the previous one, the stochastic roll (in every forecast branch that starts there) and its realization both choose the units online freely, with no start-up there, so the realization never owes a start-up that the stochastic roll did not plan. (A realization solve that starts at a later period than its stochastic solve starts free at that period even where the stochastic solve continued it from the period before; see [How to add a minimum load, start-up and ramp](thermal_chp.md#how-to-add-a-minimum-load-start-up-and-ramp).) A rolling `within_solve` or `separate_dispatch` solve without a designation stops the run with an error naming the solve. In the solves that keep the earlier realization, without a designation the jump is realized only for the families tied across the forecasts (units online and reserves); a model with storage (as here), ramp limits or cumulative caps then stops with a configuration error (see "Stochastics over multiple periods"). A fan that opens only in a roll's look-ahead needs no designation for the continuation (the next roll continues from the committed steps before the reveal), but the steps before the fan read the realized branch's series: when the forecasts differ (stochastic-time data, which the same entities also read before the fan), designate a realized branch; with a forecasts-only fan only plain (non-stochastic) data can be read before it (see "Single solve stochastics"). The `solve` parameter `dispatch_realization_method` sets how the realization runs:
199
203
 
@@ -6,8 +6,8 @@ A `flowGroup` aggregates a set of *flows* — where each flow is a `(process, no
6
6
 
7
7
  The limits apply to the net flow into the group's member nodes. A connection counts by its net flow at the member node: flow into the node is positive, flow out of it is negative, for every transfer method (also `no_losses_no_variable_cost` and DC power flow, whose two directions share one flow variable). When both ends of a connection are members, its flow leaves one member node and enters the other, so it adds nothing to the net flow.
8
8
 
9
- - `max_cumulative_flow` - [MW] Maximum average flow, which limits the cumulative flow for a group of connection_nodes and/or unit_nodes. The average value is multiplied by the model duration to get the cumulative limit (e.g. by 8760 if a single year is modelled). Applied for each solve. Constant or period. A period map must give a value for every period of the solve, look-ahead periods included (a missing period is an error). An explicit 0 is a limit of 0 (the net flow into the group can be negative). `inf` means no limit in that period (a constant `inf`: in no period); its row is left out. A very large finite number is used as a limit and makes the solve numerically unstable; FlexTool warns about a value of 1e15 or more. `-inf` is an error.
10
- - `min_cumulative_flow` - [MW] Minimum average flow, which limits the cumulative flow for a group of connection_nodes and/or unit_nodes. The average value is multiplied by the model duration to get the cumulative limit (e.g. by 8760 if a single year is modelled). Applied for each solve. Constant or period. A period map must give a value for every period of the solve, look-ahead periods included (a missing period is an error). An explicit 0 is a limit of 0 (the net flow into the group can be negative). `-inf` means no limit in that period (a constant `-inf`: in no period); its row is left out. A very large finite number is used as a limit and makes the solve numerically unstable; FlexTool warns about a value of 1e15 or more. `inf` is an error.
9
+ - `max_cumulative_flow` - [MW] Maximum average flow, which limits the cumulative flow for a group of connection_nodes and/or unit_nodes. The average value is multiplied by the model duration to get the cumulative limit (e.g. by 8760 if a single year is modelled). Constant or period: a constant limits every period and the whole model, a period map each period. In a rolling solve, and over the solves of a run, the limit is carried across the rolls and solves: each roll may use the limit times the hours realized so far plus its own hours, minus the flow already realized, so the realized flow of each period (and of the whole model, for a constant) stays within the limit. A period map must give a value for every period of the solve, look-ahead periods included (a missing period is an error). An explicit 0 is a limit of 0 (the net flow into the group can be negative). `inf` means no limit in that period (a constant `inf`: in no period); its row is left out. A very large finite number is used as a limit and makes the solve numerically unstable; FlexTool warns about a value of 1e15 or more. `-inf` is an error.
10
+ - `min_cumulative_flow` - [MW] Minimum average flow, which limits the cumulative flow for a group of connection_nodes and/or unit_nodes. The average value is multiplied by the model duration to get the cumulative limit (e.g. by 8760 if a single year is modelled). Constant or period: a constant limits every period and the whole model, a period map each period. In a rolling solve, and over the solves of a run, the limit is carried across the rolls and solves: each roll may use the limit times the hours realized so far plus its own hours, minus the flow already realized, so the realized flow of each period (and of the whole model, for a constant) stays within the limit. A period map must give a value for every period of the solve, look-ahead periods included (a missing period is an error). An explicit 0 is a limit of 0 (the net flow into the group can be negative). `-inf` means no limit in that period (a constant `-inf`: in no period); its row is left out. A very large finite number is used as a limit and makes the solve numerically unstable; FlexTool warns about a value of 1e15 or more. `inf` is an error. A minimum that earlier rolls fell short of must be made up by the later rolls. Without forecasts they can, as long as the model can run at the minimum average flow; the plan of the previous roll still holds. With stochastic forecasts a roll plans to meet the minimum on every forecast, so when the realized data turn out worse than all the forecasts, a later roll may be unable to make up the shortfall, and that solve is infeasible.
11
11
  - `max_instant_flow` - [MW] Maximum instantenous flow for the aggregated flow of all group members. Constant, period, time or period+time. A period map, or the period level of a period+time map, must give a value for every period of the solve, look-ahead periods included (a missing period is an error). An explicit 0, also at a single time step, is a limit of 0. `inf` means no limit in that period or time step (a constant `inf`: nowhere); its row is left out. A very large finite number is used as a limit and makes the solve numerically unstable; FlexTool warns about a value of 1e15 or more. `-inf` is an error. With a solve's `new_stepduration`, a solve step that combines `inf` time steps with finite ones takes their mean, which is `inf`: the limit is dropped for the whole solve step, and FlexTool warns (naming the entity, the periods and the solve steps). To keep the limit, give `inf` in all or none of the time steps of a solve step, or use a shorter `new_stepduration`.
12
12
  - `min_instant_flow` - [MW] Minimum instantenous flow for the aggregated flow of all group members. Constant, period, time or period+time. A period map, or the period level of a period+time map, must give a value for every period of the solve, look-ahead periods included (a missing period is an error). An explicit 0, also at a single time step, is a limit of 0. `-inf` means no limit in that period or time step (a constant `-inf`: nowhere); its row is left out. A very large finite number is used as a limit and makes the solve numerically unstable; FlexTool warns about a value of 1e15 or more. `inf` is an error. With a solve's `new_stepduration`, a solve step that combines `-inf` time steps with finite ones takes their mean, which is `-inf`: the limit is dropped for the whole solve step, and FlexTool warns (naming the entity, the periods and the solve steps). To keep the limit, give `-inf` in all or none of the time steps of a solve step, or use a shorter `new_stepduration`.
13
13
 
@@ -74,14 +74,14 @@ The margin of a *relative_of_peak_demand* group is `capacity_margin_relative` ×
74
74
 
75
75
  With representative periods, the row holds at the sampled time steps only, and the storage that counts is the storage of the sampled days: force-include the peak days. Over a coarse time step (`new_stepduration`) the row may be averaged (see below).
76
76
 
77
- Under spatial Benders decomposition (`decomposition_method` *benders_regional*), a capacity margin group (and an inertia or non-synchronous group) with nodes in more than one region is an error: each region would have to hold the whole margin. Use one group per region. The same holds for a group investment, retirement or cumulative-capacity limit with a value set (a method alone makes no limit): a minimum over entities of more than one region is an error, and so is a maximum (each region could use all of it), except a maximum of 0, which splits exactly. A flow limit of a flowGroup, or a user constraint's `constraint_flow_coeff`, on a connection between two regions is an error too: the decomposition replaces that connection with import and export flows in each region, which neither sees. A unit whose nodes are in more than one region, that no region group lists and that converts through the unit itself (several inputs or outputs, or one input and one output with a `piecewise_linear_efficiency` curve of two or more segments), is an error as well; put its nodes in one region. A unit with one input and one output and a single efficiency (one direct flow) between two regions is cut like a connection, except with online variables (a `startup_method`) or reserves, which are an error, as they are on a connection between regions. A DC power-flow line (a connection between two nodes of a `dc_power_flow_with_angles` group) between two regions, or between a region and the master, is an error: the decomposition cannot carry the voltage angles across the regions. Put both nodes of the line in one region, or take the nodes out of the `dc_power_flow_with_angles` group. A one-variable connection (`no_losses_no_variable_cost`) between regions works in both directions.
77
+ Under spatial Benders decomposition (`decomposition_method` *benders_regional*), a capacity margin group (and an inertia or non-synchronous group) with nodes in more than one region is an error: each region would have to hold the whole margin. Use one group per region. The same holds for a group investment, retirement or cumulative-capacity limit with a value set (a method alone makes no limit): a minimum over entities of more than one region is an error, and so is a maximum (each region could use all of it), except a maximum of 0, which splits exactly. The Benders master counts as one more region here: its entities are the connections between regions (or at a master-hosted node), the units with nodes in more than one region and the master-hosted nodes; a unit that no region group lists is in the region of its nodes. A flow limit of a flowGroup, or a user constraint's `constraint_flow_coeff`, on a connection between two regions is an error too: the decomposition replaces that connection with import and export flows in each region, which neither sees. A unit that converts through the unit itself (several inputs or outputs, or one input and one output with a `piecewise_linear_efficiency` curve of two or more segments) and whose nodes are in more than one region, or in a region and the master, is solved in the Benders master, whether a region group lists it or not: its flows, conversion, capacity, investment, costs and linear online variables are in the master, and each region sees its flows at the region's nodes as imports and exports fixed by the master. Such a unit cannot have a reserve, integer online variables (unless `reduce_unit_detail_method` relaxes integers), a start-up input at a region node, a node in a capacity margin, inertia or non-synchronous group, or a flowGroup flow limit; these are errors naming the unit. A unit listed in a region group that has none of its nodes is an error too. A unit with one input and one output and a single efficiency (one direct flow) between two regions is cut like a connection, except with online variables (a `startup_method`) or reserves, which are an error, as they are on a connection between regions. A DC power-flow line (a connection between two nodes of a `dc_power_flow_with_angles` group) between two regions, or between a region and the master, is an error: the decomposition cannot carry the voltage angles across the regions. Put both nodes of the line in one region, or take the nodes out of the `dc_power_flow_with_angles` group. A one-variable connection (`no_losses_no_variable_cost`) between regions works in both directions.
78
78
 
79
79
  ## CO2 costs and limits
80
80
 
81
81
  - `co2_method` - Choice of the CO2 method or a combination of methods: none, price, period, total, price_period, price_total, period_total, price_period_total. A method with *period* in it needs `co2_max_period` and a method with *total* in it needs `co2_max_total`; a group without that value is an error.
82
82
  - `co2_price` [CUR/tCO2] CO2 price for a group of nodes. Constant or period. A period-indexed Map may cover *more* periods than the current solve realises — extra entries are silently ignored, so the same shared CO2-price dataset can drive solves with different period subsets. If the active solve activates `co2_price` topology (a priced commodity is wired up) but no `co2_price` or `co2_content` value is supplied for a needed period, the engine logs a warning and skips the CO2 cost term for that period rather than raising an error.
83
83
  - `co2_max_period` [tCO2/a] Annualized maximum limit for emitted CO2 in each period (tonnes per year of the period). Constant or period. A period map must give a value for every period of the solve, look-ahead periods included (a missing period is an error). In a rolling solve each roll applies the limit to its own window (realized part and look-ahead): its emissions are annualised over the window's hours of each period. The limit is carried across the rolls: each roll may emit the share of the period's limit reached by the end of its horizon, minus the emissions earlier rolls already realized in the period, so the realized emissions of a period stay within the limit. In a rolling solve the reported CO2 price of a period is the shadow price of the last roll that covers the period. `inf` means no limit in that period (a constant `inf`: in no period); its row is left out. A very large finite number is used as a limit and makes the solve numerically unstable; FlexTool warns about a value of 1e15 or more. `-inf` is an error.
84
- - `co2_max_total` [tCO2] Cumulative limit for emitted CO2 over the whole solve horizon: each period's annualized emissions times the years it represents (`years_represented`), summed over the periods, so the model chooses when to emit. In a rolling solve or a chain of solves the limit is carried: each roll or solve may emit the part of the limit allotted to the periods it reaches (in a rolling solve, the `years_represented`-weighted share of the solve's periods reached by the end of the roll's horizon; a solve of a chain reaches all of its own periods) minus what earlier rolls and solves already realized, counted the same way (annualized and times `years_represented`). The realized emissions of the whole chain therefore stay within the limit, but an early solve of a chain may use up what later solves would have needed. In a stochastic solve each forecast path gets the whole remaining limit.
84
+ - `co2_max_total` [tCO2] Cumulative limit for emitted CO2 over the whole model horizon: each period's annualized emissions times the years it represents (`years_represented`), summed over the periods, so the model chooses when to emit. In a rolling solve or a chain of solves the limit is carried: each roll or solve may emit the part of the limit allotted to the periods it reaches (the `years_represented`-weighted share of the model's periods reached by the end of the roll's horizon) minus what earlier rolls and solves already realized, counted the same way (annualized and times `years_represented`). When the solves of a chain each hold a part of one period, the period's budget is shared by the hours of each part: a solve, single or rolling, counts the hours the earlier parts realized plus its own as the period, and weighs the emissions of the earlier parts the same way. The realized emissions of the whole run therefore stay within the limit. In a stochastic solve each forecast path gets the whole remaining limit. Every solve that has the group must see all the periods of the model (its own, look-ahead included; a roll sees its rolling solve's): otherwise the run stops with an error, since such a solve cannot tell its share of the limit. Use `co2_max_period` for a chain of solves that each hold only some of the periods, for nested lower solves and for the solves of a 2-D period map.
85
85
 
86
86
  The emissions that the CO2 price and the limits apply to are the fuel drawn from the group's nodes times the commodity's `co2_content`, including the extra fuel that `min_load_efficiency` and `piecewise_linear` units burn at part load.
87
87
 
@@ -348,7 +348,7 @@ For VRE units (units that use an `upper_limit` profile) the model also reports c
348
348
  ## Capacity and investment results
349
349
 
350
350
  - `unit`, `connection`, `node` entities `capacity` parameter — [MW or MWh] decomposed into:
351
- - *existing* — capacity assumed at the start of the period: the `existing` capacity in service, less what earlier solves of the run retired of it (a life extension carried from an earlier solve is an extension cohort, see below, not existing capacity)
351
+ - *existing* — capacity assumed at the start of the period: the `existing` capacity in service in the period (as its lifetime and a period-varying `existing` give), before any retirement; retirements, also those decided by earlier solves of the run, are in *divested* of the period they happen in (a life extension carried from an earlier solve is an extension cohort, see below, not existing capacity)
352
352
  - *invested* — capacity that comes online in the period (without a construction lead time, the capacity invested in that period)
353
353
  - *in_construction* — capacity decided but not yet operating in the period; always present, empty without a construction lead time
354
354
  - *divested* — capacity the model decided to retire at the start of the period
@@ -449,6 +449,7 @@ The importer writes the data at a fixed database version (56) and then migrates
449
449
  | units `fueluse increase eq x output2` | FlexTool 2's fuel-use equation adds this fuel only when output2 is on the unit's own output node, so in a normal workbook it adds nothing in FlexTool 2 either; the import ignores it. |
450
450
  | gridNode `import (MWh)` | The import series is not added to the node. |
451
451
  | a generation-limit flag on a storage unit | Not carried over (the unit becomes a charger and a discharger). |
452
+ | a formula cell without a stored value (a workbook saved without Excel calculating it, e.g. written by a script) | Read as empty; the report names each cell and its formula. Open and save the workbook in Excel, then import again. FlexTool 2's own `annuity` formula (of the row's `interest` and `lifetime`) and the `ts_time` time jump columns are not listed: the import does not need their values. |
452
453
  | any other non-zero column the importer does not read | Listed with a note to check whether it matters. |
453
454
 
454
455
  Sensitivity overrides that the sensitivity import does not translate are listed too, with their scenario (alternative), where the value can be set by hand.
@@ -463,6 +464,12 @@ Sensitivity overrides that the sensitivity import does not translate are listed
463
464
 
464
465
  **Storage start and finish.** A non-zero `storage start` / `storage finish` fixes the first / last storage state at that share of the storage capacity (`storage_start_end_method` `fix_start`, `fix_end` or `fix_start_end`); 0 or empty fixes nothing (`fix_nothing`). The storage state wraps from the last step to the first (`bind_within_solve`), except when both are set (`bind_forward_only`), as in FlexTool 2.
465
466
 
467
+ **Online variables and minimum load.** With `use online` 1, a unit with a `min load`, a `startup cost` or a min up / down time gets online variables, as in FlexTool 2: `startup_method` linear, its `min_load` and `startup_cost`, and `minimum_time_method` for its times. Its `conversion_method` is `min_load_efficiency` (with `efficiency_at_min_load`) when `eff at min load` is set and differs from `efficiency`, else `constant_efficiency`; the minimum load applies either way. With `use online` 0 FlexTool 2 has no online variables and ignores `eff at min load`, and so does the import (min up / down times are kept with `minimum_time_method` none). A storage unit gets these on its discharger. FlexTool 2 leaves online variables, minimum load, start-ups and reserves out of its investment run; FlexTool 4 keeps them in the investment solve too, so the investments take them into account (the report names the units and reserves). A sensitivity of `use online` or of a unit type's `min load`, `eff at min load`, `efficiency`, `startup cost`, `min uptime (h)` or `min downtime (h)` sets the unit's online parameters for that scenario in the same way. So does a `min load` or `efficiency` sensitivity on the `units` sheet, which FlexTool 2 ignored (it reads them only from `unit_type`); the report lists these.
468
+
469
+ **Storage units.** A unit with `eff charge` becomes a charger (grid to a storage node), the storage node and a discharger (storage node to grid). FlexTool 2 limits the charge from the grid to the unit's capacity; a FlexTool 4 unit's capacity is on its output side, so the charger's output gets `capacity_max_coeff` = `eff charge`, below or above 1 (the grid-side charge is then at most the capacity, and so is its ramp). The `fixed cost/kW/year` goes to the discharger, which has the unit's capacity and investment. Only a storage with an inflow series may spill (`penalty_down` 0), as in FlexTool 2; other storage nodes get the loss of load penalty.
470
+
471
+ **Node-level capacity margin and non-synchronous share.** A gridNode `capacity margin (MW)` or `non synchronous share` goes to a group `<node>_group` with that one node (FlexTool 2's node equations are its nodeGroup equations over one node), with the same settings as a nodeGroup's. If the workbook already has a grid or nodeGroup of that name, the report says the values were not carried over. A gridNode sensitivity of either goes to that group; for a node without a value in the workbook it is reported.
472
+
466
473
  ---
467
474
 
468
475
  ## Export and maintenance commands
@@ -18,7 +18,8 @@ from collections.abc import Callable
18
18
  from dataclasses import dataclass
19
19
  from typing import Any
20
20
 
21
- from flextool.assistant.inputs._schema import bracket, shipped_schema
21
+ from flextool.assistant.inputs._schema import shipped_schema
22
+ from flextool.units_of_measure import bracket
22
23
 
23
24
 
24
25
  @dataclass(frozen=True)
@@ -63,13 +63,6 @@ def shipped_schema() -> ShippedSchema:
63
63
  )
64
64
 
65
65
 
66
- def bracket(description: str | None) -> str | None:
67
- """The unit bracket a description starts with (``"[MW]"``), or ``None``."""
68
- if not description or not description.startswith("[") or "]" not in description:
69
- return None
70
- return description[: description.index("]") + 1]
71
-
72
-
73
66
  def ranks_in_words(value_types: tuple[tuple[str, int], ...]) -> str:
74
67
  """What the schema's ``parameter_types`` allow, for a user: ``a constant, or a map with 1 or 3 index levels``."""
75
68
  parts: list[str] = []
@@ -22,10 +22,10 @@ from dataclasses import dataclass
22
22
  from typing import Any
23
23
 
24
24
  from flextool import units_of_measure as uom
25
- from flextool.assistant.inputs._schema import bracket, shipped_schema
25
+ from flextool.units_of_measure import NOT_UNITS, bracket
26
+ from flextool.assistant.inputs._schema import shipped_schema
26
27
  from flextool.assistant.unit_wording import DIMENSIONLESS
27
28
 
28
- NOT_UNITS = frozenset({"[choice]", "[yes/no]", "[name]", "[text]", "[version number]"})
29
29
  _COUNT_FORMS = {"[MW or count]": "MW", "[MWh or count]": "MWh"}
30
30
  _GROUP_FORM = "[MW or MWh]"
31
31
  _PER_RE = re.compile(r"^\s*(per [^.;,]+)")
@@ -37,7 +37,26 @@ def main() -> None:
37
37
  "columns are removed unless listed in always_include_with_groups."
38
38
  ),
39
39
  )
40
+ parser.add_argument(
41
+ "--units-row",
42
+ action="store_true",
43
+ help=(
44
+ "Show only each parameter's unit (MW, CUR/MWh, ...) in the first row of the parameter sheets instead "
45
+ "of its description; the full description stays in the note on the parameter name (self-describing "
46
+ "format only)"
47
+ ),
48
+ )
49
+ parser.add_argument(
50
+ "--omit-empty-columns",
51
+ action="store_true",
52
+ help=(
53
+ "Leave out the parameter columns that have no value on their sheet; the reference list to the right "
54
+ "of each sheet still names them (self-describing format only)"
55
+ ),
56
+ )
40
57
  args = parser.parse_args()
58
+ if args.old_format and (args.units_row or args.omit_empty_columns):
59
+ parser.error("--units-row and --omit-empty-columns need the self-describing format (not --old-format)")
41
60
  include_groups = (
42
61
  [g.strip() for g in args.groups.split(",") if g.strip()]
43
62
  if args.groups
@@ -49,6 +68,8 @@ def main() -> None:
49
68
  include_advanced=args.include_advanced,
50
69
  use_new_format=not args.old_format,
51
70
  include_groups=include_groups,
71
+ units_row=args.units_row,
72
+ omit_empty_columns=args.omit_empty_columns,
52
73
  )
53
74
 
54
75
 
@@ -26,7 +26,10 @@ def main() -> None:
26
26
  parser.add_argument(
27
27
  "--keep-entities",
28
28
  action="store_true",
29
- help="Keep existing entities during purge (for fresh template DBs)",
29
+ help=(
30
+ "When purging, keep the target database's entities (by default they are deleted with the "
31
+ "alternatives, scenarios and parameter values)"
32
+ ),
30
33
  )
31
34
  args = parser.parse_args()
32
35
 
@@ -24,7 +24,8 @@ import re
24
24
  from dataclasses import dataclass
25
25
  from pathlib import Path
26
26
 
27
- from flextool.assistant.inputs._schema import bracket, ranks_in_words, shipped_schema
27
+ from flextool.assistant.inputs._schema import ranks_in_words, shipped_schema
28
+ from flextool.units_of_measure import bracket
28
29
  from flextool.assistant.inputs._units import parameter_unit
29
30
  from flextool.sqlite_url import read_only_sqlite_url_string, sqlite_file_path
30
31