flextool 4.6.0__tar.gz → 4.6.2__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 (713) hide show
  1. {flextool-4.6.0/flextool.egg-info → flextool-4.6.2}/PKG-INFO +5 -4
  2. {flextool-4.6.0 → flextool-4.6.2}/README.md +1 -1
  3. {flextool-4.6.0 → flextool-4.6.2}/docs/dev/architecture.md +45 -10
  4. {flextool-4.6.0 → flextool-4.6.2}/docs/dev/engine.md +12 -6
  5. {flextool-4.6.0 → flextool-4.6.2}/docs/env_vars.md +1 -0
  6. {flextool-4.6.0 → flextool-4.6.2}/docs/how_to/basics.md +1 -1
  7. {flextool-4.6.0 → flextool-4.6.2}/docs/how_to/performance.md +26 -0
  8. {flextool-4.6.0 → flextool-4.6.2}/docs/how_to/stochastics.md +6 -6
  9. {flextool-4.6.0 → flextool-4.6.2}/docs/how_to/storage_hydro.md +1 -1
  10. {flextool-4.6.0 → flextool-4.6.2}/docs/how_to/thermal_chp.md +1 -1
  11. {flextool-4.6.0 → flextool-4.6.2}/docs/index.md +1 -1
  12. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/connections.md +7 -4
  13. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/entities_and_time.md +4 -4
  14. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/flow_groups.md +2 -0
  15. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/groups.md +3 -3
  16. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/nodes.md +3 -3
  17. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/parameter_groups.md +1 -1
  18. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/units.md +5 -2
  19. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/user_constraints.md +3 -1
  20. {flextool-4.6.0 → flextool-4.6.2}/docs/results.md +15 -3
  21. {flextool-4.6.0 → flextool-4.6.2}/docs/terminal_workflow.md +6 -4
  22. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_run_flextool.py +32 -23
  23. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_time_runs.py +5 -5
  24. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/_behaviour_changes.py +3 -43
  25. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/autoscale/_guard.py +40 -18
  26. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/autoscale/_layer2_types.py +0 -3
  27. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_param_shapes.py +10 -9
  28. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_solve_config.py +7 -8
  29. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_balance_terms.py +14 -4
  30. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_cumulative_invest.py +25 -4
  31. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_dc_power_flow.py +48 -7
  32. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_group_slack.py +19 -12
  33. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_non_anticipativity.py +0 -16
  34. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_online.py +106 -38
  35. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_reserve.py +56 -61
  36. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/core.py +92 -63
  37. flextool-4.6.2/flextool/engine/output/_benders_slice.py +134 -0
  38. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/output/_parquet_bundle.py +3 -0
  39. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_provider_keys.py +0 -1
  40. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_provider_translators.py +7 -4
  41. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_reduce_detail.py +4 -5
  42. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_period_params.py +10 -1
  43. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/flex_data.py +25 -71
  44. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_coarse.py +1 -1
  45. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_derived.py +86 -13
  46. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_direct.py +36 -7
  47. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_existing_salvage.py +2 -9
  48. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_mintime.py +4 -3
  49. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_npv.py +2 -8
  50. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_ramp_links.py +28 -0
  51. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_retire_built.py +7 -10
  52. flextool-4.6.2/flextool/engine/solve/_benders_final.py +177 -0
  53. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_handoff.py +9 -14
  54. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_orchestration.py +319 -83
  55. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_realization.py +54 -20
  56. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_region_filter.py +169 -11
  57. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_run_model.py +21 -42
  58. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_solver_dispatch.py +13 -0
  59. flextool-4.6.2/flextool/engine/solve/_solver_outcome.py +277 -0
  60. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_stochastic.py +6 -15
  61. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_subprocess_solve.py +15 -3
  62. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/db_version_check.py +2 -2
  63. flextool-4.6.2/flextool/gui/dialogs/database_check_dialog.py +54 -0
  64. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/execution_manager.py +6 -4
  65. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/input_sources.py +23 -0
  66. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/main_window.py +9 -0
  67. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/_output_meta.py +2 -1
  68. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/out_ancillary.py +4 -1
  69. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/read_highs_solution.py +17 -1
  70. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/read_variables.py +32 -1
  71. {flextool-4.6.0 → flextool-4.6.2}/flextool/run_options.py +8 -0
  72. {flextool-4.6.0 → flextool-4.6.2}/flextool/run_record/__init__.py +5 -1
  73. {flextool-4.6.0 → flextool-4.6.2}/flextool/run_record/_owner.py +22 -1
  74. {flextool-4.6.0 → flextool-4.6.2}/flextool/run_record/_status.py +18 -0
  75. {flextool-4.6.0 → flextool-4.6.2}/flextool/run_record/_tee.py +27 -1
  76. {flextool-4.6.0 → flextool-4.6.2}/flextool/run_warnings/__init__.py +46 -14
  77. flextool-4.6.2/flextool/run_warnings/_engine_specs.py +1100 -0
  78. {flextool-4.6.0 → flextool-4.6.2}/flextool/run_warnings/_input_specs.py +31 -1
  79. {flextool-4.6.0 → flextool-4.6.2}/flextool/run_warnings/registry.py +4 -2
  80. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/db_migration.py +387 -149
  81. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/migration_backup.py +4 -4
  82. flextool-4.6.2/flextool/update_flextool/value_list_history.py +170 -0
  83. {flextool-4.6.0 → flextool-4.6.2/flextool.egg-info}/PKG-INFO +5 -4
  84. {flextool-4.6.0 → flextool-4.6.2}/flextool.egg-info/SOURCES.txt +5 -0
  85. {flextool-4.6.0 → flextool-4.6.2}/flextool.egg-info/requires.txt +3 -2
  86. {flextool-4.6.0 → flextool-4.6.2}/pyproject.toml +17 -9
  87. {flextool-4.6.0 → flextool-4.6.2}/tests/test_rolling_online_carry.py +27 -26
  88. {flextool-4.6.0 → flextool-4.6.2}/tests/test_rolling_online_minuptime.py +28 -18
  89. {flextool-4.6.0 → flextool-4.6.2}/tests/test_run_options.py +3 -0
  90. flextool-4.6.2/tests/test_stochastic_co2_total_price.py +200 -0
  91. flextool-4.6.0/flextool/engine/solve/_solver_outcome.py +0 -189
  92. flextool-4.6.0/flextool/run_warnings/_engine_specs.py +0 -509
  93. {flextool-4.6.0 → flextool-4.6.2}/LICENSE.txt +0 -0
  94. {flextool-4.6.0 → flextool-4.6.2}/MANIFEST.in +0 -0
  95. {flextool-4.6.0 → flextool-4.6.2}/_flextool_build.py +0 -0
  96. {flextool-4.6.0 → flextool-4.6.2}/docs/advanced_concepts.md +0 -0
  97. {flextool-4.6.0 → flextool-4.6.2}/docs/ai_assistant.md +0 -0
  98. {flextool-4.6.0 → flextool-4.6.2}/docs/dev/slack_convention.md +0 -0
  99. {flextool-4.6.0 → flextool-4.6.2}/docs/excel_interface.md +0 -0
  100. {flextool-4.6.0 → flextool-4.6.2}/docs/flextool_gui_interface.md +0 -0
  101. {flextool-4.6.0 → flextool-4.6.2}/docs/how_to/emissions.md +0 -0
  102. {flextool-4.6.0 → flextool-4.6.2}/docs/how_to/index.md +0 -0
  103. {flextool-4.6.0 → flextool-4.6.2}/docs/how_to/investment.md +0 -0
  104. {flextool-4.6.0 → flextool-4.6.2}/docs/how_to/outputs.md +0 -0
  105. {flextool-4.6.0 → flextool-4.6.2}/docs/how_to/solve_sequences.md +0 -0
  106. {flextool-4.6.0 → flextool-4.6.2}/docs/install_gui.md +0 -0
  107. {flextool-4.6.0 → flextool-4.6.2}/docs/install_toolbox.md +0 -0
  108. {flextool-4.6.0 → flextool-4.6.2}/docs/interface_overview.md +0 -0
  109. {flextool-4.6.0 → flextool-4.6.2}/docs/limitations.md +0 -0
  110. {flextool-4.6.0 → flextool-4.6.2}/docs/reading_results.md +0 -0
  111. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/commodities.md +0 -0
  112. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/index.md +0 -0
  113. {flextool-4.6.0 → flextool-4.6.2}/docs/reference/reserves.md +0 -0
  114. {flextool-4.6.0 → flextool-4.6.2}/docs/solvers/copt.md +0 -0
  115. {flextool-4.6.0 → flextool-4.6.2}/docs/solvers/cplex.md +0 -0
  116. {flextool-4.6.0 → flextool-4.6.2}/docs/solvers/gurobi.md +0 -0
  117. {flextool-4.6.0 → flextool-4.6.2}/docs/solvers/highs.md +0 -0
  118. {flextool-4.6.0 → flextool-4.6.2}/docs/solvers/index.md +0 -0
  119. {flextool-4.6.0 → flextool-4.6.2}/docs/solvers/xpress.md +0 -0
  120. {flextool-4.6.0 → flextool-4.6.2}/docs/spine_database.md +0 -0
  121. {flextool-4.6.0 → flextool-4.6.2}/docs/spine_toolbox.md +0 -0
  122. {flextool-4.6.0 → flextool-4.6.2}/docs/tutorial.md +0 -0
  123. {flextool-4.6.0 → flextool-4.6.2}/flextool/__init__.py +0 -0
  124. {flextool-4.6.0 → flextool-4.6.2}/flextool/_allocator.py +0 -0
  125. {flextool-4.6.0 → flextool-4.6.2}/flextool/_child_python.py +0 -0
  126. {flextool-4.6.0 → flextool-4.6.2}/flextool/_file_lock.py +0 -0
  127. {flextool-4.6.0 → flextool-4.6.2}/flextool/_local_solver_settings.py +0 -0
  128. {flextool-4.6.0 → flextool-4.6.2}/flextool/_mem_sampler.py +0 -0
  129. {flextool-4.6.0 → flextool-4.6.2}/flextool/_process_tree.py +0 -0
  130. {flextool-4.6.0 → flextool-4.6.2}/flextool/_resources.py +0 -0
  131. {flextool-4.6.0 → flextool-4.6.2}/flextool/_safe_text.py +0 -0
  132. {flextool-4.6.0 → flextool-4.6.2}/flextool/_solver_config_source.py +0 -0
  133. {flextool-4.6.0 → flextool-4.6.2}/flextool/_solver_option_rules.py +0 -0
  134. {flextool-4.6.0 → flextool-4.6.2}/flextool/_thread_budget.py +0 -0
  135. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/__init__.py +0 -0
  136. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/_files.py +0 -0
  137. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/backends/__init__.py +0 -0
  138. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/backends/_common.py +0 -0
  139. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/backends/anthropic_messages.py +0 -0
  140. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/backends/openai_chat.py +0 -0
  141. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/budget.py +0 -0
  142. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/caps.py +0 -0
  143. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/chat_cli.py +0 -0
  144. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/cli.py +0 -0
  145. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/context.py +0 -0
  146. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/docs_store.py +0 -0
  147. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/endpoint.py +0 -0
  148. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/env_knobs.py +0 -0
  149. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/errors.py +0 -0
  150. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/inputs/__init__.py +0 -0
  151. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/inputs/_db.py +0 -0
  152. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/inputs/_notes.py +0 -0
  153. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/inputs/_schema.py +0 -0
  154. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/inputs/_units.py +0 -0
  155. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/inputs/_values.py +0 -0
  156. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/keys.py +0 -0
  157. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/llm_adapter.py +0 -0
  158. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/llm_errors.py +0 -0
  159. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/llm_retry.py +0 -0
  160. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/mcp_server.py +0 -0
  161. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/model_check.py +0 -0
  162. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/model_facts.py +0 -0
  163. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/model_list_cache.py +0 -0
  164. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/model_versions.py +0 -0
  165. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/net.py +0 -0
  166. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/pacing.py +0 -0
  167. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/placeholders.py +0 -0
  168. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/probes.py +0 -0
  169. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/project.py +0 -0
  170. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/prompt.py +0 -0
  171. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/providers.py +0 -0
  172. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/redact.py +0 -0
  173. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/registry.py +0 -0
  174. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/results/__init__.py +0 -0
  175. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/results/_catalog.py +0 -0
  176. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/results/_entity.py +0 -0
  177. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/results/_overview.py +0 -0
  178. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/results/_query.py +0 -0
  179. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/results/_runs.py +0 -0
  180. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/results/_slacks.py +0 -0
  181. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/runtime_context.py +0 -0
  182. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/session.py +0 -0
  183. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/settings.py +0 -0
  184. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/store.py +0 -0
  185. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/textsearch.py +0 -0
  186. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/thoughts.py +0 -0
  187. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/tiers.py +0 -0
  188. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/tools/__init__.py +0 -0
  189. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/tools/diagnostics.py +0 -0
  190. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/tools/discovery.py +0 -0
  191. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/tools/explain.py +0 -0
  192. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/tools/inputs.py +0 -0
  193. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/tools/orientation.py +0 -0
  194. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/tools/results.py +0 -0
  195. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/unit_wording.py +0 -0
  196. {flextool-4.6.0 → flextool-4.6.2}/flextool/assistant/usage.py +0 -0
  197. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/__init__.py +0 -0
  198. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/__main__.py +0 -0
  199. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/_cli.py +0 -0
  200. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/_db_alt.py +0 -0
  201. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/_final_outputs.py +0 -0
  202. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/_guard.py +0 -0
  203. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/_loop.py +0 -0
  204. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/_readers.py +0 -0
  205. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/_report.py +0 -0
  206. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/_sizing.py +0 -0
  207. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/_solve.py +0 -0
  208. {flextool-4.6.0 → flextool-4.6.2}/flextool/calibrate/_solve_status.py +0 -0
  209. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/__init__.py +0 -0
  210. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/_console.py +0 -0
  211. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/_timing.py +0 -0
  212. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_execute_flextool_workflow.py +0 -0
  213. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_export_to_tabular.py +0 -0
  214. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_freeze_database.py +0 -0
  215. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_import_sensitivities.py +0 -0
  216. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_migrate_database.py +0 -0
  217. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_open_results_db.py +0 -0
  218. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_project_package.py +0 -0
  219. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_read_matpower.py +0 -0
  220. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_read_old_flextool.py +0 -0
  221. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_read_self_describing_tabular_input.py +0 -0
  222. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_read_tabular_input.py +0 -0
  223. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_scenario_results.py +0 -0
  224. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_solve_mps.py +0 -0
  225. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_trust_workspace.py +0 -0
  226. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_update_flextool.py +0 -0
  227. {flextool-4.6.0 → flextool-4.6.2}/flextool/cli/cmd_write_outputs.py +0 -0
  228. {flextool-4.6.0 → flextool-4.6.2}/flextool/common_utils/__init__.py +0 -0
  229. {flextool-4.6.0 → flextool-4.6.2}/flextool/common_utils/plot_mem_shape.py +0 -0
  230. {flextool-4.6.0 → flextool-4.6.2}/flextool/console_markers.py +0 -0
  231. {flextool-4.6.0 → flextool-4.6.2}/flextool/decomposition/__init__.py +0 -0
  232. {flextool-4.6.0 → flextool-4.6.2}/flextool/decomposition/region_decomposition.py +0 -0
  233. {flextool-4.6.0 → flextool-4.6.2}/flextool/decomposition/region_filter.py +0 -0
  234. {flextool-4.6.0 → flextool-4.6.2}/flextool/docs_build/__init__.py +0 -0
  235. {flextool-4.6.0 → flextool-4.6.2}/flextool/docs_build/__main__.py +0 -0
  236. {flextool-4.6.0 → flextool-4.6.2}/flextool/docs_build/catalogue.py +0 -0
  237. {flextool-4.6.0 → flextool-4.6.2}/flextool/docs_build/formulation.py +0 -0
  238. {flextool-4.6.0 → flextool-4.6.2}/flextool/docs_build/index.py +0 -0
  239. {flextool-4.6.0 → flextool-4.6.2}/flextool/docs_build/parameters.py +0 -0
  240. {flextool-4.6.0 → flextool-4.6.2}/flextool/docs_build/scope.py +0 -0
  241. {flextool-4.6.0 → flextool-4.6.2}/flextool/docs_build/warnings.py +0 -0
  242. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/__init__.py +0 -0
  243. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/_csv_reload/__init__.py +0 -0
  244. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/_csv_reload/_field_seeds.py +0 -0
  245. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/_csv_reload/_meta.py +0 -0
  246. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/_csv_reload/_seed.py +0 -0
  247. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/_csv_reload/_stamp.py +0 -0
  248. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/_csv_reload/_topology.py +0 -0
  249. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/_csv_reload/load.py +0 -0
  250. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/_csv_reload/offline_outputs.py +0 -0
  251. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/autoscale/__init__.py +0 -0
  252. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/autoscale/_config.py +0 -0
  253. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/autoscale/_layer2.py +0 -0
  254. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/autoscale/_quantity_types.py +0 -0
  255. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/autoscale/_report.py +0 -0
  256. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/__init__.py +0 -0
  257. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_axis_enums.py +0 -0
  258. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_constants.py +0 -0
  259. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_db_loader.py +0 -0
  260. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_db_reader.py +0 -0
  261. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_inmemory_reader.py +0 -0
  262. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_input_source.py +0 -0
  263. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_lifetime_roles.py +0 -0
  264. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_piecewise_curve.py +0 -0
  265. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_solve_state.py +0 -0
  266. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_solve_step_aggregation.py +0 -0
  267. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_spinedb_reader.py +0 -0
  268. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_timeline.py +0 -0
  269. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/input/_timeline_rules.py +0 -0
  270. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/__init__.py +0 -0
  271. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_capacity.py +0 -0
  272. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_coarse_flows.py +0 -0
  273. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_commodity_ladder.py +0 -0
  274. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_common.py +0 -0
  275. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_delay.py +0 -0
  276. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_exact.py +0 -0
  277. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_extend.py +0 -0
  278. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_lead_time.py +0 -0
  279. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_pdt_join.py +0 -0
  280. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_retire_built.py +0 -0
  281. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_self_discharge.py +0 -0
  282. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/model/_unit_floors.py +0 -0
  283. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/output/__init__.py +0 -0
  284. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/output/_capacity_margin.py +0 -0
  285. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/output/_coarse_flows.py +0 -0
  286. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/output/_cohort_capacity.py +0 -0
  287. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/output/_dump_csvs.py +0 -0
  288. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/output/_horizon_dump.py +0 -0
  289. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/output/_prices.py +0 -0
  290. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/output/_reserve_report.py +0 -0
  291. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/output/_writer.py +0 -0
  292. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/__init__.py +0 -0
  293. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_annuity.py +0 -0
  294. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_co2_methods.py +0 -0
  295. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_dump_stamp.py +0 -0
  296. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_flex_data_provider.py +0 -0
  297. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_input_writer.py +0 -0
  298. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_invest_seeds.py +0 -0
  299. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_provider_io.py +0 -0
  300. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_reserve_methods.py +0 -0
  301. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_solve_context.py +0 -0
  302. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/_stochastic_detect.py +0 -0
  303. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/__init__.py +0 -0
  304. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_arc_unions.py +0 -0
  305. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_base_steps.py +0 -0
  306. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_blocks.py +0 -0
  307. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_calc_params.py +0 -0
  308. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_capacity_margin_peak.py +0 -0
  309. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_chain_params.py +0 -0
  310. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_co2_accumulators.py +0 -0
  311. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_dispatchers.py +0 -0
  312. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_energy_margin.py +0 -0
  313. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_energy_margin_adder.py +0 -0
  314. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_inflow_scaling.py +0 -0
  315. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_inflow_scaling_checks.py +0 -0
  316. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_leaf_sets.py +0 -0
  317. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_lp_scaling.py +0 -0
  318. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_mid_sets.py +0 -0
  319. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_pdt_lookup.py +0 -0
  320. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_pdt_params.py +0 -0
  321. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_per_solve.py +0 -0
  322. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_period_calc.py +0 -0
  323. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_reserve_sets.py +0 -0
  324. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_solve_time.py +0 -0
  325. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_solve_writers.py +0 -0
  326. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/emit/_vectorize.py +0 -0
  327. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/__init__.py +0 -0
  328. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_arithmetic.py +0 -0
  329. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_block.py +0 -0
  330. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_block_layout.py +0 -0
  331. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_branch.py +0 -0
  332. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_cohort_handoff.py +0 -0
  333. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_cohorts.py +0 -0
  334. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_cost_lines.py +0 -0
  335. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_discount.py +0 -0
  336. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_existing.py +0 -0
  337. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_extend.py +0 -0
  338. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_fixed_costs.py +0 -0
  339. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_lifetime_costs.py +0 -0
  340. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_lifetime_inputs.py +0 -0
  341. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_per_solve_sets.py +0 -0
  342. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_period_values.py +0 -0
  343. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_piecewise.py +0 -0
  344. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_profiles.py +0 -0
  345. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_projection.py +0 -0
  346. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_report_lines.py +0 -0
  347. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_retire_existing.py +0 -0
  348. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_retire_settlement.py +0 -0
  349. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_run_calendar.py +0 -0
  350. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_run_costs.py +0 -0
  351. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/preprocess/params/_walks.py +0 -0
  352. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/__init__.py +0 -0
  353. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_acceptance.py +0 -0
  354. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_benders.py +0 -0
  355. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_carry_routing.py +0 -0
  356. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_determinism.py +0 -0
  357. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_objective_options.py +0 -0
  358. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_realized_overlap.py +0 -0
  359. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_recursive_solve.py +0 -0
  360. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_solver_base.py +0 -0
  361. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_solver_catalogue.py +0 -0
  362. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/_warm.py +0 -0
  363. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/chain.py +0 -0
  364. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/solver_catalogue/copt.json +0 -0
  365. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/solver_catalogue/cplex.json +0 -0
  366. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/solver_catalogue/gurobi.json +0 -0
  367. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/solver_catalogue/highs.json +0 -0
  368. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine/solve/solver_catalogue/xpress.json +0 -0
  369. {flextool-4.6.0 → flextool-4.6.2}/flextool/engine_polars/__init__.py +0 -0
  370. {flextool-4.6.0 → flextool-4.6.2}/flextool/env_check.py +0 -0
  371. {flextool-4.6.0 → flextool-4.6.2}/flextool/export_to_tabular/__init__.py +0 -0
  372. {flextool-4.6.0 → flextool-4.6.2}/flextool/export_to_tabular/db_reader.py +0 -0
  373. {flextool-4.6.0 → flextool-4.6.2}/flextool/export_to_tabular/excel_writer.py +0 -0
  374. {flextool-4.6.0 → flextool-4.6.2}/flextool/export_to_tabular/export_settings.yaml +0 -0
  375. {flextool-4.6.0 → flextool-4.6.2}/flextool/export_to_tabular/export_to_excel.py +0 -0
  376. {flextool-4.6.0 → flextool-4.6.2}/flextool/export_to_tabular/formatting.py +0 -0
  377. {flextool-4.6.0 → flextool-4.6.2}/flextool/export_to_tabular/sheet_config.py +0 -0
  378. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/__init__.py +0 -0
  379. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/__main__.py +0 -0
  380. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/_menus.py +0 -0
  381. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/__init__.py +0 -0
  382. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/chat_tab.py +0 -0
  383. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/chat_window.py +0 -0
  384. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/entry.py +0 -0
  385. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/fonts.py +0 -0
  386. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/gate.py +0 -0
  387. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/geometry.py +0 -0
  388. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/gui_state.py +0 -0
  389. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/markdown_stream.py +0 -0
  390. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/notices.py +0 -0
  391. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/settings_dialog.py +0 -0
  392. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/strings.py +0 -0
  393. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/transcript.py +0 -0
  394. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/assistant/worker.py +0 -0
  395. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/calibrate_commands.py +0 -0
  396. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/calibrate_jobs.py +0 -0
  397. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/check_tree.py +0 -0
  398. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/cli_format.py +0 -0
  399. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/config_parser.py +0 -0
  400. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/data_models.py +0 -0
  401. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/db_editor_integration.py +0 -0
  402. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/__init__.py +0 -0
  403. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/add_dialog.py +0 -0
  404. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/calibrate_dialog.py +0 -0
  405. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/file_picker.py +0 -0
  406. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/group_picker.py +0 -0
  407. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/local_solver_settings_dialog.py +0 -0
  408. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/migration_consent_dialog.py +0 -0
  409. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/migration_progress_dialog.py +0 -0
  410. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/plot_dialog.py +0 -0
  411. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/plot_settings_picker.py +0 -0
  412. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/project_dialog.py +0 -0
  413. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/project_package_dialog.py +0 -0
  414. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/dialogs/update_dialog.py +0 -0
  415. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/downsampling.py +0 -0
  416. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/error_handling.py +0 -0
  417. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/execution_window.py +0 -0
  418. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/hover_tooltip.py +0 -0
  419. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/log_view.py +0 -0
  420. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/network_graph.py +0 -0
  421. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/output_actions.py +0 -0
  422. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/output_log_window.py +0 -0
  423. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/platform_utils.py +0 -0
  424. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/plot_cache.py +0 -0
  425. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/plot_canvas.py +0 -0
  426. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/plot_config_reader.py +0 -0
  427. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/project_utils.py +0 -0
  428. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/result_viewer.py +0 -0
  429. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/scenario_key.py +0 -0
  430. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/scenario_lists.py +0 -0
  431. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/settings_io.py +0 -0
  432. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/solve_reader.py +0 -0
  433. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/tree_reorder.py +0 -0
  434. {flextool-4.6.0 → flextool-4.6.2}/flextool/gui/ui_metrics.py +0 -0
  435. {flextool-4.6.0 → flextool-4.6.2}/flextool/input_derivation/__init__.py +0 -0
  436. {flextool-4.6.0 → flextool-4.6.2}/flextool/input_derivation/_commodity_ladder.py +0 -0
  437. {flextool-4.6.0 → flextool-4.6.2}/flextool/input_derivation/_commodity_ladder_sets.py +0 -0
  438. {flextool-4.6.0 → flextool-4.6.2}/flextool/input_derivation/_dc_power_flow.py +0 -0
  439. {flextool-4.6.0 → flextool-4.6.2}/flextool/input_derivation/_method_constants.py +0 -0
  440. {flextool-4.6.0 → flextool-4.6.2}/flextool/input_derivation/_piecewise.py +0 -0
  441. {flextool-4.6.0 → flextool-4.6.2}/flextool/input_derivation/_process_method.py +0 -0
  442. {flextool-4.6.0 → flextool-4.6.2}/flextool/input_derivation/_specs.py +0 -0
  443. {flextool-4.6.0 → flextool-4.6.2}/flextool/input_derivation/_validators.py +0 -0
  444. {flextool-4.6.0 → flextool-4.6.2}/flextool/lean_parquet.py +0 -0
  445. {flextool-4.6.0 → flextool-4.6.2}/flextool/model_builder/__init__.py +0 -0
  446. {flextool-4.6.0 → flextool-4.6.2}/flextool/model_builder/_special.py +0 -0
  447. {flextool-4.6.0 → flextool-4.6.2}/flextool/model_builder/build_model.py +0 -0
  448. {flextool-4.6.0 → flextool-4.6.2}/flextool/model_builder/encoding.py +0 -0
  449. {flextool-4.6.0 → flextool-4.6.2}/flextool/model_builder/names.py +0 -0
  450. {flextool-4.6.0 → flextool-4.6.2}/flextool/model_builder/profiles.py +0 -0
  451. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/__init__.py +0 -0
  452. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/axis_helpers.py +0 -0
  453. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/color_template.py +0 -0
  454. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/config.py +0 -0
  455. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/format_helpers.py +0 -0
  456. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/legend_helpers.py +0 -0
  457. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/orchestrator.py +0 -0
  458. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/perf.py +0 -0
  459. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/plan.py +0 -0
  460. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/plot_bars.py +0 -0
  461. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/plot_bars_detail.py +0 -0
  462. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/plot_lines.py +0 -0
  463. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/shared_manifest.py +0 -0
  464. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/subplot_helpers.py +0 -0
  465. {flextool-4.6.0 → flextool-4.6.2}/flextool/plot_outputs/unit_labels.py +0 -0
  466. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_inputs/__init__.py +0 -0
  467. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_inputs/import_old_excel_input.json +0 -0
  468. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_inputs/read_matpower.py +0 -0
  469. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_inputs/read_old_flextool.py +0 -0
  470. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_inputs/read_self_describing_excel.py +0 -0
  471. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_inputs/read_tabular_with_specification.py +0 -0
  472. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_inputs/write_old_flextool_to_db.py +0 -0
  473. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_inputs/write_self_describing_to_db.py +0 -0
  474. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_inputs/write_to_input_db.py +0 -0
  475. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/__init__.py +0 -0
  476. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/_annualize.py +0 -0
  477. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/_csv_sidecars.py +0 -0
  478. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/_excel_writer.py +0 -0
  479. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/_fan_labels.py +0 -0
  480. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/_inmemory_helpers.py +0 -0
  481. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/_ramp_inputs.py +0 -0
  482. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/_sheet_names.py +0 -0
  483. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/_timeline_breaks.py +0 -0
  484. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/_unit_context.py +0 -0
  485. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/calc_capacity_flows.py +0 -0
  486. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/calc_connections.py +0 -0
  487. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/calc_costs.py +0 -0
  488. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/calc_group_flows.py +0 -0
  489. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/calc_piecewise.py +0 -0
  490. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/calc_ramp_envelope.py +0 -0
  491. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/calc_slacks.py +0 -0
  492. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/calc_storage_vre.py +0 -0
  493. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/drop_levels.py +0 -0
  494. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/handoff_writers.py +0 -0
  495. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/out_capacity.py +0 -0
  496. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/out_costs.py +0 -0
  497. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/out_flowgroup.py +0 -0
  498. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/out_flows.py +0 -0
  499. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/out_group.py +0 -0
  500. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/out_node.py +0 -0
  501. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/persist_realized_slice.py +0 -0
  502. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/process_results.py +0 -0
  503. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/read_parameters.py +0 -0
  504. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/read_sets.py +0 -0
  505. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/reduced_cells.py +0 -0
  506. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/solve_order.py +0 -0
  507. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/spinedb_replay.py +0 -0
  508. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/union_realized_slice.py +0 -0
  509. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/write_outputs.py +0 -0
  510. {flextool-4.6.0 → flextool-4.6.2}/flextool/process_outputs/write_spinedb.py +0 -0
  511. {flextool-4.6.0 → flextool-4.6.2}/flextool/project_package.py +0 -0
  512. {flextool-4.6.0 → flextool-4.6.2}/flextool/representative_periods/__init__.py +0 -0
  513. {flextool-4.6.0 → flextool-4.6.2}/flextool/representative_periods/clustering.py +0 -0
  514. {flextool-4.6.0 → flextool-4.6.2}/flextool/representative_periods/force_include.py +0 -0
  515. {flextool-4.6.0 → flextool-4.6.2}/flextool/representative_periods/netload.py +0 -0
  516. {flextool-4.6.0 → flextool-4.6.2}/flextool/representative_periods/netload_inputs.py +0 -0
  517. {flextool-4.6.0 → flextool-4.6.2}/flextool/representative_periods/netload_iterate.py +0 -0
  518. {flextool-4.6.0 → flextool-4.6.2}/flextool/representative_periods/preprocess.py +0 -0
  519. {flextool-4.6.0 → flextool-4.6.2}/flextool/representative_periods/scenario_stack.py +0 -0
  520. {flextool-4.6.0 → flextool-4.6.2}/flextool/representative_periods/weights.py +0 -0
  521. {flextool-4.6.0 → flextool-4.6.2}/flextool/run_warnings/_behaviour_specs.py +0 -0
  522. {flextool-4.6.0 → flextool-4.6.2}/flextool/safe_names.py +0 -0
  523. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/__init__.py +0 -0
  524. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/config_builder.py +0 -0
  525. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/constants.py +0 -0
  526. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/data_models.py +0 -0
  527. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/db_reader.py +0 -0
  528. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/dispatch_data.py +0 -0
  529. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/dispatch_mappings.py +0 -0
  530. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/dispatch_plots.py +0 -0
  531. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/input_entity_colors.py +0 -0
  532. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/orchestrator.py +0 -0
  533. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/plan_union.py +0 -0
  534. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/plot_settings_seed.py +0 -0
  535. {flextool-4.6.0 → flextool-4.6.2}/flextool/scenario_comparison/ramp_plots.py +0 -0
  536. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/AXIS_CONTRACT.md +0 -0
  537. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/canonical_databases/howto_aggregate_output.json +0 -0
  538. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/canonical_databases/howto_connections.json +0 -0
  539. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/canonical_databases/howto_demand.json +0 -0
  540. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/canonical_databases/howto_hydro_reservoir.json +0 -0
  541. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/canonical_databases/howto_hydro_reservoir_with_pump.json +0 -0
  542. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/canonical_databases/howto_non_sync_and_curtailment.json +0 -0
  543. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/canonical_databases/howto_ramp_and_start_up.json +0 -0
  544. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/canonical_databases/howto_stochastics.json +0 -0
  545. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/canonical_databases/templates_examples.json +0 -0
  546. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/canonical_databases/templates_time_settings_only.json +0 -0
  547. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/comparison_settings_template.json +0 -0
  548. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/default_plot_settings.yaml +0 -0
  549. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/default_plots.yaml +0 -0
  550. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/flextool_axis_contract.json +0 -0
  551. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/flextool_axis_contract.schema.json +0 -0
  552. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/old_flextool_import_template.json +0 -0
  553. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/output_info_template.json +0 -0
  554. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/output_settings_template.json +0 -0
  555. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_constant_default.json +0 -0
  556. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_default_optional_output.json +0 -0
  557. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_default_value.json +0 -0
  558. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_drop_down.json +0 -0
  559. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_lifetime_method.json +0 -0
  560. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_optional_outputs.json +0 -0
  561. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_output_node_flows.json +0 -0
  562. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_results_master.json +0 -0
  563. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_rolling_start_remove.json +0 -0
  564. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_rolling_window.json +0 -0
  565. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_storage_binding_defaults.json +0 -0
  566. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_v2.json +0 -0
  567. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/pre_v26/flextool_template_v25.json +0 -0
  568. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/spinedb_results_schema.json +0 -0
  569. {flextool-4.6.0 → flextool-4.6.2}/flextool/schemas/spinedb_schema.json +0 -0
  570. {flextool-4.6.0 → flextool-4.6.2}/flextool/solver_config/copt.opt.template +0 -0
  571. {flextool-4.6.0 → flextool-4.6.2}/flextool/solver_config/cplex.opt.template +0 -0
  572. {flextool-4.6.0 → flextool-4.6.2}/flextool/solver_config/gurobi.opt.template +0 -0
  573. {flextool-4.6.0 → flextool-4.6.2}/flextool/solver_config/highs.opt.template +0 -0
  574. {flextool-4.6.0 → flextool-4.6.2}/flextool/solver_config/xpress.opt.template +0 -0
  575. {flextool-4.6.0 → flextool-4.6.2}/flextool/spinedb_backend/__init__.py +0 -0
  576. {flextool-4.6.0 → flextool-4.6.2}/flextool/spinedb_backend/_axis_enums.py +0 -0
  577. {flextool-4.6.0 → flextool-4.6.2}/flextool/spinedb_backend/_backend.py +0 -0
  578. {flextool-4.6.0 → flextool-4.6.2}/flextool/sqlite_url.py +0 -0
  579. {flextool-4.6.0 → flextool-4.6.2}/flextool/timeline_pieces.py +0 -0
  580. {flextool-4.6.0 → flextool-4.6.2}/flextool/units_of_measure.py +0 -0
  581. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/__init__.py +0 -0
  582. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/bundle_install.py +0 -0
  583. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/canonical_databases.py +0 -0
  584. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/db_handle.py +0 -0
  585. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/ensure_settings_db.py +0 -0
  586. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/export_database.py +0 -0
  587. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/extend_tests_fixture.py +0 -0
  588. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/fixture_schema.py +0 -0
  589. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/frozen.py +0 -0
  590. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/generate_canonical.py +0 -0
  591. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/initialize_database.py +0 -0
  592. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/install_info.py +0 -0
  593. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/migrate_before_run.py +0 -0
  594. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/self_update.py +0 -0
  595. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/sync_master_json_template.py +0 -0
  596. {flextool-4.6.0 → flextool-4.6.2}/flextool/update_flextool/test_fixtures.py +0 -0
  597. {flextool-4.6.0 → flextool-4.6.2}/flextool/user_dirs.py +0 -0
  598. {flextool-4.6.0 → flextool-4.6.2}/flextool.egg-info/dependency_links.txt +0 -0
  599. {flextool-4.6.0 → flextool-4.6.2}/flextool.egg-info/entry_points.txt +0 -0
  600. {flextool-4.6.0 → flextool-4.6.2}/flextool.egg-info/top_level.txt +0 -0
  601. {flextool-4.6.0 → flextool-4.6.2}/flextool_assistant_entry.py +0 -0
  602. {flextool-4.6.0 → flextool-4.6.2}/flextool_run_supervisor.py +0 -0
  603. {flextool-4.6.0 → flextool-4.6.2}/setup.cfg +0 -0
  604. {flextool-4.6.0 → flextool-4.6.2}/tests/test_bar_layout.py +0 -0
  605. {flextool-4.6.0 → flextool-4.6.2}/tests/test_bar_sub_pixel_labels.py +0 -0
  606. {flextool-4.6.0 → flextool-4.6.2}/tests/test_blocks.py +0 -0
  607. {flextool-4.6.0 → flextool-4.6.2}/tests/test_branch_weights.py +0 -0
  608. {flextool-4.6.0 → flextool-4.6.2}/tests/test_child_python_safe_path.py +0 -0
  609. {flextool-4.6.0 → flextool-4.6.2}/tests/test_child_run_argv.py +0 -0
  610. {flextool-4.6.0 → flextool-4.6.2}/tests/test_ci_shard.py +0 -0
  611. {flextool-4.6.0 → flextool-4.6.2}/tests/test_color_template.py +0 -0
  612. {flextool-4.6.0 → flextool-4.6.2}/tests/test_commodity_ladder_rolling.py +0 -0
  613. {flextool-4.6.0 → flextool-4.6.2}/tests/test_comparison_excel.py +0 -0
  614. {flextool-4.6.0 → flextool-4.6.2}/tests/test_comparison_project_root.py +0 -0
  615. {flextool-4.6.0 → flextool-4.6.2}/tests/test_comparison_results_registry.py +0 -0
  616. {flextool-4.6.0 → flextool-4.6.2}/tests/test_complete_period_share_reduction.py +0 -0
  617. {flextool-4.6.0 → flextool-4.6.2}/tests/test_connection_node_warnings.py +0 -0
  618. {flextool-4.6.0 → flextool-4.6.2}/tests/test_console_run_tool.py +0 -0
  619. {flextool-4.6.0 → flextool-4.6.2}/tests/test_cost_aggregation_semantics.py +0 -0
  620. {flextool-4.6.0 → flextool-4.6.2}/tests/test_cost_breakdown_by_entity.py +0 -0
  621. {flextool-4.6.0 → flextool-4.6.2}/tests/test_csv_dump_roundtrip.py +0 -0
  622. {flextool-4.6.0 → flextool-4.6.2}/tests/test_dc_power_flow.py +0 -0
  623. {flextool-4.6.0 → flextool-4.6.2}/tests/test_dependency_caps.py +0 -0
  624. {flextool-4.6.0 → flextool-4.6.2}/tests/test_dispatch_consumer_and_connection_signs.py +0 -0
  625. {flextool-4.6.0 → flextool-4.6.2}/tests/test_dispatch_multi_period.py +0 -0
  626. {flextool-4.6.0 → flextool-4.6.2}/tests/test_dispatch_node_debug_and_tree.py +0 -0
  627. {flextool-4.6.0 → flextool-4.6.2}/tests/test_dispatch_order_specials.py +0 -0
  628. {flextool-4.6.0 → flextool-4.6.2}/tests/test_dispatch_scenario_tag.py +0 -0
  629. {flextool-4.6.0 → flextool-4.6.2}/tests/test_ensure_settings_db.py +0 -0
  630. {flextool-4.6.0 → flextool-4.6.2}/tests/test_entity_unitsize_invariant.py +0 -0
  631. {flextool-4.6.0 → flextool-4.6.2}/tests/test_entity_universe_carrier.py +0 -0
  632. {flextool-4.6.0 → flextool-4.6.2}/tests/test_env_check.py +0 -0
  633. {flextool-4.6.0 → flextool-4.6.2}/tests/test_env_knob_registry.py +0 -0
  634. {flextool-4.6.0 → flextool-4.6.2}/tests/test_excel_text_cells.py +0 -0
  635. {flextool-4.6.0 → flextool-4.6.2}/tests/test_execution_log_lint.py +0 -0
  636. {flextool-4.6.0 → flextool-4.6.2}/tests/test_export_to_tabular.py +0 -0
  637. {flextool-4.6.0 → flextool-4.6.2}/tests/test_extend_tests_fixture.py +0 -0
  638. {flextool-4.6.0 → flextool-4.6.2}/tests/test_flowgroup_indicators.py +0 -0
  639. {flextool-4.6.0 → flextool-4.6.2}/tests/test_force_include.py +0 -0
  640. {flextool-4.6.0 → flextool-4.6.2}/tests/test_group_output_warnings.py +0 -0
  641. {flextool-4.6.0 → flextool-4.6.2}/tests/test_handoff_writers.py +0 -0
  642. {flextool-4.6.0 → flextool-4.6.2}/tests/test_input_entity_colors.py +0 -0
  643. {flextool-4.6.0 → flextool-4.6.2}/tests/test_lean_parquet.py +0 -0
  644. {flextool-4.6.0 → flextool-4.6.2}/tests/test_lh2_three_region.py +0 -0
  645. {flextool-4.6.0 → flextool-4.6.2}/tests/test_min_load_rolling.py +0 -0
  646. {flextool-4.6.0 → flextool-4.6.2}/tests/test_model_builder_invest.py +0 -0
  647. {flextool-4.6.0 → flextool-4.6.2}/tests/test_model_builder_special_functions.py +0 -0
  648. {flextool-4.6.0 → flextool-4.6.2}/tests/test_non_anticipativity.py +0 -0
  649. {flextool-4.6.0 → flextool-4.6.2}/tests/test_old_flextool_importer_schema_drift.py +0 -0
  650. {flextool-4.6.0 → flextool-4.6.2}/tests/test_open_results_db.py +0 -0
  651. {flextool-4.6.0 → flextool-4.6.2}/tests/test_output_column_metadata.py +0 -0
  652. {flextool-4.6.0 → flextool-4.6.2}/tests/test_output_csv_names.py +0 -0
  653. {flextool-4.6.0 → flextool-4.6.2}/tests/test_output_metadata_renderers.py +0 -0
  654. {flextool-4.6.0 → flextool-4.6.2}/tests/test_output_work_folder_isolation.py +0 -0
  655. {flextool-4.6.0 → flextool-4.6.2}/tests/test_parameter_group_coverage.py +0 -0
  656. {flextool-4.6.0 → flextool-4.6.2}/tests/test_period_share_of_year_output.py +0 -0
  657. {flextool-4.6.0 → flextool-4.6.2}/tests/test_piecewise_validation.py +0 -0
  658. {flextool-4.6.0 → flextool-4.6.2}/tests/test_plan_union.py +0 -0
  659. {flextool-4.6.0 → flextool-4.6.2}/tests/test_plot_draw_order.py +0 -0
  660. {flextool-4.6.0 → flextool-4.6.2}/tests/test_plot_gaps.py +0 -0
  661. {flextool-4.6.0 → flextool-4.6.2}/tests/test_plot_pipeline.py +0 -0
  662. {flextool-4.6.0 → flextool-4.6.2}/tests/test_plot_plan_chunk_reconstruction.py +0 -0
  663. {flextool-4.6.0 → flextool-4.6.2}/tests/test_plot_plan_time_labels_roundtrip.py +0 -0
  664. {flextool-4.6.0 → flextool-4.6.2}/tests/test_plot_settings_seed.py +0 -0
  665. {flextool-4.6.0 → flextool-4.6.2}/tests/test_project_package_cli.py +0 -0
  666. {flextool-4.6.0 → flextool-4.6.2}/tests/test_ramp_histogram.py +0 -0
  667. {flextool-4.6.0 → flextool-4.6.2}/tests/test_read_highs_solution.py +0 -0
  668. {flextool-4.6.0 → flextool-4.6.2}/tests/test_recourse_cost_reconciliation.py +0 -0
  669. {flextool-4.6.0 → flextool-4.6.2}/tests/test_regional_filter.py +0 -0
  670. {flextool-4.6.0 → flextool-4.6.2}/tests/test_representative_periods.py +0 -0
  671. {flextool-4.6.0 → flextool-4.6.2}/tests/test_rolling_online_mintime_carry.py +0 -0
  672. {flextool-4.6.0 → flextool-4.6.2}/tests/test_rp_alternative_name.py +0 -0
  673. {flextool-4.6.0 → flextool-4.6.2}/tests/test_rp_force_include_wiring.py +0 -0
  674. {flextool-4.6.0 → flextool-4.6.2}/tests/test_rp_solves_filter.py +0 -0
  675. {flextool-4.6.0 → flextool-4.6.2}/tests/test_safe_names.py +0 -0
  676. {flextool-4.6.0 → flextool-4.6.2}/tests/test_safe_text.py +0 -0
  677. {flextool-4.6.0 → flextool-4.6.2}/tests/test_scenario_colors.py +0 -0
  678. {flextool-4.6.0 → flextool-4.6.2}/tests/test_scenario_stack.py +0 -0
  679. {flextool-4.6.0 → flextool-4.6.2}/tests/test_scenarios.py +0 -0
  680. {flextool-4.6.0 → flextool-4.6.2}/tests/test_self_describing_reader.py +0 -0
  681. {flextool-4.6.0 → flextool-4.6.2}/tests/test_shared_axis_manifest.py +0 -0
  682. {flextool-4.6.0 → flextool-4.6.2}/tests/test_simple_bar_entity_color.py +0 -0
  683. {flextool-4.6.0 → flextool-4.6.2}/tests/test_solve_config.py +0 -0
  684. {flextool-4.6.0 → flextool-4.6.2}/tests/test_solve_reader.py +0 -0
  685. {flextool-4.6.0 → flextool-4.6.2}/tests/test_specification_excel_import.py +0 -0
  686. {flextool-4.6.0 → flextool-4.6.2}/tests/test_sqlite_url.py +0 -0
  687. {flextool-4.6.0 → flextool-4.6.2}/tests/test_stream_concat_temp_cleanup.py +0 -0
  688. {flextool-4.6.0 → flextool-4.6.2}/tests/test_support_load.py +0 -0
  689. {flextool-4.6.0 → flextool-4.6.2}/tests/test_synthesize_invest_dual.py +0 -0
  690. {flextool-4.6.0 → flextool-4.6.2}/tests/test_thread_budget.py +0 -0
  691. {flextool-4.6.0 → flextool-4.6.2}/tests/test_time_runs.py +0 -0
  692. {flextool-4.6.0 → flextool-4.6.2}/tests/test_timeline_breaks.py +0 -0
  693. {flextool-4.6.0 → flextool-4.6.2}/tests/test_timings_csv.py +0 -0
  694. {flextool-4.6.0 → flextool-4.6.2}/tests/test_toolbox_specs.py +0 -0
  695. {flextool-4.6.0 → flextool-4.6.2}/tests/test_unidirectional_connection.py +0 -0
  696. {flextool-4.6.0 → flextool-4.6.2}/tests/test_unit_online_dt_columns.py +0 -0
  697. {flextool-4.6.0 → flextool-4.6.2}/tests/test_units_of_measure.py +0 -0
  698. {flextool-4.6.0 → flextool-4.6.2}/tests/test_units_of_measure_validators.py +0 -0
  699. {flextool-4.6.0 → flextool-4.6.2}/tests/test_user_dirs_isolation.py +0 -0
  700. {flextool-4.6.0 → flextool-4.6.2}/tests/test_v52_migration.py +0 -0
  701. {flextool-4.6.0 → flextool-4.6.2}/tests/test_v63_migration.py +0 -0
  702. {flextool-4.6.0 → flextool-4.6.2}/tests/test_v64_migration.py +0 -0
  703. {flextool-4.6.0 → flextool-4.6.2}/tests/test_v65_migration.py +0 -0
  704. {flextool-4.6.0 → flextool-4.6.2}/tests/test_v66_migration.py +0 -0
  705. {flextool-4.6.0 → flextool-4.6.2}/tests/test_v67_migration.py +0 -0
  706. {flextool-4.6.0 → flextool-4.6.2}/tests/test_v68_migration.py +0 -0
  707. {flextool-4.6.0 → flextool-4.6.2}/tests/test_v69_migration.py +0 -0
  708. {flextool-4.6.0 → flextool-4.6.2}/tests/test_v70_migration.py +0 -0
  709. {flextool-4.6.0 → flextool-4.6.2}/tests/test_workdir_empty_default.py +0 -0
  710. {flextool-4.6.0 → flextool-4.6.2}/tests/test_xlsx_startup_input_round_trip.py +0 -0
  711. {flextool-4.6.0 → flextool-4.6.2}/tests/test_xlsx_v77_round_trip.py +0 -0
  712. {flextool-4.6.0 → flextool-4.6.2}/tests/test_xlsx_workflow.py +0 -0
  713. {flextool-4.6.0 → flextool-4.6.2}/tests/test_years_represented.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flextool
3
- Version: 4.6.0
3
+ Version: 4.6.2
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
@@ -39,7 +39,7 @@ Classifier: Topic :: Scientific/Engineering
39
39
  Requires-Python: >=3.11
40
40
  Description-Content-Type: text/markdown
41
41
  License-File: LICENSE.txt
42
- Requires-Dist: polar-high>=3.15.0
42
+ Requires-Dist: polar-high>=3.16.1
43
43
  Requires-Dist: highspy<1.16,>=1.15.1
44
44
  Requires-Dist: polars<3,>=1.40
45
45
  Requires-Dist: pandas<4,>=2.2.3
@@ -69,10 +69,11 @@ Provides-Extra: compat
69
69
  Requires-Dist: polars[rtcompat]<3,>=1.40; extra == "compat"
70
70
  Provides-Extra: engine-polars
71
71
  Provides-Extra: dev
72
- Requires-Dist: pytest>=8.0; extra == "dev"
72
+ Requires-Dist: pytest<10,>=9.2; extra == "dev"
73
73
  Requires-Dist: pytest-timeout>=2.3; extra == "dev"
74
74
  Requires-Dist: pytest-xdist>=3.0; extra == "dev"
75
75
  Requires-Dist: ruff>=0.5; extra == "dev"
76
+ Requires-Dist: setuptools>=61; extra == "dev"
76
77
  Dynamic: license-file
77
78
 
78
79
  [![PyPI version](https://img.shields.io/pypi/v/flextool.svg)](https://pypi.org/project/flextool/)
@@ -114,7 +115,7 @@ IRENA FlexTool is an energy and power systems model for understanding the role o
114
115
  change is in how the matrix is generated and solved, not in the model
115
116
  formulation.
116
117
 
117
- This is IRENA FlexTool v4 (see the current version in CHANGELOG.md). Report any bugs or difficulties in the [issue tracker](https://github.com/irena-flextool/flextool/issues).
118
+ This is IRENA FlexTool v4 (see the current version in CHANGELOG.md). Report any bugs or difficulties in the [issue tracker](https://github.com/irena-flextool/flextool/issues); ask modelling and usage questions in [GitHub Discussions](https://github.com/irena-flextool/flextool/discussions).
118
119
  The previous version of IRENA FlexTool can be found in https://www.irena.org/energytransition/Energy-System-Models-and-Data/IRENA-FlexTool.
119
120
 
120
121
  ## Under the hood: Rust-based matrix generation
@@ -37,7 +37,7 @@ IRENA FlexTool is an energy and power systems model for understanding the role o
37
37
  change is in how the matrix is generated and solved, not in the model
38
38
  formulation.
39
39
 
40
- This is IRENA FlexTool v4 (see the current version in CHANGELOG.md). Report any bugs or difficulties in the [issue tracker](https://github.com/irena-flextool/flextool/issues).
40
+ This is IRENA FlexTool v4 (see the current version in CHANGELOG.md). Report any bugs or difficulties in the [issue tracker](https://github.com/irena-flextool/flextool/issues); ask modelling and usage questions in [GitHub Discussions](https://github.com/irena-flextool/flextool/discussions).
41
41
  The previous version of IRENA FlexTool can be found in https://www.irena.org/energytransition/Energy-System-Models-and-Data/IRENA-FlexTool.
42
42
 
43
43
  ## Under the hood: Rust-based matrix generation
@@ -400,7 +400,9 @@ Same `build_flextool` body, three wrappers from `polar_high`:
400
400
  objective is a **valid lower bound** and the loop converges on the
401
401
  optimality gap. This replaces the earlier dual-subgradient scheme, which
402
402
  collapsed greenfield cross-region trade to autarky with an *invalid*
403
- bound. See [decomposition.md](decomposition.md).
403
+ bound. The solve's results come from a final monolithic solve with the
404
+ Benders investments fixed (`--benders-final-solve`, decomposition.md
405
+ §2.9). See [decomposition.md](decomposition.md).
404
406
 
405
407
  #### Feature flags in `build_flextool`
406
408
 
@@ -653,7 +655,7 @@ does for ladders) with the usual rules, and unions the groups into one `[entitie
653
655
  (`_axis_frame_resolved`). It raises only where those rules cannot place a group: keys on both axes, or an
654
656
  ambiguous group without a `period_filter`. With every level named, the reader places rows by label and no
655
657
  split happens. When an unnamed map's shape was read from its depth or keys, `resolve_param_shape` prints one
656
- note per (class, parameter) and run (`_behaviour_changes.warn_once`, `print(flush=True)`); ladders are left
658
+ note per (class, parameter) and run (coded, `run_warnings`); ladders are left
657
659
  out (their levels are placed by depth by definition).
658
660
 
659
661
  `_param_shapes` is the **I/O contract only** — it validates user-authored
@@ -1183,6 +1185,9 @@ Every engine run (`cmd_run_flextool.main`, once its scenario and output folder a
1183
1185
  the owner (`RunLogOwner`, `_owner.py`) writes the log from there, hiding the marker. Without an owner (Spine
1184
1186
  Toolbox, `python -m flextool.cli.cmd_run_flextool`, a Python console) the engine copies its own Python streams
1185
1187
  (`_tee.py`, `log_capture: "python"`). The log keeps its first 64 KiB and last `FLEXTOOL_RUN_LOG_MAX_BYTES`.
1188
+ A line for the log only (the scaling guard's report under its coded line: `run_warnings.warn_grouped(...,
1189
+ run_log=True)`) goes through `run_record.write_log_only`: printed with `LOG_ONLY_PREFIX` for an owner, which
1190
+ writes it without the prefix and does not show it; written to the `RunLogWriter` directly without one.
1186
1191
  - When the engine dies without finishing its status (a crash, a kill, a signal), the owner finishes it from the
1187
1192
  exit code (`classify_exit`: `killed`, `interrupted`, `crashed`). Without an owner a reader derives `abandoned` from
1188
1193
  a stale `running` (`effective_state`).
@@ -1421,7 +1426,7 @@ names as before for debug inspection:
1421
1426
  | `realized_commission` | *(in-memory only)* | Realised investments with a construction lead time: coming online / in construction in a later solve. |
1422
1427
  | `divest_cumulative` | `p_entity_divested.csv` | Cumulative divest per entity carried forward. |
1423
1428
  | `roll_end_state` / `upward_roll_end_state` | `p_roll_continue_state.csv` | `v_state` at the end of the realized window; the start state of the sub-solves that continue from it, routed by `solve/_carry_routing.py` (the latest realised state at the sub-solve's nesting level or deeper; engine.md "Storage carry routing"). |
1424
- | `roll_end_online` | *(in-memory only)* | Committed jump-end `v_online` per online process (OC1 Carrier 1); the next roll's `online_change` first step (`dt_online_carry`) sees the prior commitment instead of the within-roll cyclic wrap, so a unit that stays committed is not re-charged a startup across the boundary. |
1429
+ | `roll_end_online` | *(in-memory only)* | Committed jump-end `v_online` per online process (OC1 Carrier 1); the next roll's `online_change` first step (`dt_online_carry`) sees the prior commitment instead of a free start, so a unit that stays committed pays no start-up across the boundary and one that was offline does. |
1425
1430
  | `online_history` | *(in-memory only)* | The realized `v_startup`/`v_shutdown` that a minimum up / down time still covers after the solve: the last realized step and its predecessors along `dt_ramp_link`, each with `hours_to_end` (hours from its start to the end of the last realized step); inside a forecasts-only fan under the tied forecast's steps. Rebuilt into `uptime_carry`/`downtime_carry` at the next solve's steps that follow its `dt_ramp_carry` and injected on the `minimum_uptime` RHS / `minimum_downtime` LHS. |
1426
1431
  | `fix_storage_quantity / price / usage` | `fix_storage_*.csv` | Parent-imposed storage quota at the boundary (any subset of the three metrics — each carries its own `(node, period, step)` index, so a separate timesteps carrier is not needed). |
1427
1432
  | `cumulative_co2` | `co2_cum_realized_tonnes.csv` | Running CO2 totals across rolls. |
@@ -1465,6 +1470,35 @@ by period: the existing capacity entered once, at the first solve's first
1465
1470
  period, so a period-varying `existing` was lost in later solves) were replaced
1466
1471
  by `realized_cohort` / `realized_retire`.
1467
1472
 
1473
+ A realization solve (the deterministic solve after a stochastic one) takes
1474
+ the PIN carriers of its parent: the investments and `fix_online` (the
1475
+ NA-tied units online of the binary units, `online_fix_eq_integer`; linear
1476
+ units online are re-decided, so `online_fix_eq_linear` has no rows). It does not take reserve: it meets
1477
+ the reserve requirements with its own data. A `fix_reserve` carrier with an
1478
+ exact per-unit pin (`reserve_fix_eq`) shipped in 4.2.0–4.6.0 and was
1479
+ removed (it is in git history). A later reserve-market stage that realizes
1480
+ reserve separately should not repeat its mistakes: reserve provision has no
1481
+ cost, so the stochastic solve's per-unit allocation is degenerate (solver
1482
+ noise); an `==` pin is infeasible against the profile, storage-reserve and
1483
+ ramp rows when the realized data is lower; a requirement that varies with
1484
+ the data (stochastic `reservation`, dynamic, n-1) is set day-ahead in a real
1485
+ market, so the stage has to choose between the procured and the recomputed
1486
+ amount; and the per-unit day-ahead tie (`non_anticipativity_reserve`, kept)
1487
+ assumes non-transferable awards. Such a carrier (`fix_online` is the
1488
+ pattern) needs:
1489
+
1490
+ - one row in `SolveHandoff._FIELDS`, `PIN_FIELDS`, `_FIELD_TO_KEY` and
1491
+ `_HANDOFF_EMPTY_SCHEMAS`, and a `handoff/...` key constant in
1492
+ `preprocess/_provider_keys.py` (`HANDOFF_FIX_ONLINE`);
1493
+ - a producer: `online_tie_cells` / `reference_forecasts` are the pattern;
1494
+ - a FlexData field (`p_fix_online`) and its loader from the handoff key;
1495
+ - one entry in `flex_data.coarse_pin_varies`;
1496
+ - its constraint, with an `EQ.` header and a `CONSTRAINT_FAMILIES` entry in
1497
+ `autoscale/_layer2_types.py`;
1498
+ - the field in the `_reduce_detail` field list of the detail level that
1499
+ leaves its variable out (`p_fix_online` sits with the online fields; a
1500
+ reserve carrier goes in `RESERVE_FIELDS`).
1501
+
1468
1502
  ## Solution extraction
1469
1503
 
1470
1504
  `process_outputs.read_highs_solution.VARIABLE_SPECS` declares every
@@ -1610,12 +1644,13 @@ LP the solver gets can be solved accurately after Layers 2 and 3
1610
1644
  `error`, no database tier; the GUI's Solver options → Scaling guard sends
1611
1645
  the flag): an error raises `ScalingRangeError` (a
1612
1646
  `FlexToolConfigError`, so `cmd_run_flextool` prints it without a
1613
- traceback); `warn` prints it and solves; `off` checks nothing (Layer 3's
1614
- window clip still applies). Warnings print once per run, keyed by base
1615
- solve, Benders region, group, level and the roll's own exponent (if a
1616
- recheck set one), so a later roll's error or new exponent still prints
1617
- (`_behaviour_changes.warn_once`; the once-per-run log of an adjusted
1618
- exponent uses `mark_once`, also reset by `start_run`).
1647
+ traceback); `warn` shows it as a coded warning (W-0544) and solves; `off`
1648
+ checks nothing (Layer 3's window clip still applies). Warnings (W-0543..
1649
+ W-0546: one line naming the solve, the full message in the debug log)
1650
+ show once per run, keyed by base solve, Benders region, group, level and
1651
+ the roll's own exponent (if a recheck set one), so a later roll's error
1652
+ or new exponent still shows (`_behaviour_changes.mark_once`, also used by
1653
+ the once-per-run log of an adjusted exponent; reset by `start_run`).
1619
1654
  * The message names the solve (and roll / region), the spread and window
1620
1655
  at the solve's `primal_feasibility_tolerance`, the family and up to five
1621
1656
  entries at each end (polar-high `locate_extremes`, warning / error only),
@@ -1628,7 +1663,7 @@ LP the solver gets can be solved accurately after Layers 2 and 3
1628
1663
  * `FLEXTOOL_AUTOSCALE_STRICT=1` raises also under `warn` / `off`, but only
1629
1664
  for an error Layer 2 caused (the pre-Layer-2 pool fitted). A failure of
1630
1665
  the check itself (or of the range readout, monolith or Benders region)
1631
- prints "the scaling guard could not run" once per run and the solve goes
1666
+ shows "scaling guard could not run" (W-0547) once per run and the solve goes
1632
1667
  on (re-raised under strict).
1633
1668
  * Where it runs: after Layer 3 on the first solve of each LP shape (cold
1634
1669
  and warm paths; the verdict is cached in `_AutoscaleShapeCacheEntry` and
@@ -947,8 +947,14 @@ lower bound.
947
947
  The FlexTool wrapper handles the FlexTool-side concerns: regional
948
948
  unitsize, regional profiles, regional handoff state, and the RP-weight
949
949
  consistency that follows from building the master with the same emit as
950
- the monolith. See [decomposition.md](decomposition.md) for the
951
- user-facing story and the parameters that gate this path.
950
+ the monolith. After the loop the solve's results come from the **final
951
+ solve**: the orchestrator falls through to the monolithic path with the
952
+ investment decisions pinned to the Benders incumbent
953
+ (`_benders_final.pin_invest_decisions`); with `--benders-final-solve off`
954
+ a chained Benders solve writes only its investment slice
955
+ (`output/_benders_slice.py`). See [decomposition.md](decomposition.md)
956
+ (§2.9 for the outputs) for the user-facing story and the parameters that
957
+ gate this path.
952
958
 
953
959
  ## Solve-to-solve handoff
954
960
 
@@ -1184,10 +1190,10 @@ it. Order per sub-solve: non-RP downgrade → `_reject_rolling_rp` /
1184
1190
  `_reject_plain_forward_in_rp_solve` → fix_start_end → rolling timeblock.
1185
1191
  `_restore_methods` captures the frame after these rewrites.
1186
1192
 
1187
- Storage warnings and notices print one line per message type and complete
1188
- solve, naming how many nodes and the first
1189
- (`_behaviour_changes.storage_message`, `notice(..., solve=...)`); the
1190
- values per node go to the `flextool.engine.storage` logger at debug level.
1193
+ Storage warnings and notices print one line per code and complete solve,
1194
+ naming how many nodes and the first (`run_warnings.warn_grouped(code, names,
1195
+ solve=...)`: W-0534..W-0539, W-0580..W-0583; `notice(..., solve=...)`); the
1196
+ values per node go to the `flextool.warnings` logger at debug level.
1191
1197
 
1192
1198
  ## Output-writer shape adaptation
1193
1199
 
@@ -36,6 +36,7 @@ read (for example `FLEXTOOL_HIGHS_THREADS=many`) is ignored with one warning tha
36
36
  | `FLEXTOOL_BASIS_CACHE_DIR` | `--basis-cache-dir` | folder | Where the warm-start basis cache is kept (default `<work folder>/basis_cache`). Share one folder to reuse bases between runs. |
37
37
  | `FLEXTOOL_SOLVER_CONFIG_DIR` | `--solver-config-dir` | folders, separated by `:` (Windows `;`) | Where a run takes its solver option files (`highs.opt`, `gurobi.opt`, ...) from: each solver's file from the first folder that has it, else FlexTool's default. For the FlexTool window it replaces the workspace's folder (a project's own `solver_config/` stays first). Wins over the search of a run without it: `solver_config/` next to the input database, the project's and then the workspace's of a GUI project database, in the Spine Toolbox project folder, in the current folder. The files of a folder named here are trusted (full file paths, server settings), like the flag's; use it on CI and servers. The run copies the files it used to `<work folder>/solve_data/solver_config/`. See [Where the option files come from](solvers/index.md#where-the-option-files-come-from). |
38
38
  | `FLEXTOOL_BENDERS_WORKERS` | `--benders-workers` | positive integer | Threads for the region solves of a Benders solve. Unset or `0`: the number of regions, at most the number of cores minus one. |
39
+ | `FLEXTOOL_BENDERS_FINAL_SOLVE` | `--benders-final-solve` | `on` / `off` | After a Benders solve, solve the whole model once with the Benders investments fixed; that solve writes the solve's results (default `on`). `off` skips it, for a model whose undecomposed LP does not fit in memory: the Benders solve then writes only its investments and their costs, or no result tables when it is the last solve. |
39
40
 
40
41
  ## Process and GUI settings
41
42
 
@@ -96,7 +96,7 @@ Typically the model does not want to produce extra energy as it usually has cost
96
96
 
97
97
  *Variable_cost_only* can be used when there are no losses associated with the flow. It allows costs related to the flow, but if losses are to be included, it should not be used.
98
98
 
99
- The *no_losses_no_variable_cost* can be used when the connection has no losses and no variable costs accociated with the flow. It is computationally the most efficient method, as it uses only one variable for the flow (the variable becomes negative for the other direction, but this can work only when there are no losses or variable costs). It also prevents simultanoues flow to both directions.
99
+ The *no_losses_no_variable_cost* can be used when the connection has no losses and no variable costs associated with the flow. It is computationally the most efficient method, as it uses only one variable for the flow (the variable becomes negative for the other direction), so the flow cannot go both ways at the same time. One flow variable also cannot model losses or variable costs: its `other_operational_cost` is ignored (W-0590), and so is its `efficiency` (W-0591), unless the two nodes have different `unit_of_measure` values: then the `efficiency` is a conversion between the units that applies in both directions (e.g. MWh to t; W-0589).
100
100
 
101
101
  The *unidirectional* method restricts the flow to one direction only (from the first node to the second node in `connection__node__node`). It uses a single non-negative variable and supports `efficiency` and `other_operational_cost` in the usual way. Useful for one-way transmission such as controllable HVDC links or commodity pipelines.
102
102
 
@@ -84,6 +84,32 @@ regions are tightly coupled (i.e. cross-region flows dominate the
84
84
  dispatch) the cut loop may need many iterations and a monolithic solve is
85
85
  usually better.
86
86
 
87
+ **What a Benders solve writes.** After the Benders loop, the solve ends
88
+ with a **final solve**: the whole model, solved once with every investment,
89
+ retirement and life-extension decision fixed to the Benders result. That
90
+ solve writes all result tables of the Benders solve (dispatch, prices,
91
+ costs, capacities, investment marginal values) and hands the next solve
92
+ the same results as an undecomposed solve would. Its costs equal those of
93
+ the undecomposed model up to the Benders gap. See
94
+ [Results of a Benders solve](../results.md#results-of-a-benders-solve).
95
+
96
+ **Memory.** The final solve builds the whole model in FlexTool's process
97
+ and, with HiGHS, solves it in a separate solver process (as
98
+ `--save-memory` does), without a warm start. The peak memory of the run is
99
+ the larger of the Benders loop and the whole model. A final solve that
100
+ runs out of memory (in FlexTool's process or in the solver's), stops or
101
+ finds no solution is reported (warning W-0572) and the run goes on with
102
+ the Benders result; a solver configuration or licence error stops the run
103
+ as without Benders. If the whole model does not fit in memory —
104
+ often the reason to use Benders — run with `--benders-final-solve off`
105
+ (`FLEXTOOL_BENDERS_FINAL_SOLVE=off`): a Benders investment solve then writes
106
+ only its investments, retirements, their costs and its `summary_solve`
107
+ row (no investment marginal values, note W-0571), and a later dispatch
108
+ solve (for example a rolling one, which needs less memory) writes the
109
+ dispatch. A Benders solve that is the last solve writes no result tables
110
+ with the final solve off (warning W-0570), so add a dispatch solve after
111
+ it.
112
+
87
113
  Connections between regions (or between a region and the master) are
88
114
  replaced by trade flows in the decomposition, so they cannot have a
89
115
  `startup_method`, the *exact* transfer method or reserve: the run stops with
@@ -7,7 +7,7 @@ Stochastics are used to represent the uncertainty of the future in the decision
7
7
 
8
8
  Because the decision maker does not yet know which future will occur, decisions that must be committed *before* the uncertainty is revealed cannot differ between the forecasts. A **non-anticipativity** constraint therefore forces the forecast branches to agree with each other on those here-and-now decisions over the committed part of the horizon — and that agreement *is* the (non-anticipative) realization of each such decision. The tied decision types are investments, storage usage and unit online (commitment) status; energy flows are always left free so each forecast dispatches them independently. (`min_uptime`, `min_downtime` and ramp limits are separate physics, always active within each branch's own trajectory — they are not part of the non-anticipativity tie.)
9
9
 
10
- There is **no "realized" branch among the weighted forecasts.** "Realized" is an *optional* designation — at most one branch per branching point — that marks which branch's data are treated as the actuals; it is never a weighted member of the fan. The stochastic solve optimises over the forecasts only, so its operations inside the fan have no realized answer of their own. With a designated branch, FlexTool runs a **realization dispatch** right after the stochastic solve: a deterministic solve over the same committed window that reads the designated branch's data, keeps the stochastic solve's investments and inherits the units online and the reserves tied across the forecasts (the value of the first forecast branch in sorted order). Its results are the realized operational results. Without a designation (a forecasts-only fan) the results hold the investment decisions and the operations of the periods before the reveal, but no realized operation inside the fan. A solve reports only these committed / realized results, never the individual forecast branches (the `output_horizon` debug option, below, writes them to a separate raw dump).
10
+ There is **no "realized" branch among the weighted forecasts.** "Realized" is an *optional* designation — at most one branch per branching point — that marks which branch's data are treated as the actuals; it is never a weighted member of the fan. The stochastic solve optimises over the forecasts only, so its operations inside the fan have no realized answer of their own. With a designated branch, FlexTool runs a **realization dispatch** right after the stochastic solve: a deterministic solve over the same committed window that reads the designated branch's data, keeps the stochastic solve's investments and inherits the units online of the binary units (`startup_method` = *binary*, also when `reduce_unit_detail_method` relaxes integers) tied across the forecasts (the value of the first forecast branch in sorted order). Linear units online (`startup_method` = *linear*) are a relaxation, not a schedule: the realization dispatch decides them again with the realized data, their minimum up and down times and the history of the previous realization. A realization dispatch that inherits nothing (no binary units online and no investments) is a dispatch of each committed window without look-ahead; notes W-0509 and W-0588 say so. Reserve is not inherited: the realization dispatch meets the reserve requirements again with the realized data, from its units online and every other reserve provider (units without online variables, connections, storage). Its results are the realized operational results. Without a designation (a forecasts-only fan) the results hold the investment decisions and the operations of the periods before the reveal, but no realized operation inside the fan. A solve reports only these committed / realized results, never the individual forecast branches (the `output_horizon` debug option, below, writes them to a separate raw dump).
11
11
 
12
12
  ![Stochastic system](../img/concept/non-anticipatory.png)
13
13
 
@@ -42,7 +42,7 @@ Wherever the branches still share the same information — the committed part of
42
42
 
43
43
  **Any stochastic solve (dispatch or investment) assumes, by default:**
44
44
 
45
- - **Storage state, unit commitment (online status) and reserves are tied** across the forecast branches over the solve's committed periods — every branch must take the same storage and start-up decisions while they still share information, so these decisions are genuinely non-anticipative. In a **single** solve whose committed periods span the whole horizon this ties them over the whole horizon (so only the flows differ between branches); in a **rolling** solve the tie covers only each roll's committed (jump) slice, and the branches operate freely in the forecast horizon beyond the reveal.
45
+ - **Storage state, unit commitment (online status) and reserves are tied** across the forecast branches over the solve's committed periods — every branch must take the same storage and start-up decisions while they still share information, so these decisions are genuinely non-anticipative. In a **single** solve whose committed periods span the whole horizon this ties them over the whole horizon (so only the flows differ between branches); in a **rolling** solve the tie covers only each roll's committed (jump) slice, and the branches operate freely in the forecast horizon beyond the reveal. A realization dispatch (below) inherits the tied units online of the binary units, but not those of the linear units (it decides them again) and not the tied reserve: it allocates reserve again with the realized data.
46
46
  - **Energy flows are always free** — each forecast dispatches its flows independently.
47
47
  - **Continuity is ordinary temporal carry-in.** Only the model's very first timestep starts from the given history / initial state; every later timestep continues from the previous one. At a branching point each child branch continues from its parent branch's last step, so sibling branches start from the same state simply because they share a parent.
48
48
 
@@ -90,12 +90,12 @@ Notes for multi-period stochastic solves:
90
90
  - In a single solve whose committed periods span the whole horizon, the non-anticipativity constraints cover the whole horizon: the shared decision types (storage usage, online status, reserve) stay tied across the forecast branches through the later periods, and post-branching divergence shows up only in the flow variables. Use a rolling solve when the branches should be free to commit differently after the information is revealed — each roll then commits only its jump slice and the non-anticipativity window ends at the reveal.
91
91
  - To free the operational branches within a *single* solve (without moving to a rolling solve), set the `solve` array parameter `shared_operation_periods`. Left unset (the default) it keeps the behaviour above — the operational non-anticipativity window equals the realized-dispatch timesteps (plus any `fix_storage` timesteps), so operations stay tied across the whole committed horizon. Set it to an **empty array** to free operations from the first timestep: the shared decision types then branch freely per forecast while the investment plan is still a single shared decision (`stochastic_invest_method = none`) — this is the classic two-stage capacity-expansion structure (one here-and-now investment, wait-and-see operations). Set it to a **list of periods** to tie operations only over those periods (e.g. a mid-horizon reveal: tie the pre-reveal periods, free the rest); the listed periods' timesteps are intersected with the solve's active timeline, and a curated list *replaces* (does not add to) the default realized-dispatch window. The dispatch output window is unaffected — `realized_periods` still governs which periods are reported.
92
92
  - Give the `realized: yes` row only where the solve (or, in a rolling solve, each roll) fans out. The designated branch is then the realized branch of every later period of the solve or roll: from the fan's period onwards the realization dispatch reads that branch's series given at the fan's `analysis_time`, at each period's own time steps, in the same way as the forecasts (next notes); the periods before the reveal read the series given at the solve's start (see "Single solve stochastics" above). To give the realization different data in a later period, change that branch's series; a second `realized: yes` row is not needed. A `realized: yes` row at a later period, where no solve or roll fans out, is an error in a single or a rolling solve, and so are `realized: yes` rows that name different branches at the fan points of one solve's rolls.
93
- - A solve fans out once, at its first reveal. Forecast branches declared in `stochastic_branches` at a later period of the same solve are ignored, with one warning per run listing them (solve, period, analysis time and branches; for the rolls of a rolling solve, see "Rolling horizon stochastics"): the branches of the first fan continue through every later period and read the series given at the fan's `analysis_time` there. To branch again later, use a separate solve (or the rolls of a rolling solve).
93
+ - A solve fans out once, at its first reveal. Forecast branches declared in `stochastic_branches` at a later period of the same solve are ignored, with one warning per run naming them (solve, period and analysis time; the debug log gives the branches; for the rolls of a rolling solve, see "Rolling horizon stochastics"): the branches of the first fan continue through every later period and read the series given at the fan's `analysis_time` there. To branch again later, use a separate solve (or the rolls of a rolling solve).
94
94
  - The branching period's label has no dispatch, so it reads no stochastic-time value; its forecast copies read their own branch's value, and the realization dispatch reads the designated branch's.
95
95
  - Each forecast copy of a later period reads its branch's series given at the fan's `analysis_time`, never a series given later (from the fan's period onwards, the realization dispatch and the entities outside every `include_stochastics` group read the realized branch the same way; before the reveal they read the realized branch's series given at the solve's start). Give one forecast per branch at the fan's `analysis_time`, covering the whole horizon. The rolls of a rolling solve follow the same rule (see "Rolling horizon stochastics").
96
96
  - The realization dispatch of a single solve dispatches only the periods from the first to the last period the solve realizes (`realized_periods`), not its look-ahead: dispatching a look-ahead period with the realized data would decide the realized periods' operation (for example the storage left at their end) knowing later actuals. The storage at the end of the last realized period then follows the storage node's own end rules (`storage_solve_horizon_method`, `storage_state_reference_price`, ...), as at the end of each roll's jump in a rolling solve, and the next solve starts from it. A period between two realized periods that is not realized (for example 2035 in a solve over 2030, 2035 and 2040 that realizes 2030 and 2040 to report only those) is dispatched too, so storage runs through it, but it is not reported. A realization solve you configure yourself keeps the periods you give it; when it also holds a period outside the stochastic solve's first to last realized period, a warning says that it dispatches that period with the realized data. With `dispatch_realization_method = separate_dispatch`, a solve without `realized_periods` (for example an invest-only solve) gets no realization dispatch.
97
97
  - A single solve that realizes several periods, with its fan opening in a later one of them (a mid-horizon reveal), has one realization dispatch over all of them: the earlier periods are dispatched knowing the realized data of the later committed period, as within one roll's jump. To keep them apart, put the earlier periods in a solve of their own.
98
- - When a solve commits time steps inside a forecasts-only fan and a later solve (e.g. the next roll) continues from them, the units online and the reserves on the tied steps are the same in every forecast: the next solve continues from them (the first forecast branch in sorted order). Storage state, ramp-limited flows, the cumulative commodity ladder, the CO2 total cap and recourse investment are decided per forecast there, so such a run stops before the LP with an error naming the solve and these families: designate a `realized: yes` branch (FlexTool then adds the realization dispatch), configure a realization solve right after it, or end the committed window before the reveal.
98
+ - When a solve commits time steps inside a forecasts-only fan and a later solve (e.g. the next roll) continues from them, the units online and the reserves on the tied steps are the same in every forecast, so these steps have one result for them (the first forecast branch in sorted order), and the next solve continues from the units online. Storage state, ramp-limited flows, the cumulative commodity ladder, the CO2 total cap and recourse investment are decided per forecast there, so such a run stops before the LP with an error naming the solve and these families: designate a `realized: yes` branch (FlexTool then adds the realization dispatch), configure a realization solve right after it (a solve with `contains_solves` cannot have one), or end the committed window before the reveal.
99
99
 
100
100
  ### Investing year by year under uncertainty (fan → realize → next year)
101
101
 
@@ -122,11 +122,11 @@ For the *solve* parameter `stochastic_branches` this means an `analysis_time` at
122
122
 
123
123
  A roll that does not fan out at its start (a fan that opens in its look-ahead, even several periods after the roll's start, or a jump that does not match the forecast times, so that a roll starts inside a period) reads, in every period before its fan, the realized branch's forecast given at its own start, as a single solve does. Such a forecast must exist and cover all the steps before the fan; otherwise the run stops with a configuration error naming the roll (a forecast given earlier is not used instead, nor one given later). A forecasts-only fan has no series for those steps, so stochastic data there is an error as in a single solve. Give a forecast at each roll start, or set `rolling_solve_jump` so that the rolls start at the forecast times.
124
124
 
125
- Each roll fans out at the first reveal in its 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 and the rolls that reach them. A `realized: yes` row there is an error naming the roll. 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`.
125
+ Each roll fans out at the first reveal in its 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. 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`.
126
126
 
127
127
  **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 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 dispatch of a rolling solve reads the designated branch the same way, over each roll's jump only. 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").
128
128
 
129
- Each roll fans at its first step, so its committed jump lies inside the fan. In this example branch *realized* is designated `realized: yes` at every roll start: FlexTool runs a realization dispatch after each stochastic roll over that roll's jump, with the designated branch's data, and the next roll continues from the realization dispatch's end state (storage, units online, ramps). 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:
129
+ Each roll fans at its first step, so its committed jump lies inside the fan. In this example branch *realized* is designated `realized: yes` at every roll start: FlexTool runs a realization dispatch after each stochastic roll over that roll's jump, with the designated branch's data, and the next roll continues from the realization dispatch's end state (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 dispatch 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).) 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:
130
130
 
131
131
  - `within_solve` (default): no second solve unless a branch is designated `realized: yes`, which adds the realization dispatch as described above (with `stochastic_invest_method = none`; under `recourse` a warning says that no realization dispatch is added).
132
132
  - `separate_dispatch`: always splits realization into a dedicated downstream dispatch pass (committed investments/decisions fixed) as a separate realized-dispatch solve. It dispatches the branch designated `realized: yes`; without such a branch the run stops with an error naming the solve. This is the 2-stage seed of a future multi-stage sequential-market structure.
@@ -51,7 +51,7 @@ Having multiple storage methods can create infeasible problems. This is why some
51
51
 
52
52
  Battery also needs charging and discharging capabilities. These could be presented either with a `connection` or by having a charging `unit` and a discharging `unit`. In here, we are using a `connection` called *battery_inverter*. Please note that the `efficiency` parameter of the `connection` applies to both directions, so the round-trip `efficiency` will be `efficiency` squared.
53
53
 
54
- The `transfer_method` can be used by all types of connections, but in this case it is best to choose *regular*, which tries to avoid simultaneous charging and discharing, but can still do it when the model needs to dissipate energy. *exact* method would prevent that, but it would require integer variables and make the storage computationally much more expensive. Model leakage will be reported in the results (forthcoming).
54
+ The `transfer_method` can be used by all types of connections, but in this case it is best to choose *regular*, which tries to avoid simultaneous charging and discharing, but can still do it when the model needs to dissipate energy. *exact* method would prevent that, but it would require integer variables and make the storage computationally much more expensive.
55
55
 
56
56
  The `connection` needs to be added to an alternative in the `Entity Alternative` sheet.
57
57
 
@@ -184,7 +184,7 @@ Minimum load requires that the unit must have an online variable in addition to
184
184
 
185
185
  The options for the `startup_method` are *no_startup*, *linear* and *binary*. *binary* would require an integer variable so *linear* is chosen. However, this means that the unit can startup partially. The minimum online will still apply, but it is the minimum of the online capacity in any given moment (*sum of output flows* >= *min_load* x *capacity* x *online*), where 0 <= *online* <= 1. The minimum load applies once per unit, to the sum of its outputs; a unit with several inputs can run on any mix of them.
186
186
 
187
- The units online in a time step are linked to the units online in the previous step along the timeline, in the same way as ramp limits: also from the last step of a period into a period whose time steps continue it on the same timeline, and into the first step of a forecast branch. A step without a previous step — the first step of a solve, the first step of a period that does not continue the previous one (e.g. a period that reuses the same timeset), the first step after a gap in the timeline and the first step of a representative period — is linked to the last step of its own stretch of the timeline (the steps up to the next gap or the end of the period): the commitment cycles within that stretch and never across a gap, a representative-period start or into another period. So a stretch that ends offline starts up (and pays `startup_cost`) at its first step when it needs the unit there. Only the start of a stretch wraps: the step before a gap has no next step, so no pre-shutdown output limit applies there. In a rolling solve the units online that the previous roll realized are carried to the steps of the next roll that continue its last realized step on the timeline (also when the next solve has longer time steps: it continues the finer step that ends where its previous step ends); a roll that starts after a gap, at a new year that reuses the timeset or at a representative-period start takes no carry and cycles within its stretch.
187
+ The units online in a time step are linked to the units online in the previous step along the timeline, in the same way as ramp limits: also from the last step of a period into a period whose time steps continue it on the same timeline, and into the first step of a forecast branch. The first step of a solve, of each forecast branch that starts there and of a period that does not continue the previous one (e.g. a period that reuses the same timeset) has no previous step: the model chooses the units online there freely, with no start-up or shut-down in that step, so it pays no `startup_cost` and no start-up fuel there (the units online still use their no-load fuel and emit its CO2). The minimum up and down times count from the first start-up or shut-down after that step. There is no condition at the end of the horizon either. The samples of a timeline are treated as recurring operation instead: the first step after a gap in the timeline and the first step of a representative period (also when it is the first step of the solve, and the first timeblock of a period with gaps) are linked to the last step of their own stretch of the timeline (the steps up to the next gap or the end of the period). There the commitment cycles within the stretch, never across a gap, a representative-period start or into another period: a stretch that ends offline starts up (and pays `startup_cost`) at its first step when it needs the unit there, and one that ends online can shut down there. A period counts as a sample only when it has two or more timeblocks with a gap between them: a period with a single timeblock is continuous, so its first step starts free and nothing ties its end, even when that one block stands for a whole year (e.g. one representative week), while two such blocks both cycle. Only the start of a stretch wraps: the step before a gap has no next step, so no pre-shutdown output limit applies there. In a rolling solve the units online that the previous roll realized are carried to the steps of the next roll that continue its last realized step on the timeline (also when the next solve has longer time steps: it continues the finer step that ends where its previous step ends); a roll that starts at a new year that reuses the timeset takes no carry and starts free, also when the new year starts inside the roll. In a rolling two-stage solve the stochastic roll and its realization solve therefore start the same way at every roll. A realization solve that starts at a later period than its stochastic solve (a single-solve realization that dispatches only the realized periods, or a declared realization solve that starts later) starts free at that period, also where the stochastic solve continued it from the period before: a pinned binary commitment stays feasible, but a start-up the stochastic solve made at that step is not charged in the realization.
188
188
 
189
189
  The online variable also allows to change the efficiency of the plant between the minimum and full loads. A unit with a part-load efficiency will obey the following equation:
190
190
 
@@ -55,4 +55,4 @@ The theory slides below give some background how FlexTool is formulated. There a
55
55
 
56
56
  # Reporting issues and getting help
57
57
 
58
- Bug reports and feature requests go to the [GitHub issue tracker](https://github.com/irena-flextool/flextool/issues). For modelling questions or design discussion, join the [monthly user support telco](#monthly-user-support-telcos) — Anni Niemi (anni.niemi@vtt.fi) can add you to the calendar invite.
58
+ Bug reports and feature requests go to the [GitHub issue tracker](https://github.com/irena-flextool/flextool/issues). For modelling questions, usage help and design discussion, use [GitHub Discussions](https://github.com/irena-flextool/flextool/discussions) or join the [monthly user support telco](#monthly-user-support-telcos) — Anni Niemi (anni.niemi@vtt.fi) can add you to the calendar invite.
@@ -4,7 +4,10 @@ Connections can transfer energy between two nodes. Parameters for the connection
4
4
 
5
5
  ## Defining how the connection functions
6
6
 
7
- - `transfer_method` to define the way the connection transfers energy between the nodes
7
+ - `transfer_method` to define the way the connection transfers energy between the nodes: *regular* (default), *exact*, *variable_cost_only*, *no_losses_no_variable_cost* or *unidirectional* (see [the basics](../how_to/basics.md)). A *no_losses_no_variable_cost* connection (and a line of a `dc_power_flow_with_angles` group, which uses it internally) carries both directions in one signed flow, so it cannot have different values in the two directions:
8
+ - it cannot model losses (a loss one way would be a gain the other way), so its `efficiency` is ignored (treated as 1, with a warning: W-0591) when the two nodes have the same `unit_of_measure` or either has none, and always on a line of a `dc_power_flow_with_angles` group. For losses, use *regular* or *exact*.
9
+ - between nodes with different `unit_of_measure` values, the `efficiency` is a conversion between the units (e.g. MWh to t), the same in both directions: the flow f arriving at the second node takes f / `efficiency` from the first, and in the reverse direction the first node gets f / `efficiency` for the f taken from the second. FlexTool warns about it (W-0589).
10
+ - its `other_operational_cost` is ignored (it would be a cost one way and a revenue the other), with a warning (W-0590). For a variable cost, use *variable_cost_only*, *regular* or *exact*.
8
11
  - `startup_method` gives the connection online capacity. *linear*: the online capacity is anything between 0 and the built capacity; *binary*: whole units of the connection (of `virtual_unitsize`, else the whole connection), computationally more demanding. The connection's flow in each direction is limited by its online capacity × availability, its reserve by its online capacity, and `startup_cost` is paid per MW brought online. Connections have no minimum load or minimum up/down times. Not available for connections in a `dc_power_flow_with_angles` group, other than `is_DC` connections (an error: switching a DC power-flow line off would need line-switching constraints).
9
12
  - `invest_method` to define investment and retirement limits: either *not_allowed* or then a combination of
10
13
  - *invest* and/or *retire*
@@ -16,7 +19,7 @@ Connections can transfer energy between two nodes. Parameters for the connection
16
19
  ## Main data items for connections
17
20
 
18
21
  - `existing` - [MW or count] Existing capacity or number of units. If `virtual_unitsize` is given, then `existing` is the number of units (capacity = `existing` × `virtual_unitsize`). Otherwise `existing` is the existing capacity of a single unit (typically in MW). Constant or period.
19
- - `efficiency` - [factor, typically between 0-1] Efficiency of a connection. Constant, period, time or period+time.
22
+ - `efficiency` - [factor, typically between 0-1] Efficiency of a connection. Constant, period, time or period+time. On a *no_losses_no_variable_cost* connection it is ignored, or a unit conversion that applies in both directions between nodes in different units (see `transfer_method`).
20
23
  - `delay` - [hours] Not yet applied to connections (planned). A connection `delay` is ignored: the connection is modelled exactly as if no delay were set (the flow arrives in the same time step) and the model prints a warning naming the connection. To model a delayed flow between two nodes, use a unit with `delay` instead.
21
24
  - `startup_cost` - [CUR/MW] Cost of starting up one MW of capacity (used when `startup_method` activates online variables on the connection). Constant or period.
22
25
  - `reactance` - [p.u.] Per-unit reactance of the transmission line. Used for DC power flow when the enclosing `group__node` has `transfer_method = dc_power_flow_with_angles`.
@@ -26,7 +29,7 @@ Connections can transfer energy between two nodes. Parameters for the connection
26
29
  - `constraint_retired_capacity_coeff` - A map of coefficients (Index: constraint name, value: coefficient). Puts the capacity retired in each period on the left side of the user constraint. Coefficient per MW. See [User constraints](user_constraints.md).
27
30
  - `constraint_in_construction_capacity_coeff` - A map of coefficients (Index: constraint name, value: coefficient). Puts the capacity in construction in each period on the left side of the user constraint. Capacity is in construction from the period of the investment decision until it comes online. It is zero without a construction lead time. Coefficient per MW. See [User constraints](user_constraints.md).
28
31
  - `constraint_online_coeff` - [unit of the constraint per unit online] A map of coefficients (Index: constraint name, value: coefficient). Puts the number of units of the connection online in each time step (both directions together) on the left side of the user constraint. One unit is `virtual_unitsize`; without it, the largest `existing` capacity, else 1000 MW — set `virtual_unitsize` on a connection that is invested in. Needs `startup_method` *linear* or *binary*; a coefficient on a connection without it is an error. With *linear* startup the number is continuous. For MW online, use the unit size as the coefficient. See [User constraints](user_constraints.md).
29
- - `other_operational_cost` - [CUR/MWh] Other operational variable cost for trasferring over the connection. Constant, period, time or period+time.
32
+ - `other_operational_cost` - [CUR/MWh] Other operational variable cost for trasferring over the connection. Constant, period, time or period+time. Ignored on a *no_losses_no_variable_cost* connection (see `transfer_method`).
30
33
  - `fixed_cost` - [CUR/kW/a] Annual fixed cost. New capacity pays it only while it operates. Constant or period.
31
34
  - `invest_cost` - [CUR/kW] Overnight investment cost of new capacity. It is annualized over `payback_time` with `discount_rate`; with `lifetime_method` *reinvest_choice* or *no_reinvestment* that annuity is spread evenly over `lifetime_technical` and paid for each year the capacity is in service (with *reinvest_automatic*: each replacement at the `invest_cost` of the period it comes online, for its years in service). Construction time costs with their interest must be included here. Constant or period: the value of the period when the capacity is built (comes online) is used.
32
35
  - `discount_rate` - [e.g. 0.05 equals 5%] Discount rate for investments (WACC). Reflects the financing cost and risk for this technology. In the same terms as the cost inputs: a real rate for inputs in real prices, a nominal rate for nominal inputs. Not the model's `social_discount_rate`, which weighs costs over time. Constant or period.
@@ -54,4 +57,4 @@ These are the same as for units, see [here](units.md#investment-parameters-for-c
54
57
 
55
58
  On the membership entity between a `connection` and one of its endpoint `node`s:
56
59
 
57
- - `constraint_flow_coeff` - A map of coefficients (Index: constraint name, value: coefficient) placing this connection-to-node flow variable on the left side of a user-defined `constraint`. Applied per timestep. See [User constraints](user_constraints.md).
60
+ - `constraint_flow_coeff` - A map of coefficients (Index: constraint name, value: coefficient) placing this connection-to-node flow variable on the left side of a user-defined `constraint`. Applied per timestep. The flow counts in both directions (coefficient × (forward + reverse)), for every `transfer_method`. See [User constraints](user_constraints.md#the-coefficient-parameters).
@@ -115,7 +115,7 @@ Timesets pick one or more sections from the `timeline` to form a `timeset`. Each
115
115
 
116
116
  - `timeset`: timesets are sets of time with a start (from timeline) and a duration (number of time steps)
117
117
 
118
- - *timeset_duration* a map with index *timestep_name* that starts the timeset and value that defines the duration of the timeset (how many timesteps). A block must start at a time step of the timeset's timeline; otherwise the run stops with an error that names the timeset and the block. A block length that is not a whole number gets a warning (the whole part is used). A block longer than the rest of the timeline is cut at the end of the timeline, with a warning that says how many time steps are not used (for a timeset with `representative_period_weights` this is an error: a representative period cannot be cut). Only the timesets that the solves of the model use are checked. The stochastic forecast branches of a period use the period's timeset, its representative periods included (every branch has the same selection and weights).
118
+ - *timeset_duration* a map with index *timestep_name* that starts the timeset and value that defines the duration of the timeset (how many timesteps). A block must start at a time step of the timeset's timeline; otherwise the run stops with an error that names the timeset and the block. A block length that is not a whole number gets a warning (the whole part is used). A block longer than the rest of the timeline is cut at the end of the timeline, with a warning that says how many time steps are not used (for a timeset with `representative_period_weights` this is an error: a representative period cannot be cut). Only the timesets that the solves of the model use are checked. Blocks that touch (one starts right after the previous one ends) are treated as one block by the *bind_intraperiod_blocks* storage method; leave a gap of at least one time step between blocks that should stay apart. The stochastic forecast branches of a period use the period's timeset, its representative periods included (every branch has the same selection and weights).
119
119
  - *timeline* The name of the timeline that the timeset uses. (String)
120
120
  - *timeset_weights*: Optional per-timestep weight map (index: timestep name, `index_name` *time* or left empty; value: float) applied to cost and slack terms in the objective. Use for non-RP models where timesteps represent unequal fractions of the year — e.g. a coarse OSeMOSYS-style timeslice structure where wet-season steps cover more year-hours than dry-season ones. Weights are normalized per period to sum to 1 and then scaled by the number of active timesteps, so uniform input reproduces weight = 1 per step (the default). Must not be combined with `representative_period_weights` on the same timeset — the runner errors out if both are set. The stochastic forecast branches of a period use the weights of the period's timeset. Any other shape (a scalar, a map indexed by *period*) is an error.
121
121
 
@@ -212,7 +212,7 @@ The parts in detail:
212
212
  *piecewise_linear* unit whose efficiency rises from the first point of its curve to the second, a
213
213
  `constraint_online_coeff` term in a user constraint of the solve, a reserve that the unit or connection holds,
214
214
  inertia (an `inertia_constant` at a node of a group with `has_inertia`), ramp limits (their start-up and
215
- shut-down allowance) and, in a realization solve, the units online it takes from its parent solve. A reserve or
215
+ shut-down allowance) and, in a realization solve, the units online of binary units that it takes from its parent solve. A reserve or
216
216
  an inertia limit that `reduce_system_detail_method` leaves out is no use. The ties that make the forecast branches
217
217
  of a stochastic solve have the same units online are no use either. For example, under `integers_min_limits` a
218
218
  unit with only a `min_load` loses its online variables, a unit with a start-up cost or a reserve keeps them; under
@@ -282,8 +282,8 @@ its parent's. A Benders decomposition can split connections whose reserves, onli
282
282
  the solve leaves out.
283
283
 
284
284
  **Realization and continuing solves.** A realization solve (the dispatch of a stochastic solve's realized branch)
285
- uses its parent solve's levels, whatever is set on it, since it takes the parent's units online and reserves. A
286
- warning names a different value set on a declared realization solve. A solve that continues the ramp of a solve
285
+ uses its parent solve's levels, whatever is set on it, so that its online variables and reserve rows match those
286
+ of the solve it realizes. A warning names a different value set on a declared realization solve. A solve that continues the ramp of a solve
287
287
  without online variables starts its commitment and ramps cold, with an info line.
288
288
 
289
289
  **Run log and run status.** A solve with a level other than `none` writes one info line to the run log at its
@@ -4,6 +4,8 @@ A `flowGroup` aggregates a set of *flows* — where each flow is a `(process, no
4
4
 
5
5
  ## Cumulative and instant flow limits
6
6
 
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
+
7
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.
8
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
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`.
@@ -74,7 +74,7 @@ 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.
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.
78
78
 
79
79
  ## CO2 costs and limits
80
80
 
@@ -92,7 +92,7 @@ The emissions that the CO2 price and the limits apply to are the fuel drawn from
92
92
  ## Decomposition (spatial Benders)
93
93
 
94
94
  - `decomposition_method` (on `group`) - Decomposition strategy to apply to this group. Currently supported: `none` (no decomposition; default) and `benders_regional` (the group becomes a spatial region when a solve sets `decomposition = benders` — the `_region` suffix emphasises that this is the *geographic* flavour, distinct from any future temporal variant). See [dev/decomposition.md](../dev/decomposition.md) for the algorithm, gap tolerances, and the membership classes the decomposer expects.
95
- - `decomposition` (on `solve`) - Whether *this solve* decomposes. `none` (default) solves monolithically; `benders` routes the solve through the spatial Benders coordinator (master trade flows + trade invest + per-region recourse, optimality cuts) over the `benders_regional` groups. Chosen per solve, so one chain can mix schemes. The optional knobs `benders_max_iter` (default `50`) and `benders_tolerance` (default `1e-3`) cap the cut loop and set the relative optimality-gap threshold.
95
+ - `decomposition` (on `solve`) - Whether *this solve* decomposes. `none` (default) solves monolithically; `benders` routes the solve through the spatial Benders coordinator (master trade flows + trade invest + per-region recourse, optimality cuts) over the `benders_regional` groups. Chosen per solve, so one chain can mix schemes. The optional knobs `benders_max_iter` (default `50`) and `benders_tolerance` (default `1e-3`) cap the cut loop and set the relative optimality-gap threshold. A Benders solve ends by solving the whole model once with its investments fixed, which writes its results; see [Results of a Benders solve](../results.md#results-of-a-benders-solve) (and `--benders-final-solve off` when the whole model does not fit in memory).
96
96
 
97
97
  ## Flex-temporal decomposition (per-group step duration)
98
98
 
@@ -122,7 +122,7 @@ The emissions that the CO2 price and the limits apply to are the fuel drawn from
122
122
 
123
123
  **Mixed rows.** A row that mixes units or connections on the coarse step with others on the solve's step is checked at every time step of the solve. It sees the coarse flows as constant through their step. A coarse DC line in a DC network with a line at the solve's step keeps the angle difference across it constant through the coarse step, while the angles stay per time step.
124
124
 
125
- **Exceptions.** Units and connections with a delay keep the solve's time step. In a Benders decomposition, flows that cross regions and every flow in the master keep the solve's step. In a stochastic solve, a unit or connection at a stochastic node, with online variables or providing reserves, keeps the solve's step when the forecasts are tied over only part of one of its coarse steps. In a realization solve, the same applies to one whose committed units online or reserve change within a coarse step or are pinned on only part of it.
125
+ **Exceptions.** Units and connections with a delay keep the solve's time step. In a Benders decomposition, flows that cross regions and every flow in the master keep the solve's step. In a stochastic solve, a unit or connection at a stochastic node, with online variables or providing reserves, keeps the solve's step when the forecasts are tied over only part of one of its coarse steps. In a realization solve, the same applies to one whose committed units online change within a coarse step or are pinned on only part of it.
126
126
 
127
127
  **Messages.** An info line lists the units and connections that use a coarse step, and those that keep the solve's step with the reason. A database upgraded from an earlier FlexTool version prints a notice naming the coarse units and connections whose results can differ from flows at the solve's step, and why.
128
128
 
@@ -84,7 +84,7 @@ Input data is set with the following parameters:
84
84
  - `fixed_cost` - [CUR/kWh/a] Annual fixed cost for storage. New storage capacity pays it only while it operates. Constant or period.
85
85
  - `penalty_up` - [CUR/MWh] Penalty cost for energy not served (decreasing consumption) in the node. The cost scales with both the magnitude (MW) and the duration (hours) of the violation. Default value is 10 000. Constant, period, time, period+time or stochastic time. The default applies to every node without a value of its own, and to the periods and timesteps that a map leaves out.
86
86
  - `penalty_down` - [CUR/MWh] Penalty cost for excess energy (increasing consumption) in the node. The cost scales with both the magnitude (MW) and the duration (hours) of the violation. Default value is 10 000. Constant, period, time, period+time or stochastic time. The default applies to every node without a value of its own, and to the periods and timesteps that a map leaves out.
87
- - A storage node keeps its balance slack (`penalty_up`, `penalty_down`) unless its `penalty_method` is *off*. When a unit or a connection links it to a node with `penalty_method` *off*, its slack can supply or absorb that node's energy and so bypass the hard balance at the storage node's penalty; a warning names such storage nodes and the nodes they are linked to, once per solve. Give the storage node `penalty_method` *off* too (or a high penalty) so that a shortfall shows where it arises.
87
+ - A storage node keeps its balance slack (`penalty_up`, `penalty_down`) unless its `penalty_method` is *off*. When a unit or a connection links it to a node with `penalty_method` *off*, its slack can supply or absorb that node's energy and so bypass the hard balance at the storage node's penalty; a warning names such storage nodes, once per solve (the debug log, `--debug`, gives the nodes they are linked to). Give the storage node `penalty_method` *off* too (or a high penalty) so that a shortfall shows where it arises.
88
88
  - `virtual_unitsize` - [MWh] Size of one unit. With it, `existing` is the number of units. Investments and retirements are continuous; their limits are in MWh. No value: the existing capacity, or 1000 MWh without it.
89
89
  - `self_discharge_loss` - [-] e.g. 0.01 means the content shrinks by the factor 1/1.01 every hour. Loss of stored energy over time: the content decays continuously at ln(1 + loss) per hour, for every modelled time step whatever its length; energy charged or discharged within a step is treated as spread evenly over the step. Constant, period, time or period+time (a time-varying loss decays each step at its own rate; a coarse step or timeset block decays by the sum of its hours' losses; this is exact for stored energy, while energy charged within such a step is weighted as if the loss were constant over the step, which overstates what is kept when the loss changes a lot inside the step).
90
90
  - `availability` - [e.g. 0.9 means 90%] Fraction of capacity available for storage. Constant, period, time, period+time or stochastic time.
@@ -106,7 +106,7 @@ Since FlexTool allows different temporal structures (multi-periods, rolling opti
106
106
 
107
107
  There are three methods associated with storage start and end values: `storage_binding_method`, `storage_start_end_method` and `storage_solve_horizon_method`.
108
108
 
109
- - The most simple one of these is the `storage_start_end_method` and it overrides the other methods, since it forces the start and/or the end state of the storage to a predefined value based on the proportional parameters `storage_state_start` and `storage_state_end` (proportional means that the parameter needs to be set between 0-1 and will be scaled by the storage capacity in the model). The default is *fix_nothing* (the start and the end are not fixed). *fix_start* needs `storage_state_start` on the node and *fix_end* needs `storage_state_end`; *fix_start_end* needs both. A node that fixes a start or an end without its value stops the run with an error naming every such node, the method and the missing parameter (set the value, or a method that does not fix that end). In older databases the default was *fix_start*, and a fix without its value was not applied, or pinned the node at 0 when another node had a value; the upgrade rewrites such stored methods to what they did (*fix_nothing*, or a value of 0) where every scenario of the database used them the same way, and lists them (results unchanged). A node that used the old default with its own `storage_state_start` gets *fix_start* written in that value's alternative (results unchanged). Where scenarios differ, the method is left and the error names the scenarios. Storage nodes that relied on the old default now start free; in a model where another node had a `storage_state_start` they started at 0 (or at their own value) before, and runs of an upgraded database name them (see "Behaviour-change notices" below). These two parameters affect only the first and the last timesteps of the entire model (even when the model has more than one solve). A later solve or roll starts from the storage state realised before it: the end of the realised part of the previous roll or solve at the same nesting level or below (so a storage or investment solve continues from the dispatch solved below it). In nested solves the start applies to the first step of each nested level where the level first appears. A node whose end an upper-level solve fixes (`storage_nested_fix_method`) and that chains forward there (*bind_forward_only*, or *bind_within_solve* in a rolling solve under *fix_quantity* or *fix_usage*; also *bind_within_period*, and *bind_within_timeblock*, which a rolling solve uses as *bind_within_period*, when the first roll's horizon cuts the period, whose wrap would otherwise land on the upper target) starts instead from the level the upper solve planned for the same moment, unless *fix_start* applies (the lower level starts with the model): the lower solve then works with the energy of the upper plan and cannot start fuller than it. A cyclic binding method (*bind_within_timeblock*, *bind_within_period*, a looping *bind_intraperiod_blocks*, and *bind_within_solve* in a solve that is not rolling) cycles within each later solve without the start value; in a rolling solve *bind_within_solve* continues from roll to roll, and the per-period methods continue a period that a roll boundary cuts (see below). In a solve with representative periods the start and the end value of a *_blended_weights* node set the stored level where its base-period chain starts and ends (the chronological level that the representative blocks add up to, not a state inside the first or the last block, whose offset is free); a later solve (or roll) with representative periods starts the base-period chain of a *bind_forward_only_blended_weights* node from the level realised before it, and a solve with representative periods hands on the level of its chain at the end of its realised period (not a state inside a representative block). The end value (*fix_end*, *fix_start_end*) applies to the last timestep of the entire model, in every solve whose horizon contains that timestep: e.g. both an investment solve and the last dispatch solve (or roll) when both reach the end of the model, the solve of each nested level that contains it, and a roll whose look-ahead reaches it; a solve whose horizon ends earlier is not pinned. In a stochastic solve each terminal branch ends at it. Where an upper-level solve fixes the storage at that step with `storage_nested_fix_method` *fix_quantity* or *fix_usage*, the upper solve's value takes precedence; *fix_price* only values that end, so the end value still applies. A node that chains forward (*bind_forward_only*, *bind_forward_only_blended_weights*) and whose start the solve decides ends at least at that start (the matching end), so that the solve cannot use energy that was never produced: with a free start (*fix_nothing*, *fix_end*) the end is at least the level the chain started from (with *fix_end* or a reference value this bounds the start by the end); with *fix_start* on storage the solve can invest in during the period it starts in, the end holds at least the `storage_state_start` share of the capacity built in that period. Both are inequalities: a start of 0, or no investment, always meets them. Storage capacity that comes into service later in the model (built, or a larger `existing` in a later period) holds no energy of its own: the level continues from the previous step (or the carry, in MWh) and only `fix_start` at the start of the model fills a share of the capacity. This applies in a solve that holds both the start of the model and its last step (a single solve, an investment solve over the whole horizon), in every solve with representative periods (whose chain always starts in the solve) and, for a free start (*fix_nothing*), in a rolling solve without representative periods: its first roll ends its horizon at least at the level it starts from, and the rolls reaching the end of the model end at least at that level; likewise a later solve of a sequence (also a later rolling solve, or a later instance of a nested rolling solve) that continues the chain from a carry and reaches the end of the model ends it at least at the level the model started it from at that nesting level (a carried start is not a decision of that solve, so the end is not held to it); otherwise a solve without representative periods whose start is carried, or that does not reach the end of the model, does not apply it. A free start is therefore matched over a sequence, while an explicit start (*fix_start*, or the reference start of *use_reference_value*) on storage that an investment solve not reaching the end of the model can build or extend is not: a warning names such nodes. Capacity the solve can extend (`life_extension_cost`) in the start period counts as capacity it can invest in. *fix_start* on capacity the solve cannot change, with a free end, is an explicit start energy that the run may use: a valid model of an initial stock (an endowment), named with its total size in a warning (one line per solve). *fix_start_end* with `storage_state_end` below `storage_state_start` is a planned drawdown of the existing storage. Storage the solve can invest in during the start period must still return its start energy (the matching end stays), which caps that investment at `storage_state_end` × existing / (`storage_state_start` − `storage_state_end`). The same holds for *use_reference_value* whose reference value at the end lies below the start (see `storage_solve_horizon_method`). `storage_start_end_method` is meant for simple models: in a model with several solves or rolls `storage_state_reference_value` with `storage_solve_horizon_method` *use_reference_value* is usually the better choice, since it guides the storage at the end of every solve horizon (from a time series when one is available), not only at the end of the model.
109
+ - The most simple one of these is the `storage_start_end_method` and it overrides the other methods, since it forces the start and/or the end state of the storage to a predefined value based on the proportional parameters `storage_state_start` and `storage_state_end` (proportional means that the parameter needs to be set between 0-1 and will be scaled by the storage capacity in the model). The default is *fix_nothing* (the start and the end are not fixed). *fix_start* needs `storage_state_start` on the node and *fix_end* needs `storage_state_end`; *fix_start_end* needs both. A node that fixes a start or an end without its value stops the run with an error naming every such node, the method and the missing parameter (set the value, or a method that does not fix that end). In older databases the default was *fix_start*, and a fix without its value was not applied, or pinned the node at 0 when another node had a value; the upgrade rewrites such stored methods to what they did (*fix_nothing*, or a value of 0) where every scenario of the database used them the same way, and lists them (results unchanged). A node that used the old default with its own `storage_state_start` gets *fix_start* written in that value's alternative (results unchanged). Where scenarios differ, the method is left and the error names the scenarios. Storage nodes that relied on the old default now start free; in a model where another node had a `storage_state_start` they started at 0 (or at their own value) before, and runs of an upgraded database name them (see "Behaviour-change notices" below). These two parameters affect only the first and the last timesteps of the entire model (even when the model has more than one solve). A later solve or roll starts from the storage state realised before it: the end of the realised part of the previous roll or solve at the same nesting level or below (so a storage or investment solve continues from the dispatch solved below it). In nested solves the start applies to the first step of each nested level where the level first appears. A node whose end an upper-level solve fixes (`storage_nested_fix_method`) and that chains forward there (*bind_forward_only*, or *bind_within_solve* in a rolling solve under *fix_quantity* or *fix_usage*; also *bind_within_period*, and *bind_within_timeblock*, which a rolling solve uses as *bind_within_period*, when the first roll's horizon cuts the period, whose wrap would otherwise land on the upper target) starts instead from the level the upper solve planned for the same moment, unless *fix_start* applies (the lower level starts with the model): the lower solve then works with the energy of the upper plan and cannot start fuller than it. A cyclic binding method (*bind_within_timeblock*, *bind_within_period*, a looping *bind_intraperiod_blocks*, and *bind_within_solve* in a solve that is not rolling) cycles within each later solve without the start value; in a rolling solve *bind_within_solve* continues from roll to roll, and the per-period methods continue a period that a roll boundary cuts (see below). In a solve with representative periods the start and the end value of a *_blended_weights* node set the stored level where its base-period chain starts and ends (the chronological level that the representative blocks add up to, not a state inside the first or the last block, whose offset is free); a later solve (or roll) with representative periods starts the base-period chain of a *bind_forward_only_blended_weights* node from the level realised before it, and a solve with representative periods hands on the level of its chain at the end of its realised period (not a state inside a representative block). The end value (*fix_end*, *fix_start_end*) applies to the last timestep of the entire model, in every solve whose horizon contains that timestep: e.g. both an investment solve and the last dispatch solve (or roll) when both reach the end of the model, the solve of each nested level that contains it, and a roll whose look-ahead reaches it; a solve whose horizon ends earlier is not pinned. In a stochastic solve each terminal branch ends at it. Where an upper-level solve fixes the storage at that step with `storage_nested_fix_method` *fix_quantity* or *fix_usage*, the upper solve's value takes precedence; *fix_price* only values that end, so the end value still applies. A node that chains forward (*bind_forward_only*, *bind_forward_only_blended_weights*) and whose start the solve decides ends at least at that start (the matching end), so that the solve cannot use energy that was never produced: with a free start (*fix_nothing*, *fix_end*) the end is at least the level the chain started from (with *fix_end* or a reference value this bounds the start by the end); with *fix_start* on storage the solve can invest in during the period it starts in, the end holds at least the `storage_state_start` share of the capacity built in that period. Both are inequalities: a start of 0, or no investment, always meets them. Storage capacity that comes into service later in the model (built, or a larger `existing` in a later period) holds no energy of its own: the level continues from the previous step (or the carry, in MWh) and only `fix_start` at the start of the model fills a share of the capacity. This applies in a solve that holds both the start of the model and its last step (a single solve, an investment solve over the whole horizon), in every solve with representative periods (whose chain always starts in the solve) and, for a free start (*fix_nothing*), in a rolling solve without representative periods: its first roll ends its horizon at least at the level it starts from, and the rolls reaching the end of the model end at least at that level; likewise a later solve of a sequence (also a later rolling solve, or a later instance of a nested rolling solve) that continues the chain from a carry and reaches the end of the model ends it at least at the level the model started it from at that nesting level (a carried start is not a decision of that solve, so the end is not held to it); otherwise a solve without representative periods whose start is carried, or that does not reach the end of the model, does not apply it. A free start is therefore matched over a sequence, while an explicit start (*fix_start*, or the reference start of *use_reference_value*) on storage that an investment solve not reaching the end of the model can build or extend is not: a warning names such nodes. Capacity the solve can extend (`life_extension_cost`) in the start period counts as capacity it can invest in. *fix_start* on capacity the solve cannot change, with a free end, is an explicit start energy that the run may use: a valid model of an initial stock (an endowment), named in a warning (one line per solve; the debug log, `--debug`, gives its size). *fix_start_end* with `storage_state_end` below `storage_state_start` is a planned drawdown of the existing storage. Storage the solve can invest in during the start period must still return its start energy (the matching end stays), which caps that investment at `storage_state_end` × existing / (`storage_state_start` − `storage_state_end`). The same holds for *use_reference_value* whose reference value at the end lies below the start (see `storage_solve_horizon_method`). `storage_start_end_method` is meant for simple models: in a model with several solves or rolls `storage_state_reference_value` with `storage_solve_horizon_method` *use_reference_value* is usually the better choice, since it guides the storage at the end of every solve horizon (from a time series when one is available), not only at the end of the model.
110
110
  - `storage_binding_method` chooses the cycle-closure scope for the storage state over discontinuities in the model timeline. There are seven cycle-scope methods plus one orthogonal aggregation method. See the parameter description in `flextool/schemas/spinedb_schema.json` for the canonical enumeration; in short:
111
111
 
112
112
  - *bind_within_timeblock* — state cycles within each timeblock (block start = block end + flows). With `fix_start` the start state is pinned at the last step of the first timeblock, the state the first step starts from. Timeblocks are meant for solves that are not rolling, e.g. investment or storage solves on sampled weeks or representative periods. A rolling solve runs over a continuous timeline, so each of its periods is one timeblock: it uses *bind_within_timeblock* as *bind_within_period* (see below) and prints one line naming how many nodes and the first. A solve that is not rolling (e.g. an investment solve above the rolling dispatch) keeps *bind_within_timeblock*.
@@ -123,7 +123,7 @@ There are three methods associated with storage start and end values: `storage_b
123
123
 
124
124
  - *bind_within_solve_blended_weights*, *bind_within_period_blended_weights*, *bind_forward_only_blended_weights* — representative-period variants of the three above. They apply RP weighting on top of the same cycle scope. With several periods each period uses its own representative periods and base periods (also when periods share a timeset); *bind_within_solve_blended_weights* and *bind_forward_only_blended_weights* chain the periods in solve order like *bind_within_solve* / *bind_forward_only*. With a blended variant every period of the solve needs a timeset with `representative_period_weights`. In a stochastic solve each forecast branch period uses the representative periods of the period it branches from, and each branch is independent: its first period continues from the last base period of the trunk period (the shared period before the split), a later period from the previous period of the same branch. *bind_within_solve_blended_weights* closes once per path: every branch's last period ends at the level the trunk period starts from. *bind_within_period_blended_weights* closes every branch period on itself. When the forecasts open in the solve's first period, all of them start from the same level (*bind_within_solve_blended_weights* through its closure, *bind_forward_only_blended_weights* through an equal chain start); with `fix_start` each forecast's chain starts at the `storage_state_start` share of its own storage capacity, as with *bind_forward_only*. The level a *bind_forward_only_blended_weights* chain starts from is within the storage capacity, as every base-period level. Inside the non-anticipativity window of a node in an `include_stochastics` group the start levels of the representative blocks are the same in every forecast. A rolling solve (`solve_mode` *rolling_window*) on representative periods stops with a configuration error: rolling over representative periods is not supported (use a single solve on the representative periods, and roll a separate solve over a timeset without `representative_period_weights`).
125
125
 
126
- - *bind_intraperiod_blocks* — orthogonal aggregation method: state is held constant within each block and the energy balance of the node is summed over each block (every flow stays at the solve's time step); the blocks of a period form a loop, and the state of a block is its state at the end of the block. With `fix_start` the start state is pinned at the end of the first period's last block, the state the first block starts from. In a rolling solve (`solve_mode` *rolling_window*) the blocks of each roll also end at the end of the roll's realized part. A period that the roll holds whole loops as above (so a single roll over the whole timeline gives the same result as a solve that is not rolling). In a period that the roll holds only in part, the blocks chain forward: the first block of the period continues from the previous step of the roll, and the storage level is carried from roll to roll, as for *bind_forward_only*. When the roll's first period is held in part, the roll starts from `fix_start` (first roll) or from the level carried from the previous roll. With neither (`fix_nothing`), the first block has no state change, so its flows must balance on their own. Without a loop, `storage_solve_horizon_method` sets the end of the roll; it also sets the end of a period held in part when the next period of the roll is held whole (that period loops, so nothing continues from the end of the part). A period held in part is still closed over the rolls: the roll(s) that hold its last step end it at the level it started from (its start level in the roll that began it), a later roll that does not reach its end ends its part at least at the level it started from, and so does the roll that begins the period at its first step (instead of the horizon method); a period that begins after the first step of a roll keeps the horizon method at the end of that roll. A `rolling_solve_jump` that is a whole number of periods keeps every realized period looping; otherwise a warning is given.
126
+ - *bind_intraperiod_blocks* — orthogonal aggregation method: state is held constant within each block and the energy balance of the node is summed over each block (every flow stays at the solve's time step); the blocks of a period form a loop, and the state of a block is its state at the end of the block. A block runs over consecutive time steps of the period: timeset blocks that touch (the next one starts right after the previous one ends, with no gap) are one block here. With `fix_start` the start state is pinned at the end of the first period's last block, the state the first block starts from. In a rolling solve (`solve_mode` *rolling_window*) the blocks of each roll also end at the end of the roll's realized part. A period that the roll holds whole loops as above (so a single roll over the whole timeline gives the same result as a solve that is not rolling). In a period that the roll holds only in part, the blocks chain forward: the first block of the period continues from the previous step of the roll, and the storage level is carried from roll to roll, as for *bind_forward_only*. When the roll's first period is held in part, the roll starts from `fix_start` (first roll) or from the level carried from the previous roll. With neither (`fix_nothing`), the first block has no state change, so its flows must balance on their own. Without a loop, `storage_solve_horizon_method` sets the end of the roll; it also sets the end of a period held in part when the next period of the roll is held whole (that period loops, so nothing continues from the end of the part). A period held in part is still closed over the rolls: the roll(s) that hold its last step end it at the level it started from (its start level in the roll that began it), a later roll that does not reach its end ends its part at least at the level it started from, and so does the roll that begins the period at its first step (instead of the horizon method); a period that begins after the first step of a roll keeps the horizon method at the end of that roll. A `rolling_solve_jump` that is a whole number of periods keeps every realized period looping; otherwise a warning is given.
127
127
 
128
128
  - A rolling solve over a timeline with gaps (a period with several timeblocks, e.g. sampled weeks) stops with a configuration error: rolling solves need a continuous timeline; use a single solve for sampled timeblocks.
129
129
 
@@ -123,7 +123,7 @@ rerun fixes them all. A warning is printed once per scenario read in the run log
123
123
  - A negative `existing` (unit, connection or node). It is allowed: a unit with a negative capacity is an
124
124
  "anti-energy" unit whose flows run the other way, a node gets a negative storage capacity and a connection a
125
125
  negative transfer capacity. It is more often a typing mistake, and combined with a profile, `min_load`, storage
126
- limits or invest / retire limits it can make the problem infeasible.
126
+ limits or invest / retire limits it can make the problem infeasible (see [negative `existing`](units.md#main-data-items-for-units)).
127
127
  - A map of a period parameter that can also vary over time (`availability`, `other_operational_cost`, ...) without
128
128
  an index name whose keys are neither periods nor time steps but look like time steps, on a parameter the
129
129
  time-series check does not cover (the value is not used).