flextool 4.5.1__tar.gz → 4.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flextool-4.5.1/flextool.egg-info → flextool-4.6.0}/PKG-INFO +1 -1
- flextool-4.6.0/docs/advanced_concepts.md +212 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/dev/architecture.md +17 -10
- {flextool-4.5.1 → flextool-4.6.0}/docs/dev/engine.md +143 -15
- {flextool-4.5.1 → flextool-4.6.0}/docs/flextool_gui_interface.md +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/docs/how_to/emissions.md +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/docs/how_to/investment.md +86 -15
- {flextool-4.5.1 → flextool-4.6.0}/docs/how_to/solve_sequences.md +16 -10
- {flextool-4.5.1 → flextool-4.6.0}/docs/how_to/storage_hydro.md +2 -2
- {flextool-4.5.1 → flextool-4.6.0}/docs/how_to/thermal_chp.md +4 -4
- {flextool-4.5.1 → flextool-4.6.0}/docs/install_toolbox.md +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/docs/limitations.md +3 -3
- {flextool-4.5.1 → flextool-4.6.0}/docs/reading_results.md +2 -1
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/connections.md +10 -6
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/entities_and_time.md +5 -5
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/nodes.md +42 -16
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/parameter_groups.md +4 -4
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/units.md +55 -20
- {flextool-4.5.1 → flextool-4.6.0}/docs/results.md +109 -36
- {flextool-4.5.1 → flextool-4.6.0}/docs/spine_toolbox.md +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/docs/terminal_workflow.md +2 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/tutorial.md +7 -4
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/results/_catalog.py +7 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/results/_entity.py +3 -2
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/results/_overview.py +2 -1
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/tools/diagnostics.py +7 -1
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/_console.py +23 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_migrate_database.py +6 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_run_flextool.py +36 -6
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_update_flextool.py +4 -2
- flextool-4.6.0/flextool/console_markers.py +16 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/docs_build/__init__.py +6 -2
- {flextool-4.5.1 → flextool-4.6.0}/flextool/docs_build/parameters.py +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/flextool/docs_build/scope.py +4 -1
- flextool-4.6.0/flextool/docs_build/warnings.py +57 -0
- flextool-4.6.0/flextool/engine/_behaviour_changes.py +340 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/autoscale/_layer2.py +6 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/autoscale/_layer2_types.py +49 -8
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/autoscale/_quantity_types.py +61 -10
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/autoscale/_report.py +2 -2
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_axis_enums.py +9 -1
- flextool-4.6.0/flextool/engine/input/_lifetime_roles.py +118 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_param_shapes.py +45 -16
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_solve_state.py +3 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_solve_step_aggregation.py +32 -29
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_timeline.py +15 -14
- flextool-4.6.0/flextool/engine/model/_capacity.py +161 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_common.py +6 -4
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_cumulative_invest.py +131 -98
- flextool-4.6.0/flextool/engine/model/_extend.py +328 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_group_slack.py +40 -13
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_non_anticipativity.py +7 -2
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_online.py +30 -16
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_reserve.py +44 -24
- flextool-4.6.0/flextool/engine/model/_retire_built.py +400 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_self_discharge.py +257 -10
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/core.py +1687 -340
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/output/_capacity_margin.py +15 -17
- flextool-4.6.0/flextool/engine/output/_cohort_capacity.py +273 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/output/_dump_csvs.py +6 -22
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/output/_horizon_dump.py +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/output/_parquet_bundle.py +36 -9
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/output/_writer.py +7 -10
- flextool-4.6.0/flextool/engine/preprocess/_annuity.py +129 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_invest_seeds.py +5 -6
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_provider_keys.py +15 -13
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_provider_translators.py +32 -13
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_solve_context.py +4 -51
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_arc_unions.py +14 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_blocks.py +3 -4
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_chain_params.py +102 -339
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_dispatchers.py +4 -30
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_inflow_scaling.py +8 -10
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_inflow_scaling_checks.py +7 -12
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_pdt_params.py +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_per_solve.py +73 -118
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_period_calc.py +23 -21
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_solve_time.py +8 -21
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_solve_writers.py +1 -10
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/flex_data.py +658 -648
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_coarse.py +34 -61
- flextool-4.6.0/flextool/engine/preprocess/params/_cohort_handoff.py +290 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_cohorts.py +1233 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_cost_lines.py +54 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_derived.py +365 -762
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_direct.py +3 -1
- flextool-4.6.0/flextool/engine/preprocess/params/_discount.py +687 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_existing.py +90 -851
- flextool-4.6.0/flextool/engine/preprocess/params/_existing_salvage.py +400 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_extend.py +575 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_fixed_costs.py +392 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_lifetime_costs.py +257 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_lifetime_inputs.py +467 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_mintime.py +29 -18
- flextool-4.6.0/flextool/engine/preprocess/params/_npv.py +981 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_period_values.py +167 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_report_lines.py +69 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_retire_built.py +316 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_retire_existing.py +80 -28
- flextool-4.6.0/flextool/engine/preprocess/params/_retire_settlement.py +431 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_run_calendar.py +245 -0
- flextool-4.6.0/flextool/engine/preprocess/params/_run_costs.py +380 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_walks.py +23 -66
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_benders.py +61 -41
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_carry_routing.py +70 -17
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_handoff.py +51 -32
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_orchestration.py +197 -87
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_realized_overlap.py +54 -31
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_region_filter.py +16 -17
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_run_model.py +1116 -55
- flextool-4.6.0/flextool/engine/solve/_solver_outcome.py +189 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_stochastic.py +14 -10
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_subprocess_solve.py +16 -10
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_warm.py +7 -7
- {flextool-4.5.1 → flextool-4.6.0}/flextool/export_to_tabular/export_settings.yaml +18 -9
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/db_version_check.py +47 -49
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/execution_window.py +16 -126
- flextool-4.6.0/flextool/gui/log_view.py +383 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/input_derivation/__init__.py +6 -2
- {flextool-4.5.1 → flextool-4.6.0}/flextool/input_derivation/_commodity_ladder.py +11 -24
- {flextool-4.5.1 → flextool-4.6.0}/flextool/input_derivation/_dc_power_flow.py +9 -25
- {flextool-4.5.1 → flextool-4.6.0}/flextool/input_derivation/_process_method.py +10 -19
- {flextool-4.5.1 → flextool-4.6.0}/flextool/input_derivation/_specs.py +39 -21
- {flextool-4.5.1 → flextool-4.6.0}/flextool/input_derivation/_validators.py +273 -274
- {flextool-4.5.1 → flextool-4.6.0}/flextool/model_builder/build_model.py +4 -4
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/orchestrator.py +6 -1
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_inputs/import_old_excel_input.json +578 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_inputs/read_matpower.py +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_inputs/read_tabular_with_specification.py +449 -61
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_inputs/write_old_flextool_to_db.py +6 -2
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_inputs/write_to_input_db.py +163 -12
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/_fan_labels.py +24 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/_output_meta.py +129 -23
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/calc_costs.py +185 -153
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/calc_piecewise.py +12 -9
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/calc_storage_vre.py +16 -19
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/drop_levels.py +10 -7
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/handoff_writers.py +19 -262
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/out_capacity.py +117 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/out_costs.py +54 -56
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/out_node.py +6 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/persist_realized_slice.py +19 -22
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/read_highs_solution.py +212 -63
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/read_parameters.py +106 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/read_sets.py +33 -37
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/read_variables.py +18 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/solve_order.py +6 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/union_realized_slice.py +3 -3
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/write_outputs.py +236 -178
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/write_spinedb.py +6 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/run_record/_status.py +69 -12
- flextool-4.6.0/flextool/run_warnings/__init__.py +409 -0
- flextool-4.6.0/flextool/run_warnings/_behaviour_specs.py +416 -0
- flextool-4.6.0/flextool/run_warnings/_engine_specs.py +509 -0
- flextool-4.6.0/flextool/run_warnings/_input_specs.py +401 -0
- flextool-4.6.0/flextool/run_warnings/registry.py +143 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/data_models.py +7 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/canonical_databases/howto_aggregate_output.json +457 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/canonical_databases/howto_connections.json +457 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/canonical_databases/howto_demand.json +457 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/canonical_databases/howto_hydro_reservoir.json +457 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/canonical_databases/howto_hydro_reservoir_with_pump.json +457 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/canonical_databases/howto_non_sync_and_curtailment.json +457 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/canonical_databases/howto_ramp_and_start_up.json +457 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/canonical_databases/howto_stochastics.json +457 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/canonical_databases/templates_examples.json +492 -142
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/canonical_databases/templates_time_settings_only.json +457 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/default_plot_settings.yaml +10 -4
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/default_plots.yaml +7 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/flextool_axis_contract.json +3 -3
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/spinedb_results_schema.json +27 -3
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/spinedb_schema.json +439 -107
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/__init__.py +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/canonical_databases.py +9 -3
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/db_migration.py +1433 -69
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/frozen.py +3 -1
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/migrate_before_run.py +5 -1
- flextool-4.6.0/flextool/update_flextool/migration_backup.py +184 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/self_update.py +45 -16
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/sync_master_json_template.py +8 -2
- {flextool-4.5.1 → flextool-4.6.0/flextool.egg-info}/PKG-INFO +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/flextool.egg-info/SOURCES.txt +31 -1
- {flextool-4.5.1 → flextool-4.6.0}/pyproject.toml +1 -1
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_color_template.py +3 -1
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_connection_node_warnings.py +7 -11
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_console_run_tool.py +44 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_cost_aggregation_semantics.py +40 -15
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_cost_breakdown_by_entity.py +10 -56
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_dc_power_flow.py +8 -9
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_entity_universe_carrier.py +4 -4
- flextool-4.6.0/tests/test_execution_log_lint.py +256 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_group_output_warnings.py +36 -9
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_handoff_writers.py +0 -90
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_piecewise_validation.py +53 -47
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_recourse_cost_reconciliation.py +12 -8
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_representative_periods.py +6 -5
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_scenarios.py +51 -1
- flextool-4.6.0/tests/test_specification_excel_import.py +330 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_units_of_measure_validators.py +16 -18
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_workdir_empty_default.py +0 -1
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_years_represented.py +2 -2
- flextool-4.5.1/docs/advanced_concepts.md +0 -213
- flextool-4.5.1/flextool/engine/_behaviour_changes.py +0 -483
- flextool-4.5.1/flextool/engine/preprocess/_annuity.py +0 -79
- flextool-4.5.1/flextool/engine/preprocess/emit/_entity_annual.py +0 -442
- flextool-4.5.1/flextool/engine/preprocess/params/_npv.py +0 -2241
- flextool-4.5.1/flextool/engine/preprocess/params/_run_calendar.py +0 -140
- {flextool-4.5.1 → flextool-4.6.0}/LICENSE.txt +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/MANIFEST.in +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/README.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/_flextool_build.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/ai_assistant.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/dev/slack_convention.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/env_vars.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/excel_interface.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/how_to/basics.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/how_to/index.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/how_to/outputs.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/how_to/performance.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/how_to/stochastics.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/index.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/install_gui.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/interface_overview.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/commodities.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/flow_groups.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/groups.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/index.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/reserves.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/reference/user_constraints.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/solvers/copt.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/solvers/cplex.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/solvers/gurobi.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/solvers/highs.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/solvers/index.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/solvers/xpress.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/docs/spine_database.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_allocator.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_child_python.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_file_lock.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_local_solver_settings.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_mem_sampler.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_process_tree.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_resources.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_safe_text.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_solver_config_source.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_solver_option_rules.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/_thread_budget.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/_files.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/backends/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/backends/_common.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/backends/anthropic_messages.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/backends/openai_chat.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/budget.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/caps.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/chat_cli.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/cli.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/context.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/docs_store.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/endpoint.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/env_knobs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/errors.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/inputs/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/inputs/_db.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/inputs/_notes.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/inputs/_schema.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/inputs/_units.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/inputs/_values.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/keys.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/llm_adapter.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/llm_errors.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/llm_retry.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/mcp_server.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/model_check.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/model_facts.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/model_list_cache.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/model_versions.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/net.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/pacing.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/placeholders.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/probes.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/project.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/prompt.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/providers.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/redact.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/registry.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/results/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/results/_query.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/results/_runs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/results/_slacks.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/runtime_context.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/session.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/settings.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/store.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/textsearch.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/thoughts.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/tiers.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/tools/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/tools/discovery.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/tools/explain.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/tools/inputs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/tools/orientation.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/tools/results.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/unit_wording.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/assistant/usage.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/__main__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/_cli.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/_db_alt.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/_final_outputs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/_guard.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/_loop.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/_readers.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/_report.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/_sizing.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/_solve.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/calibrate/_solve_status.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/_timing.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_execute_flextool_workflow.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_export_to_tabular.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_freeze_database.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_import_sensitivities.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_open_results_db.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_project_package.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_read_matpower.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_read_old_flextool.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_read_self_describing_tabular_input.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_read_tabular_input.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_scenario_results.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_solve_mps.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_time_runs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_trust_workspace.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/cli/cmd_write_outputs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/common_utils/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/common_utils/plot_mem_shape.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/decomposition/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/decomposition/region_decomposition.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/decomposition/region_filter.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/docs_build/__main__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/docs_build/catalogue.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/docs_build/formulation.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/docs_build/index.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/_csv_reload/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/_csv_reload/_field_seeds.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/_csv_reload/_meta.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/_csv_reload/_seed.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/_csv_reload/_stamp.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/_csv_reload/_topology.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/_csv_reload/load.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/_csv_reload/offline_outputs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/autoscale/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/autoscale/_config.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/autoscale/_guard.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_constants.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_db_loader.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_db_reader.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_inmemory_reader.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_input_source.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_piecewise_curve.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_solve_config.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_spinedb_reader.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/input/_timeline_rules.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_balance_terms.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_coarse_flows.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_commodity_ladder.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_dc_power_flow.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_delay.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_exact.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_lead_time.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_pdt_join.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/model/_unit_floors.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/output/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/output/_coarse_flows.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/output/_prices.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/output/_reserve_report.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_co2_methods.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_dump_stamp.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_flex_data_provider.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_input_writer.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_provider_io.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_reduce_detail.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_reserve_methods.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/_stochastic_detect.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_base_steps.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_calc_params.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_capacity_margin_peak.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_co2_accumulators.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_energy_margin.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_energy_margin_adder.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_leaf_sets.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_lp_scaling.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_mid_sets.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_pdt_lookup.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_period_params.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_reserve_sets.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/emit/_vectorize.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_arithmetic.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_block.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_block_layout.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_branch.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_per_solve_sets.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_piecewise.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_profiles.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_projection.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/preprocess/params/_ramp_links.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_acceptance.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_determinism.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_objective_options.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_realization.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_recursive_solve.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_solver_base.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_solver_catalogue.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/_solver_dispatch.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/chain.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/solver_catalogue/copt.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/solver_catalogue/cplex.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/solver_catalogue/gurobi.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/solver_catalogue/highs.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine/solve/solver_catalogue/xpress.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/engine_polars/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/env_check.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/export_to_tabular/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/export_to_tabular/db_reader.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/export_to_tabular/excel_writer.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/export_to_tabular/export_to_excel.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/export_to_tabular/formatting.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/export_to_tabular/sheet_config.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/__main__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/_menus.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/chat_tab.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/chat_window.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/entry.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/fonts.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/gate.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/geometry.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/gui_state.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/markdown_stream.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/notices.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/settings_dialog.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/strings.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/transcript.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/assistant/worker.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/calibrate_commands.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/calibrate_jobs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/check_tree.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/cli_format.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/config_parser.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/data_models.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/db_editor_integration.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/add_dialog.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/calibrate_dialog.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/file_picker.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/group_picker.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/local_solver_settings_dialog.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/migration_consent_dialog.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/migration_progress_dialog.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/plot_dialog.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/plot_settings_picker.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/project_dialog.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/project_package_dialog.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/dialogs/update_dialog.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/downsampling.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/error_handling.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/execution_manager.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/hover_tooltip.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/input_sources.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/main_window.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/network_graph.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/output_actions.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/output_log_window.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/platform_utils.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/plot_cache.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/plot_canvas.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/plot_config_reader.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/project_utils.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/result_viewer.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/scenario_key.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/scenario_lists.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/settings_io.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/solve_reader.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/tree_reorder.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/gui/ui_metrics.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/input_derivation/_commodity_ladder_sets.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/input_derivation/_method_constants.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/input_derivation/_piecewise.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/lean_parquet.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/model_builder/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/model_builder/_special.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/model_builder/encoding.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/model_builder/names.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/model_builder/profiles.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/axis_helpers.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/color_template.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/config.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/format_helpers.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/legend_helpers.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/perf.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/plan.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/plot_bars.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/plot_bars_detail.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/plot_lines.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/shared_manifest.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/subplot_helpers.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/plot_outputs/unit_labels.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_inputs/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_inputs/read_old_flextool.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_inputs/read_self_describing_excel.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_inputs/write_self_describing_to_db.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/_annualize.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/_csv_sidecars.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/_excel_writer.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/_inmemory_helpers.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/_ramp_inputs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/_sheet_names.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/_timeline_breaks.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/_unit_context.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/calc_capacity_flows.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/calc_connections.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/calc_group_flows.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/calc_ramp_envelope.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/calc_slacks.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/out_ancillary.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/out_flowgroup.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/out_flows.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/out_group.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/process_results.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/reduced_cells.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/process_outputs/spinedb_replay.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/project_package.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/representative_periods/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/representative_periods/clustering.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/representative_periods/force_include.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/representative_periods/netload.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/representative_periods/netload_inputs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/representative_periods/netload_iterate.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/representative_periods/preprocess.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/representative_periods/scenario_stack.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/representative_periods/weights.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/run_options.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/run_record/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/run_record/_owner.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/run_record/_tee.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/safe_names.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/config_builder.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/constants.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/db_reader.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/dispatch_data.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/dispatch_mappings.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/dispatch_plots.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/input_entity_colors.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/orchestrator.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/plan_union.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/plot_settings_seed.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/scenario_comparison/ramp_plots.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/AXIS_CONTRACT.md +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/comparison_settings_template.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/flextool_axis_contract.schema.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/old_flextool_import_template.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/output_info_template.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/output_settings_template.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_constant_default.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_default_optional_output.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_default_value.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_drop_down.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_lifetime_method.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_optional_outputs.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_output_node_flows.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_results_master.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_rolling_start_remove.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_rolling_window.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_storage_binding_defaults.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_v2.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/schemas/pre_v26/flextool_template_v25.json +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/solver_config/copt.opt.template +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/solver_config/cplex.opt.template +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/solver_config/gurobi.opt.template +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/solver_config/highs.opt.template +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/solver_config/xpress.opt.template +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/spinedb_backend/__init__.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/spinedb_backend/_axis_enums.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/spinedb_backend/_backend.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/sqlite_url.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/timeline_pieces.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/units_of_measure.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/bundle_install.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/db_handle.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/ensure_settings_db.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/export_database.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/extend_tests_fixture.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/fixture_schema.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/generate_canonical.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/initialize_database.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/install_info.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/update_flextool/test_fixtures.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool/user_dirs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool.egg-info/dependency_links.txt +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool.egg-info/entry_points.txt +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool.egg-info/requires.txt +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool.egg-info/top_level.txt +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool_assistant_entry.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/flextool_run_supervisor.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/setup.cfg +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_bar_layout.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_bar_sub_pixel_labels.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_blocks.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_branch_weights.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_child_python_safe_path.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_child_run_argv.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_ci_shard.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_commodity_ladder_rolling.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_comparison_excel.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_comparison_project_root.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_comparison_results_registry.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_complete_period_share_reduction.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_csv_dump_roundtrip.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_dependency_caps.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_dispatch_consumer_and_connection_signs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_dispatch_multi_period.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_dispatch_node_debug_and_tree.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_dispatch_order_specials.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_dispatch_scenario_tag.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_ensure_settings_db.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_entity_unitsize_invariant.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_env_check.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_env_knob_registry.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_excel_text_cells.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_export_to_tabular.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_extend_tests_fixture.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_flowgroup_indicators.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_force_include.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_input_entity_colors.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_lean_parquet.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_lh2_three_region.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_min_load_rolling.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_model_builder_invest.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_model_builder_special_functions.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_non_anticipativity.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_old_flextool_importer_schema_drift.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_open_results_db.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_output_column_metadata.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_output_csv_names.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_output_metadata_renderers.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_output_work_folder_isolation.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_parameter_group_coverage.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_period_share_of_year_output.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_plan_union.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_plot_draw_order.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_plot_gaps.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_plot_pipeline.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_plot_plan_chunk_reconstruction.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_plot_plan_time_labels_roundtrip.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_plot_settings_seed.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_project_package_cli.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_ramp_histogram.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_read_highs_solution.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_regional_filter.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_rolling_online_carry.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_rolling_online_mintime_carry.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_rolling_online_minuptime.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_rp_alternative_name.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_rp_force_include_wiring.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_rp_solves_filter.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_run_options.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_safe_names.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_safe_text.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_scenario_colors.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_scenario_stack.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_self_describing_reader.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_shared_axis_manifest.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_simple_bar_entity_color.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_solve_config.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_solve_reader.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_sqlite_url.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_stream_concat_temp_cleanup.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_support_load.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_synthesize_invest_dual.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_thread_budget.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_time_runs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_timeline_breaks.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_timings_csv.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_toolbox_specs.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_unidirectional_connection.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_unit_online_dt_columns.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_units_of_measure.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_user_dirs_isolation.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_v52_migration.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_v63_migration.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_v64_migration.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_v65_migration.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_v66_migration.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_v67_migration.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_v68_migration.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_v69_migration.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_v70_migration.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_xlsx_startup_input_round_trip.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_xlsx_v77_round_trip.py +0 -0
- {flextool-4.5.1 → flextool-4.6.0}/tests/test_xlsx_workflow.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flextool
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.6.0
|
|
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
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# Advanced Concepts
|
|
2
|
+
|
|
3
|
+
## Penalties
|
|
4
|
+
|
|
5
|
+
FlexTool uses penalty (slack) variables to relax constraints that might otherwise cause infeasibility. Each penalty has a very high cost in the objective function that makes the optimizer try to avoid these violations unless no other option is viable.
|
|
6
|
+
|
|
7
|
+
### How penalties work
|
|
8
|
+
|
|
9
|
+
When a constraint cannot be satisfied (e.g., demand exceeds available supply), a slack variable absorbs the deficit. The cost of this violation is added to the objective function. The penalty cost should therefore be set high enough to prevent violations unless there is genuinely no feasible alternative, but not so high that it causes numerical issues. The penalty could also be based on perceived cost of the violation: e.g. value of lost load in case of node balance violation.
|
|
10
|
+
|
|
11
|
+
### Penalty scaling with time
|
|
12
|
+
|
|
13
|
+
Most penalties scale with the duration of the violation -- a 3-hour violation costs 3 times as much as a 1-hour violation. The table below summarizes how each penalty is treated:
|
|
14
|
+
|
|
15
|
+
| Penalty parameter | Unit | Constraint type | Scales with step_duration | Notes |
|
|
16
|
+
|---|---|---|---|---|
|
|
17
|
+
| `penalty_up` (node) | CUR/MWh | Energy balance | Yes | Cost per MWh of energy not served |
|
|
18
|
+
| `penalty_down` (node) | CUR/MWh | Energy balance | Yes | Cost per MWh of excess energy |
|
|
19
|
+
| `penalty_reserve` (reserve group) | CUR/MW | Reserve requirement | Yes | Cost per MW-hour of reserve shortfall |
|
|
20
|
+
| `penalty_inertia` (group) | CUR/MWs | Inertia requirement | Yes | Cost per MWs-hour of inertia shortfall |
|
|
21
|
+
| `penalty_non_synchronous` (group) | CUR/MWh | Non-synchronous limit | Yes | Cost per MWh of non-sync limit violation |
|
|
22
|
+
| `penalty_capacity_margin` (group) | CUR/kW | Capacity margin | No | Cost per kW of capacity shortfall per period. Analogous to investment cost -- but not annualized. It is still discounted like an operating cost. |
|
|
23
|
+
|
|
24
|
+
### Capacity margin penalty
|
|
25
|
+
|
|
26
|
+
The capacity margin penalty is different from the others: it represents the cost of not having sufficient installed capacity. It is analogous to an investment cost (CUR/kW) but is NOT annualized over a lifetime like actual investments. Instead, it applies as a lump cost per period. This means a `penalty_capacity_margin` of 1000 CUR/kW is much more expensive than an `invest_cost` of 1000 CUR/kW (which would be annualized to roughly 50-100 CUR/kW/year depending on lifetime and discount rate). Set the penalty to reflect the annual cost of capacity shortfall, not the total investment cost.
|
|
27
|
+
|
|
28
|
+
## Economic Modelling
|
|
29
|
+
|
|
30
|
+
### Overview
|
|
31
|
+
|
|
32
|
+
FlexTool minimizes total system cost over a planning horizon. The economic framework uses two kinds of rate:
|
|
33
|
+
|
|
34
|
+
- **`social_discount_rate`** (model-level): the model's time discount rate. It weighs a cost or income in a later year less than the same amount now.
|
|
35
|
+
- **`discount_rate`** (per technology): the investor's rate (WACC). It turns an `invest_cost` into yearly payments and reflects the financing cost and risk of each investment.
|
|
36
|
+
|
|
37
|
+
### Real vs nominal values
|
|
38
|
+
|
|
39
|
+
Economic values can be expressed in two ways:
|
|
40
|
+
|
|
41
|
+
- **Real (constant prices)**: all values are in the money of one base year. A power plant that costs 1000 EUR/kW today still costs 1000 EUR/kW in 2040 in real terms: the purchasing power is the same.
|
|
42
|
+
- **Nominal (current prices)**: values include inflation. The same plant might cost 1300 EUR/kW in 2040 at 2 % annual inflation, even though its real cost has not changed.
|
|
43
|
+
|
|
44
|
+
**The rule: every cost input and both rates are in the same terms.** FlexTool never converts a rate or a price between real and nominal. The annuity, the salvage credits and the retirement settlement all assume one consistent basis, normally real prices with real rates.
|
|
45
|
+
|
|
46
|
+
| Inputs | `social_discount_rate` (model) | `discount_rate` (entity) |
|
|
47
|
+
|--------|-------------------------------|--------------------------|
|
|
48
|
+
| Real (constant prices) | the real time preference: 0 for none, or e.g. 0.03 | the real WACC, e.g. 0.05 |
|
|
49
|
+
| Nominal (current prices) | (1 + inflation) × (1 + real time preference) − 1, e.g. 1.02 × 1.03 − 1 = 0.0506 | the nominal WACC, e.g. 0.07 |
|
|
50
|
+
|
|
51
|
+
- **`social_discount_rate` is the model's time discounting**, in the terms of the inputs. 0 means no time preference: a cost in a later period weighs the same as the same cost now (with real inputs, inflation is already in the prices). Above 0, later costs and incomes weigh less. With nominal inputs it must include inflation (the combined rate above), or later nominal costs would weigh too much.
|
|
52
|
+
- **The entity `discount_rate` is the investor's rate of return (WACC)**, in the same terms. It turns `invest_cost` into the yearly payments the investor needs. A risk premium belongs here, not in the `social_discount_rate`. With a `discount_rate` above the `social_discount_rate`, money paid back to the investor sooner is cheaper for the model: a shorter `payback_time` with the same `discount_rate` makes the investment cheaper, not dearer (and a retirement, which pays the rest of the loan at once, also changes the cost). With equal rates the timing of the investor's payments does not matter.
|
|
53
|
+
|
|
54
|
+
The Fisher equation relates the two: (1 + nominal rate) = (1 + real rate) × (1 + inflation); approximately, nominal = real + inflation (5 % + 2 % ≈ 7 %).
|
|
55
|
+
|
|
56
|
+
### The social discount rate
|
|
57
|
+
|
|
58
|
+
The model-level `social_discount_rate` (no value: 0) weighs every cost and income by `1 / (1 + social_discount_rate)^t`, where `t` is the years from the start of the run to the moment the cost falls. It applies uniformly to all cost types: investment payments, fuel costs, fixed O&M, penalties, salvage values, etc. The discounted costs are present values at that rate.
|
|
59
|
+
|
|
60
|
+
The yearly investment payments fall at the start of each year by default (the annual payment is sized for that, see below) and operating costs at the middle of the year: `discount_offset_investment` (default 0) and `discount_offset_operations` (default 0.5) move them within the year.
|
|
61
|
+
|
|
62
|
+
### Discounting between milestone years
|
|
63
|
+
|
|
64
|
+
**Only `social_discount_rate` discounts.** FlexTool discounts the costs of later periods (milestone years) with the `model` parameter `social_discount_rate` and nothing else. Each period's costs are multiplied by a discount factor: the sum, over the years the period represents, of `1 / (1 + social_discount_rate)^years_from_start`. The per-technology `discount_rate` does not discount between periods: it only turns an `invest_cost` into a yearly payment (see [The discount rate](#the-discount-rate-per-technology)).
|
|
65
|
+
|
|
66
|
+
**How the years are counted.** The years from the start of the run come from `years_represented`: a period starts after the years that the periods before it represent. The period names are only labels, so *p2030* is not read as the year 2030. Give each milestone the number of years until the next milestone (for example 5 for *p2025* when the next period is *p2030*). Investment payments are discounted from the start of a year (`discount_offset_investment`, default 0), operating costs from the middle of it (`discount_offset_operations`, default 0.5).
|
|
67
|
+
|
|
68
|
+
**With `social_discount_rate` 0 there is no discounting.** A cost in 2040 then weighs the same as the same cost in 2025: each period's yearly costs are only multiplied by its `years_represented`. This is right for a model that should not prefer earlier or later costs, but it is not what most planning studies want. Keep the per-technology `discount_rate` at the cost of capital of each technology in either case.
|
|
69
|
+
|
|
70
|
+
**Where to see it.** `summary_solve.csv` lists the *Operational discount factor* and the *Investment discount factor* of each period. The cost results come both annualized (one year of the period, not discounted) and discounted (present value over the years the periods represent); see [Costs](results.md#costs).
|
|
71
|
+
|
|
72
|
+
### The discount rate (per technology)
|
|
73
|
+
|
|
74
|
+
Each unit, connection, and storage node can have its own `discount_rate` parameter (default: 0.05, i.e., 5%). This represents the **weighted average cost of capital (WACC)** -- the return that investors require to finance the technology.
|
|
75
|
+
|
|
76
|
+
The discount rate converts a lump-sum investment cost into annual payments over the technology's payback time (`payback_time`, else its `lifetime_technical`) using the standard annuity formula:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
annual_payment = invest_cost * discount_rate / (1 - (1 / (1 + discount_rate))^payback_time)
|
|
80
|
+
* (1 + discount_rate)^(discount_offset_investment - 1)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
The loan is taken when the capacity comes online (`invest_cost` is the overnight cost) and each yearly payment falls
|
|
84
|
+
`discount_offset_investment` years into its service year: at the default 0 at the start of each year, the first one on
|
|
85
|
+
the day the capacity comes online; at 1 at the end of each year. The last factor sizes the payments for that moment,
|
|
86
|
+
so the payments are worth exactly `invest_cost` at the `discount_rate` whatever the offset. For example, invest cost
|
|
87
|
+
1000, discount rate 5 % and payback time 10 years give 129.50 a year paid at year ends (offset 1) and 129.50 / 1.05 =
|
|
88
|
+
123.34 a year paid at year starts (offset 0); both are worth 1000 when discounted at 5 % from the moment the capacity
|
|
89
|
+
comes online. The same factor sizes the level salvage credit (below).
|
|
90
|
+
|
|
91
|
+
With `lifetime_method` *reinvest_choice* or *no_reinvestment* the plant pays a level yearly cost over its real lifetime: the present value of the `payback_time` annual payments, discounted at the model `social_discount_rate`, spread evenly over the `lifetime_technical` years, `annual_payment · G(payback_time) / G(lifetime_technical)` with `G(x)` the discounted sum of x years (a fractional last year counts its fraction). It is paid for each year the capacity is in service, from the year it starts to operate to its end of life as `end_of_life_method` rounds it: a 12-year plant whose life is rounded to 10 years pays the yearly cost of the 12-year plant for 10 years, and one rounded to 15 years for 15. The price does not depend on when the plant is built or on the period lengths. `payback_time` and `discount_rate` set only its size: with `discount_rate` equal to `social_discount_rate` the yearly cost is the annuity over `lifetime_technical` whatever the payback time, with a `discount_rate` above it a shorter payback time is cheaper, and below it dearer (see [real vs nominal values](#real-vs-nominal-values)). With *reinvest_automatic* the plant is replaced at its end of life by a new plant with the values of the period the replacement comes online, each plant paying its own level yearly cost (its salvage value netted in) for its years in service, to the end of the model horizon; with constant values, `payback_time` equal to `lifetime_technical` and no `net_salvage_value` this is the annual payment in every year. Years after the model horizon are not counted.
|
|
92
|
+
|
|
93
|
+
The `net_salvage_value` at the end of the real lifetime lowers that yearly cost: its present value at `discount_rate` levelled over the `lifetime_technical` years, `net_salvage_value · (1 + discount_rate)^−lifetime_technical · annual factor`, the same annual factor as the investment (with `payback_time` equal to `lifetime_technical`, the textbook capital recovery with salvage). Existing capacity, whose investment is sunk, holds its salvage value as the same level credit over its service years from the model start. A retirement receives the whole `net_salvage_value` at the start of the retirement period and gives the credits back. Since years after the horizon are not counted, a retirement late in the horizon collects a salvage value whose credits a kept plant would earn mostly after the horizon, so it can pay; this is a consequence of the finite horizon, not a model error. In the cost results the *investment* and *salvage* of capacity that lives past the horizon are these horizon shares (see [Costs](results.md#costs)).
|
|
94
|
+
|
|
95
|
+
A `discount_rate` of 0 gives the straight-line annuity `invest_cost / payback_time` (no interest). Without a value the rate is 0.05; a negative rate is an input error. Neither lifetime has a default: an entity that invests or retires with a cost (`invest_cost`, `net_salvage_value`) needs a `payback_time` or a `lifetime_technical`, and one whose `lifetime_method` is `reinvest_choice` or `no_reinvestment` needs a `lifetime_technical` (also for existing capacity without investment), since the capacity then ends after it.
|
|
96
|
+
|
|
97
|
+
An `invest_method` other than `not_allowed` offers investment (retirement) in every investment period, also without an `invest_cost` (`net_salvage_value`) or where it is 0: that capacity has no annuity, and its `fixed_cost` still counts (a retirement saves it). A 0 in an `invest_cost` map therefore does not block investment in that period; to forbid investment in a period, use a period method (`invest_period`, `invest_period_total` or their `invest_retire_` forms) and set `invest_max_period` 0 for it; the other methods do not use `invest_max_period`. With neither `invest_cost` nor `fixed_cost` any invested amount is optimal, so the result is arbitrary. A zero-cost investment needs a `lifetime_technical` only with `lifetime_method` `reinvest_choice` or `no_reinvestment`.
|
|
98
|
+
|
|
99
|
+
**Example**: A solar plant costs 800 EUR/kW with a 25-year lifetime and 5% discount rate, paid at the start of each year (the default `discount_offset_investment` 0):
|
|
100
|
+
```
|
|
101
|
+
annual_payment = 800 * 0.05 / (1 - 1/1.05^25) * 1.05^(0 - 1) = 800 * 0.0710 / 1.05 = 54.1 EUR/kW/year approximately
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Different technologies can have different discount rates reflecting their risk profiles:
|
|
105
|
+
|
|
106
|
+
- Low risk (e.g., established solar PV): 3-5%
|
|
107
|
+
- Medium risk (e.g., natural gas turbine): 5-7%
|
|
108
|
+
- High risk (e.g., novel technology): 8-12%
|
|
109
|
+
|
|
110
|
+
### Fixed costs
|
|
111
|
+
|
|
112
|
+
Fixed costs (`fixed_cost` parameter on units, connections, and nodes) represent annual operation and maintenance costs that are incurred regardless of how much the asset is used. They are expressed in CUR/kW/year (or CUR/kWh/year for storage).
|
|
113
|
+
|
|
114
|
+
For **existing** assets, fixed costs are applied each year, discounted like the operating costs.
|
|
115
|
+
|
|
116
|
+
For **invested** assets, the fixed cost is paid in every period the new capacity operates within the model horizon: until its `lifetime_technical` ends, or in every later period with `lifetime_method` *reinvest_automatic* (the same years as the yearly investment cost, see above). It is the `fixed_cost` of each of those periods, as for existing capacity (a period map can let it rise with the age of the fleet), discounted like the other costs of that period. Years after the model horizon are not counted, the same as for the investment annuity, so the investment decision weighs the costs of the years the model covers. In the results, these costs are reported as a separate line item (*fixed cost invested*) from the investment annuity.
|
|
117
|
+
|
|
118
|
+
### Summary of economic parameters
|
|
119
|
+
|
|
120
|
+
| Parameter | Level | Default | Description |
|
|
121
|
+
|-----------|-------|---------|-------------|
|
|
122
|
+
| `social_discount_rate` | Model | 0 | The model's time discount rate; 0 is no time preference |
|
|
123
|
+
| `discount_offset_investment` | Model | 0 | Where in the year the yearly investment payments and salvage credits fall (0 = start, 1 = end); the annual payment is sized for it |
|
|
124
|
+
| `discount_offset_operations` | Model | 0.5 | Where in the year operating and fixed costs fall (0.5 = middle) |
|
|
125
|
+
| `discount_rate` | Entity | 0.05 | Technology-specific WACC for annualizing investments; 0 gives invest_cost / payback_time |
|
|
126
|
+
| `invest_cost` | Entity | - | Overnight investment cost [CUR/kW] |
|
|
127
|
+
| `lifetime_technical` | Entity | - | How long the capacity operates [years]; required when the entity invests or retires with a cost and has no `payback_time` |
|
|
128
|
+
| `payback_time` | Entity | `lifetime_technical` | Years over which `invest_cost` is annualized |
|
|
129
|
+
| `fixed_cost` | Entity | - | Annual fixed O&M cost [CUR/kW/year] |
|
|
130
|
+
| `net_salvage_value` | Entity | - | Scrap value minus decommissioning cost when the capacity stops operating [CUR/kW] |
|
|
131
|
+
|
|
132
|
+
### How multi-year periods are handled internally
|
|
133
|
+
|
|
134
|
+
A period can represent multiple years via the `years_represented` parameter on the solve entity. For example, a period `p2025` with `years_represented = 5` means that the modelled timeline (e.g., one representative week) stands in for 5 full years (2025-2029).
|
|
135
|
+
|
|
136
|
+
Internally, FlexTool expands this into per-year entries. A period with `years_represented = 5` becomes 5 rows in the solve data, each representing 1 year at a different distance from the start of the run (the first period of the model's first solve; a later solve counts the years of the earlier solves' periods first). The discount factor then sums the per-year discount factors:
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
discount_factor = Σ_y p_years_represented[d,y] × 1/(1 + social_discount_rate)^(years_from_run_start[d,y] + p_years_represented[d,y] × offset)
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
where `years_from_run_start[d,y]` is the start of year `y` of period `d` (a fractional year counts as its fraction: after a period of 2.5 years the next one starts at 2.5) and `offset` is `discount_offset_investment` or `discount_offset_operations`.
|
|
143
|
+
|
|
144
|
+
With `social_discount_rate = 0`, each term contributes `p_years_represented[d,y] × 1 = 1`, and the sum equals `years_represented` (i.e., 5). With `social_discount_rate = 2%`, each later year is discounted slightly more, giving a sum of approximately 4.81 (at offset 0).
|
|
145
|
+
|
|
146
|
+
This mechanism also supports fractional values. With `years_represented = 0.5` (half-year resolution for investment decisions), the discount factor is `0.5 × 1/(1 + social_discount_rate)^y`, correctly counting only half a year of costs.
|
|
147
|
+
|
|
148
|
+
In the objective function, operational costs follow this pattern:
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
cost_per_timestep × step_duration × discount_factor / period_share_of_year
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
where `period_share_of_year = hours_in_period / 8760` converts the modelled period to an annual equivalent, and the discount factor then scales across all represented years. Investment costs follow a similar pattern using a separate discount factor that accounts for investment timing (`discount_offset_investment`).
|
|
155
|
+
|
|
156
|
+
### Using periods that are not one year long
|
|
157
|
+
|
|
158
|
+
A period does not have to represent exactly one year. It can be shorter
|
|
159
|
+
(e.g. a half-year period for six-monthly investment decisions) or stand in
|
|
160
|
+
for several years (see *How multi-year periods are handled internally*).
|
|
161
|
+
FlexTool keeps the accounting correct for any period length — you mostly
|
|
162
|
+
just need to know what is scaled and what is not.
|
|
163
|
+
|
|
164
|
+
#### What a period's length means
|
|
165
|
+
|
|
166
|
+
Each period has a length derived from its modelled timeline,
|
|
167
|
+
`period_share_of_year = hours_in_period / 8760`. Investment granularity is set separately
|
|
168
|
+
with `years_represented` on the solve — including fractional values such
|
|
169
|
+
as `years_represented = 0.5` for half-year steps.
|
|
170
|
+
|
|
171
|
+
#### What stays correct automatically
|
|
172
|
+
|
|
173
|
+
- **Operating costs and energy balances are absolute.** They are summed
|
|
174
|
+
over the timesteps actually in the period, so a shorter period simply
|
|
175
|
+
incurs less; a longer one, more. No year constant enters these totals.
|
|
176
|
+
- **Annual (per-year) parameters are prorated by period length.** Annual
|
|
177
|
+
`fixed_cost`, for instance, is applied as `fixed_cost × period_share`, so
|
|
178
|
+
a half-year period pays half a year of fixed cost. Investment annuities
|
|
179
|
+
and discounting likewise use the period's (possibly fractional) year
|
|
180
|
+
count.
|
|
181
|
+
|
|
182
|
+
#### What "annualised" in the results means
|
|
183
|
+
|
|
184
|
+
The `..._annualized` result columns divide a period's totals by
|
|
185
|
+
`period_share_of_year` to express them as a per-year rate. This is only a
|
|
186
|
+
reporting convenience so that periods of different lengths can be compared
|
|
187
|
+
on the same footing — it does **not** change the optimisation or the
|
|
188
|
+
period totals. If you want the actual amount incurred in the period, read
|
|
189
|
+
the plain (non-annualised) total.
|
|
190
|
+
|
|
191
|
+
#### When NOT to rely on inflow scaling
|
|
192
|
+
|
|
193
|
+
The `inflow_method` options `scale_to_annual_flow`, `scale_in_proportion`
|
|
194
|
+
and `scale_to_annual_and_peak_flow` assume the modelled timeline is a
|
|
195
|
+
representative year: they normalise the inflow by its sum over (one year
|
|
196
|
+
of) the timeline. If your timeline is **not** a representative year — a
|
|
197
|
+
non-representative sub-year slice, or several years with genuinely
|
|
198
|
+
different shapes — do not use these methods. Instead provide an accurate
|
|
199
|
+
absolute inflow time series and leave `inflow_method` at its default
|
|
200
|
+
(`use_original`); then no annual assumption is applied to your inflow.
|
|
201
|
+
|
|
202
|
+
(There is no equivalent "scale to annual" for `profile`-based limits such
|
|
203
|
+
as capacity factors. A capacity factor is bounded by installed capacity,
|
|
204
|
+
so there is no easy way to scale it accurately.)
|
|
205
|
+
|
|
206
|
+
#### One approximation to be aware of
|
|
207
|
+
|
|
208
|
+
When a single period represents multiple years (`years_represented > 1`),
|
|
209
|
+
costs within that period are discounted at the period's single point in
|
|
210
|
+
time rather than year by year. The totals remain correct; only the
|
|
211
|
+
within-period discounting is approximated. Use shorter periods (more of
|
|
212
|
+
them) if you need finer discounting resolution.
|
|
@@ -410,7 +410,9 @@ Same `build_flextool` body, three wrappers from `polar_high`:
|
|
|
410
410
|
`objective_terms(b)` summed into the objective. Optional features with
|
|
411
411
|
their own variables live in their own modules (`_online`, `_unit_floors`,
|
|
412
412
|
`_reserve`, `_group_slack`, `_cumulative_invest`, `_commodity_ladder`,
|
|
413
|
-
`_dc_power_flow`, `_delay`, `_non_anticipativity`)
|
|
413
|
+
`_dc_power_flow`, `_delay`, `_non_anticipativity`); `_capacity` builds the
|
|
414
|
+
capacity in service (investments and retirements counting in each period, from
|
|
415
|
+
the cohort table) once for all of them. The `model/core.py` module
|
|
414
416
|
docstring maps every variable and equation family; details in
|
|
415
417
|
[engine.md](engine.md#lp-build-modelpy-and-the-feature-modules).
|
|
416
418
|
|
|
@@ -481,9 +483,8 @@ relevant key families are declared in `engine/preprocess/_provider_keys.py`:
|
|
|
481
483
|
|
|
482
484
|
- `HANDOFF_*` — quantities the just-solved problem produces for the next
|
|
483
485
|
iteration (`fix_storage_quantity/price/usage`, `roll_end_state`,
|
|
484
|
-
`
|
|
485
|
-
`cumulative_co2`, `commodity_ladder_cumulative`, `cum_sim_hours
|
|
486
|
-
`ed_history_realized_first`, `edd_history`).
|
|
486
|
+
`realized_cohort`, `realized_retire`, `realized_commission`, `divest_cumulative`,
|
|
487
|
+
`cumulative_co2`, `commodity_ladder_cumulative`, `cum_sim_hours`).
|
|
487
488
|
- `INPUT_*` — backend-derived rows the cascade re-reads each iteration.
|
|
488
489
|
- `SOLVE_DATA_*` — per-solve sets and parameters that the derivation
|
|
489
490
|
layer produces.
|
|
@@ -498,8 +499,8 @@ The output cascade (`flextool/process_outputs/`) has the same contract as the lo
|
|
|
498
499
|
values from the sub-solve's `FlexData`, `FlexDataProvider` or `OutputWriterState`, never from `input/` or
|
|
499
500
|
`solve_data/` on the work folder (item 163, `specs/bugfix/c24/design_163.md`;
|
|
500
501
|
`test_output_writers_read_no_work_folder_inputs` in `tests/engine/test_meta_provider_invariants.py`, Rule 5). The
|
|
501
|
-
|
|
502
|
-
`p_roll_continue_state
|
|
502
|
+
four handoff-mirror CSVs under `solve_data/` (`p_entity_divested`, `fix_storage_quantity`, `fix_storage_usage`,
|
|
503
|
+
`p_roll_continue_state`) are write-only `--csv-dump` debug output with no
|
|
503
504
|
reader anywhere in the engine; `period_capacity.csv` is the one mirror still written on every run (vestigial,
|
|
504
505
|
always header-only).
|
|
505
506
|
|
|
@@ -704,7 +705,7 @@ raises.
|
|
|
704
705
|
|
|
705
706
|
Not every DB read goes through `resolve_param_shape`. The **per-entity
|
|
706
707
|
cascades** in `_derived.py` / `_existing.py` /
|
|
707
|
-
`
|
|
708
|
+
`_lifetime_inputs.py` read raw entity params (`source.parameter(...)`) and
|
|
708
709
|
must detect the period axis themselves. The failure mode is identical to
|
|
709
710
|
the resolver's: Spine names a Map's index column with the author's
|
|
710
711
|
`index_name`, whose spinedb_api *default is the literal string `"x"`*
|
|
@@ -909,6 +910,7 @@ dialogs/ Add / project / plot / file-picker dialogs.
|
|
|
909
910
|
|---|---|
|
|
910
911
|
| `self_update.py` (`update_flextool`) | `git pull` + project-side migration. |
|
|
911
912
|
| `db_migration.py` (`migrate_database`) | Walk the version chain to the current `FLEXTOOL_DB_VERSION`. |
|
|
913
|
+
| `migration_backup.py` | The pre-migration copy (`<db>.premigration.bak`) and its atomic restore on failure; shared by `migrate_database` and the window's upgrade. |
|
|
912
914
|
| `initialize_database.py` (`initialize_database`) | Create new DB from JSON template. |
|
|
913
915
|
| `ensure_settings_db.py` | Idempotent settings-DB creation. |
|
|
914
916
|
| `test_fixtures.py` | Migrate `tests/fixtures/*.json` to current schema and sync their schema sections. |
|
|
@@ -1414,8 +1416,9 @@ names as before for debug inspection:
|
|
|
1414
1416
|
|
|
1415
1417
|
| Carrier (`SolveHandoff` field) | Debug-mirror file | Meaning |
|
|
1416
1418
|
|---|---|---|
|
|
1417
|
-
| `
|
|
1418
|
-
| `
|
|
1419
|
+
| `realized_cohort` | `produced_handoff/realized_cohort.csv` | The investments realised by the run so far, one row per cohort (investment decision): its start of operation and end of life in years of the run (placed once, by the deciding solve) and its size. A later solve's capacity is its existing cohort (the user's `existing` of each of its periods) plus the carried cohorts in service, minus the carried retirements (`_cohort_handoff.existing_capacity`). |
|
|
1420
|
+
| `realized_retire` | `produced_handoff/realized_retire.csv` | Retired capacity per cohort and realised decision period; counts while the cohort is in service. |
|
|
1421
|
+
| `realized_commission` | *(in-memory only)* | Realised investments with a construction lead time: coming online / in construction in a later solve. |
|
|
1419
1422
|
| `divest_cumulative` | `p_entity_divested.csv` | Cumulative divest per entity carried forward. |
|
|
1420
1423
|
| `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"). |
|
|
1421
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. |
|
|
@@ -1457,13 +1460,17 @@ used to be `SolveHandoff` fields too, populated only by the now-removed
|
|
|
1457
1460
|
`capture_post_solve()` disk-read constructor. They were retired when the
|
|
1458
1461
|
cascade fell through to Provider/CSV reads in all production paths; see
|
|
1459
1462
|
the docstring of `solve/_handoff.py` for the history.
|
|
1463
|
+
`realized_invest`, `realized_existing` and `realized_divest` (capacity keyed
|
|
1464
|
+
by period: the existing capacity entered once, at the first solve's first
|
|
1465
|
+
period, so a period-varying `existing` was lost in later solves) were replaced
|
|
1466
|
+
by `realized_cohort` / `realized_retire`.
|
|
1460
1467
|
|
|
1461
1468
|
## Solution extraction
|
|
1462
1469
|
|
|
1463
1470
|
`process_outputs.read_highs_solution.VARIABLE_SPECS` declares every
|
|
1464
1471
|
variable and dual to harvest from the live `highspy.Highs` instance:
|
|
1465
1472
|
`v_flow`, `v_state`, `v_invest`, `v_divest`, `vq_*`, period / total /
|
|
1466
|
-
cumulative invest-cap duals, `co2_max_*` duals, the
|
|
1473
|
+
cumulative invest-cap duals, `co2_max_*` duals, the discount-factor-adjusted
|
|
1467
1474
|
`v_dual_node_balance`, and so on. Each `VariableSpec` carries an
|
|
1468
1475
|
`unscale_by` field so row / objective scaling is undone before the parquet
|
|
1469
1476
|
is written.
|
|
@@ -201,7 +201,8 @@ few shared expressions):
|
|
|
201
201
|
`add_variables(b)` are called from here. Declaration order is the LP
|
|
202
202
|
column order.
|
|
203
203
|
3. `_shared_expressions` — expressions read by several families (reserve
|
|
204
|
-
coupling sums,
|
|
204
|
+
coupling sums, the capacity in service `b.cap` of `_capacity`,
|
|
205
|
+
`op_factor`).
|
|
205
206
|
4. One `_eq_<family>(b)` per core equation family, in emit order,
|
|
206
207
|
interleaved with the feature modules' `add_constraints(b)`.
|
|
207
208
|
5. `_obj_<family>(b)` and the modules' `objective_terms(b)` return their
|
|
@@ -229,7 +230,9 @@ group / cumulative / flow-group limits), `_commodity_ladder`,
|
|
|
229
230
|
`_dc_power_flow`, `_exact` (direction switch of `exact` connections),
|
|
230
231
|
`_delay` (delayed inputs, used by `conversion_indirect`) and
|
|
231
232
|
`_non_anticipativity` (stochastic ties).
|
|
232
|
-
Small helpers shared by these live in `_common`.
|
|
233
|
+
Small helpers shared by these live in `_common`. `_capacity` builds the
|
|
234
|
+
capacity in service once per solve (`b.cap`, below); every family that
|
|
235
|
+
reads an investment or a retirement takes its frames and sums from there.
|
|
233
236
|
|
|
234
237
|
**Emit order is part of the LP.** Row and column order decide which
|
|
235
238
|
alternate optimum the solver returns, so moving a step in the table of
|
|
@@ -301,6 +304,96 @@ For a unit, connection or storage node `e` in period `d`:
|
|
|
301
304
|
- `invest_*`, `retire_*`, `cumulative_*`, `invest_forced` and the capacity a
|
|
302
305
|
construction lead time carries are MW (MWh) in every case. `v_invest` and
|
|
303
306
|
`v_divest` are continuous, in units of `unitsize`.
|
|
307
|
+
- The capacity in service (`model/_capacity.py`, built once per solve from
|
|
308
|
+
the cohort table `preprocess/params/_cohorts.py`), in units of `unitsize`
|
|
309
|
+
(`state_unitsize` for a storage node):
|
|
310
|
+
- `invested[e,d] = Σ_{d′ : (e,d′,d) ∈ alive} v_invest[e,d′]`: the
|
|
311
|
+
investments in service in `d` — the investment cohort `(e,d′)` is alive
|
|
312
|
+
in `d` when `y_on ≤ y[d] < y_eol`, along the scenario lineage of a fan.
|
|
313
|
+
`y_on` is the start of operation (existing capacity:
|
|
314
|
+
`y_on = y[d0] − age`, `d0` the first period of the run, `age` from
|
|
315
|
+
`age_at_model_start` or `model.start_year − build_year`) and
|
|
316
|
+
`y_eol = round_end_of_life(y_on + lifetime_technical, end_of_life_method)`,
|
|
317
|
+
the `lifetime_technical` of the period the capacity comes online (`d0`
|
|
318
|
+
for existing capacity)
|
|
319
|
+
(`_run_calendar.round_end_of_life`: the nearer period start for
|
|
320
|
+
`closest_seam`, the default, a tie to the later one; the one at or after
|
|
321
|
+
it for `next_seam`, at or before it for `previous_seam`; within
|
|
322
|
+
`YEAR_TOL`; `+inf` for `reinvest_automatic`);
|
|
323
|
+
- `prebuilt[e,d]`: the same over the cohorts in service from the start of
|
|
324
|
+
`d` (`y[d] > y_on`), not starting to operate in `d`;
|
|
325
|
+
- `retired[e,d] = Σ_{d′ : (e,d′,d) ∈ retired} v_divest[e,d′] + v_divested_built[e,d]`: a retirement
|
|
326
|
+
of existing capacity decided in `d′` counts in `d` when `y[d′] ≤ y[d]`
|
|
327
|
+
and the existing cohort of `e` is still in service in `d` (none for
|
|
328
|
+
`reinvest_automatic`, which has no end of life); `v_divested_built[e,d]`
|
|
329
|
+
is the model-built capacity retired so far that still counts in `d`
|
|
330
|
+
(`model/_retire_built.py`, `divestedBuilt`: the retirements
|
|
331
|
+
`v_divest_built[e,c,d′]` of each model-built cohort `c` of a
|
|
332
|
+
`reinvest_choice` / `no_reinvestment` entity, `(d′,d) ∈ dd_forward`, while
|
|
333
|
+
`c` is in service in `d`; one column per (entity, period) whatever the
|
|
334
|
+
number of cohorts; absent without such a cohort, so existing-only rows
|
|
335
|
+
keep their terms). A cohort retires at most what it has
|
|
336
|
+
(`maxDivest_cohort`: the investment of this solve, or the carried size less
|
|
337
|
+
the carried retirements); a chain carries each retirement with its cohort
|
|
338
|
+
(handoff `realized_retire`), so the existing capacity's limit
|
|
339
|
+
(`maxRetired_existing`) counts only the existing cohort's;
|
|
340
|
+
- `retired[e,d]` also subtracts `v_extended[e,d]`, the capacity extended beyond its end of life that is in
|
|
341
|
+
service in `d` (`model/_extend.py`, `extendedCapacity`: each extension `v_extend[e,c,d′]` of a cohort `c`
|
|
342
|
+
reaching its end of life at the start of an investment period `d′`, `(d′,d) ∈ dd_forward`, while
|
|
343
|
+
`y[d] < y_eol(x)` of the extension cohort `x = extend:<d′>:<c>`). It is a capacity term, never an
|
|
344
|
+
investment: the investment limits and `constraint_invested_capacity_coeff` do not count it. A cohort
|
|
345
|
+
extends at most what it has in service at its end of life (`maxExtend_cohort`), once;
|
|
346
|
+
- `cap[e,d] = existing[e,d] + invested[e,d] − retired[e,d]`.
|
|
347
|
+
- `existing_mw[e,d]` (`p_entity_all_existing`, MW or MWh; the `existing` of
|
|
348
|
+
`cap` is `existing_mw / unitsize`) — the capacity a solve starts from, from
|
|
349
|
+
the cohorts (`_cohort_handoff.existing_capacity`, emitted per solve by
|
|
350
|
+
`_chain_params.emit_existing_capacity`):
|
|
351
|
+
`existing_mw[e,d] = pre[e,d] + carried[e,d] − retired_carried[e,d]`, with
|
|
352
|
+
`pre[e,d] = capacity[e,d]` while the existing cohort (counted from the start
|
|
353
|
+
of the run) is in service in `d`, `carried[e,d]` the cohorts earlier solves
|
|
354
|
+
of the run realised (handoff `realized_cohort`) in service in `d`, and
|
|
355
|
+
`retired_carried[e,d]` their realised retirements still counting in `d`
|
|
356
|
+
(handoff `realized_retire`). The same formula in every solve: the first,
|
|
357
|
+
a chained, a roll, a nested sub-solve; the user's `existing` is read for
|
|
358
|
+
each period of each solve.
|
|
359
|
+
- The price of an investment cohort per year in service (`a_cap`, CUR/MW a
|
|
360
|
+
year, MWh for storage; column `a_cap` of the cohort table, carried by
|
|
361
|
+
`realized_cohort`; `_npv._per_method_annuity_lf`, `_annuity.level_factor`),
|
|
362
|
+
all values read at the period `c` the capacity comes online:
|
|
363
|
+
`A = invest_cost[e,c]·1000·r/(1 − (1+r)^−n)·(1+r)^(off_inv − 1)`
|
|
364
|
+
(`c·1000/n` for `r = 0`), `r = discount_rate[e,c]`, `n = payback_time[e,c]`
|
|
365
|
+
(else `lifetime_technical[e,c]`), `off_inv =
|
|
366
|
+
model.discount_offset_investment`;
|
|
367
|
+
`a_cap = A·G(n)/G(L)` with `L = lifetime_technical[e,c]`,
|
|
368
|
+
`G(x) = Σ_{k<⌈x⌉} min(1, x−k)·(1+i)^−k`, `i = model.social_discount_rate`
|
|
369
|
+
(the investment payments are weighed by `inflation_inv[d]`, the social
|
|
370
|
+
discount factor of investment payments, at `discount_offset_investment`)
|
|
371
|
+
(`G(x) = x` for `i = 0`); `a_cap = A` when `n = L`. The loan's present value spread evenly over the real
|
|
372
|
+
lifetime: one price for every build period, rounding and period length.
|
|
373
|
+
The timing factor `(1+r)^(off_inv − 1)` (`_annuity.annuity_factor`) makes
|
|
374
|
+
the loan worth `invest_cost` at `r` for every `discount_offset_investment`.
|
|
375
|
+
The salvage credit `a_salv = S·(1+r)^−L·af(r, L)` (`af` the annual factor
|
|
376
|
+
`annuity_factor`, `_annuity.salvage_credit`) with `S =
|
|
377
|
+
1000·net_salvage_value[e,d_eol]` (`_npv._level_prices_lf`) lowers the price: the
|
|
378
|
+
objective charges `a_cap − a_salv` over the cohort's periods in service
|
|
379
|
+
(`invest_cost_p` OBJ header). A `reinvest_automatic` cohort is priced by its
|
|
380
|
+
`generation` rows: each plant of the chain at the values of the period it comes
|
|
381
|
+
online (`_npv.generation_prices`, `chain_lumps`; one price for the whole chain
|
|
382
|
+
with constant values, the annuity bit for bit); the replacement of existing
|
|
383
|
+
capacity as one plant (`existing_replacement_prices`), outside the default
|
|
384
|
+
objective (`existing_replacement` OBJ header), and its retirement settled by
|
|
385
|
+
`chain_retirement_costs`. The cohort
|
|
386
|
+
also carries the loan (`pay = A`, `n_pay = n`, `r_loan = r`) and `nsv_eol = S`.
|
|
387
|
+
A life extension (kind `extend`, `parent` the cohort it extends) is priced as
|
|
388
|
+
one plant of its own (`_extend.extension_prices`): capital `E + S_c` (the
|
|
389
|
+
`life_extension_cost` and the parent's salvage value it gives up), loan over
|
|
390
|
+
`life_extension_years` at its `discount_rate`, its own salvage at the extended
|
|
391
|
+
end of life; its option costs `(a_cap − a_salv)·S̄` and its fixed cost over its
|
|
392
|
+
periods in service (`extend_cost` OBJ header), and its retirement is one of
|
|
393
|
+
model-built capacity.
|
|
394
|
+
The existing cohort carries `r_loan = r_x`, `a_salv = a_x` and `nsv_eol = S_x`
|
|
395
|
+
of its salvage credit (`_existing_salvage.existing_salvage`, `divest_cost_p` /
|
|
396
|
+
`existing_salvage` OBJ headers).
|
|
304
397
|
|
|
305
398
|
### Required fields
|
|
306
399
|
|
|
@@ -431,7 +524,7 @@ adds:
|
|
|
431
524
|
| `maxState_rp_start` | `model._eq_rp_storage_chain` | Sibling capacity bound on `v_state_rp_start[n, d, t]` over `rp_block_first`. Both bounds depend on invest/divest, so they are rows rather than variable bounds. |
|
|
432
525
|
| `non_anticipativity_rp_block_start` | `model._non_anticipativity.add_dispatch_constraints` | `v_state_rp_start` equal across the forecast star at the block starts inside the tie window, for `include_stochastics` nodes in `nodeState_rp`; a block already tied by a `non_anticipativity_storage_state_first` row is left out. |
|
|
433
526
|
|
|
434
|
-
In a stochastic solve every forecast branch period is an rp period with the timeset of the period it branches from (`_solve_writers._with_branch_period_timesets`); `rp_period_previous` is then a tree (a branch's first period ← the trunk period, later periods ← the same branch). A rolling_window solve on representative periods
|
|
527
|
+
In a stochastic solve every forecast branch period is an rp period with the timeset of the period it branches from (`_solve_writers._with_branch_period_timesets`); `rp_period_previous` is then a tree (a branch's first period ← the trunk period, later periods ← the same branch). A rolling_window solve on representative periods is a configuration error (`_run_model._reject_rolling_rp`), and so is a plain bind_forward_only node in a solve on representative periods (`_run_model._reject_plain_forward_in_rp_solve`). A plain bind_within_solve / bind_within_period / bind_intraperiod_blocks node there is a warning (`_run_model._warn_plain_cyclic_in_rp_solve`: the plain cycle moves the level between the representative periods unweighted while their flows are weighted, which is reasonable with equal weights or storage whose inflow timing does not matter; the weights are the user's to use).
|
|
435
528
|
|
|
436
529
|
The three blended-weights methods that activate the block —
|
|
437
530
|
`bind_within_solve_blended_weights`, `bind_within_period_blended_weights`,
|
|
@@ -494,8 +587,19 @@ Representative entries:
|
|
|
494
587
|
|---|---|
|
|
495
588
|
| `_block.py` | `BlockLayout` fan-out — per-entity blocks, overlap sets, block step durations. |
|
|
496
589
|
| `_branch.py` | `period_branch`, `pdt_branch_weight`, `pd_branch_weight` — stochastic branch weighting. |
|
|
590
|
+
| `_cohorts.py` | The cohort table (`cohort`, `cohort_alive`, `dd_forward`): the start of operation and end of life of the existing capacity and of each investment, the periods each is in service, the reach of a retirement; the `generation` rows of a `reinvest_automatic` chain (`chain_rows`: each plant that holds the root's capacity in turn, from its start of operation to its rounded end of life, at least one period each, to the end of the horizon; no capacity of their own); its views are the only lifetime gate (end of life, expired periods, investment alive / pre-built, retirement reach); `in_service` gives the model (`model/_capacity.py`) and the output readers the periods each investment and retirement counts in. |
|
|
591
|
+
| `_cohort_handoff.py` | The cohorts carried between the solves of a run: `realized_cohorts` writes the handoff `realized_cohort` / `realized_retire` (the realized investments, their chains and life extensions, and the retirements per cohort, chain-cumulative); `existing_capacity` sums the existing and the carried cohorts into the capacity a solve starts from. |
|
|
592
|
+
| `_extend.py` | The life extensions (`cd_extend`, `cdd_extend`, `cohort_extend`): each cohort that ends its life at the start of an investment period can be extended by `life_extension_years`; the extension cohort (`extend:<period>:<parent>`) and its periods in service join the cohort table; its prices and costs (`extension_prices`, `extension_costs`, `apply_extension_costs`), the one cost point. |
|
|
497
593
|
| `_existing.py` | `p_entity_all_existing`, `p_entity_previously_invested_capacity` — cross-solve existing-capacity composition. |
|
|
498
|
-
| `_npv.py` |
|
|
594
|
+
| `_npv.py` | The investment price: the per-method annuity, the level prices, the chain and generation prices of `reinvest_automatic`, the investment lump `ed_entity_annual_discounted` (`apply_invest_lumps`) and the cohort prices. |
|
|
595
|
+
| `_fixed_costs.py` | The lifetime fixed costs: `ed_lifetime_fixed_cost`, the side a retirement saves `ed_lifetime_fixed_cost_divest` (`apply_retirement_fixed_cost`), `p_ed_fixed_cost`. |
|
|
596
|
+
| `_retire_settlement.py` | The retirement settlement of model-built cohorts and of `reinvest_automatic` chains (`cd_divest_built_cost` / `cd_divest_built_fixed`, `apply_built_retirement_costs`). |
|
|
597
|
+
| `_existing_salvage.py` | The salvage and replacement prices of existing capacity (`ed_divest_salvage`, `ed_existing_salvage_credit`; `apply_retirement_salvage`, `apply_existing_replacement`). |
|
|
598
|
+
| `_lifetime_inputs.py` | The per-entity readers and the per-decision lifetime inputs the lifetime costs share: entity class, `invest_method` / `lifetime_method`, the lifetime at the period a decision comes online, the raw fixed cost, the per-period walk (`period_walk_iterator`) and its window to the end of life, the registration of the lumps set as values. |
|
|
599
|
+
| `_discount.py` | Discount factors: the inflation scalars, the year rows, the per-period investment and operations factors (`p_inflation_op`), the solve's discount base from the run start (`solve_year_rows`), the run years (`run_years`). |
|
|
600
|
+
| `_report_lines.py` | Placing a reported cost event in a period (`report_years`, `event_period`, `stack_lines`). |
|
|
601
|
+
| `_run_costs.py` | The run-level fields of the reported costs (no model term reads them): the run's investment lump `ed_entity_annual_discounted_run` and cost lines, the run's discount factors `p_inflation_op_run` / `p_inflation_inv_run`, `p_entity_pre_existing`. |
|
|
602
|
+
| `_lifetime_costs.py` | The apply boundary: `apply_npv` (a Spine solve) and `apply_run_fields_of_synthetic_solve` (a roll or nested sub-solve) set the lifetime costs on `flex_data`. |
|
|
499
603
|
| `_profiles.py` | `p_profile_value` and the `p_process_existing_count` factor used by profile-bound constraints. |
|
|
500
604
|
| `_walks.py` | Backward / forward step lookups (`dtttdt`, `dtttdt_forward_only`, the block-interior variant). |
|
|
501
605
|
| `_arc_unions.py` | Arc set algebra: `flow_to_n`, `flow_from_n`, the commodity-flow joins, the reverse-arc additions for connections. |
|
|
@@ -587,9 +691,9 @@ for the handoff-key family.
|
|
|
587
691
|
|
|
588
692
|
### Topological ordering
|
|
589
693
|
|
|
590
|
-
Emitters have dependencies — `
|
|
591
|
-
`
|
|
592
|
-
from `_period_params`; `
|
|
694
|
+
Emitters have dependencies — `_chain_params.emit_existing_capacity` reads
|
|
695
|
+
`realized_cohort` from prior solves' handoffs, `_existing` reads `pd_invest_set`
|
|
696
|
+
from `_period_params`; `_fixed_costs` reads
|
|
593
697
|
`ed_lifetime_fixed_cost` which depends on `p_entity_all_existing`;
|
|
594
698
|
`_block`'s overlap sets feed the arc-side block aggregation
|
|
595
699
|
in `_arc_unions`.
|
|
@@ -605,7 +709,7 @@ typically means appending one call to the right phase.
|
|
|
605
709
|
is the in-memory dict-of-frames that every cascade module reads from
|
|
606
710
|
and writes to. Keys are declared in `_provider_keys.py`; the
|
|
607
711
|
convention is `<parent>/<basename>` (e.g. `solve_data/foo`,
|
|
608
|
-
`input/bar`, `handoff/
|
|
712
|
+
`input/bar`, `handoff/realized_cohort`). Bare-basename consumer
|
|
609
713
|
lookups are resolved against the parent-qualified key, so a single
|
|
610
714
|
`put` registers the frame under one canonical name.
|
|
611
715
|
|
|
@@ -695,7 +799,7 @@ Known gaps (not exercised, or not Enum, in this mode):
|
|
|
695
799
|
fixture runs it; only the Benders / master-hosted region tests that
|
|
696
800
|
load with `axis_enums=True` cover it.
|
|
697
801
|
- Intended narrowing casts null labels outside the scenario's
|
|
698
|
-
vocabulary: `d` casts of periods outside the solve (`
|
|
802
|
+
vocabulary: `d` casts of periods outside the solve (`_retire_settlement.py`,
|
|
699
803
|
`_derived.py`) and the `constraint` cast in `_spinedb_reader.py`. No
|
|
700
804
|
LP effect in the fixtures; a site that needs such a label must not
|
|
701
805
|
read it through the cast.
|
|
@@ -851,13 +955,14 @@ user-facing story and the parameters that gate this path.
|
|
|
851
955
|
When a solve is part of a cascade (rolling-window, nested, or stochastic
|
|
852
956
|
sub-solves), each completed solve produces a `SolveHandoff` that seeds
|
|
853
957
|
the next solve's preprocessing. The dataclass is in
|
|
854
|
-
`solve/_handoff.py`; its
|
|
958
|
+
`solve/_handoff.py`; its optional carriers are all
|
|
855
959
|
`pl.DataFrame | None`:
|
|
856
960
|
|
|
857
961
|
| Field | Shape | Meaning |
|
|
858
962
|
|---|---|---|
|
|
859
|
-
| `
|
|
860
|
-
| `
|
|
963
|
+
| `realized_cohort` | `[entity, cohort, kind, method, eol_method, period_decided, period_online, y_on, age, y_life, y_end, y_first_life_end, y_eol, period_eol, a_cap, pay, n_pay, r_loan, a_salv, nsv_eol, root, parent, size]` | The investments realised by the run so far, one row per cohort (investment decision), chain-cumulative: the cohort-table row of the deciding solve (years of the run; a later solve compares its periods' run years with `y_on` / `y_eol`, no rounding repeated; `a_cap` / `a_salv` the capital price and the salvage credit per year in service, `pay` / `n_pay` / `r_loan` its loan, `nsv_eol` the salvage value at its end of life) and the size (MW, MWh); a `reinvest_automatic` cohort is followed by its `generation` rows (`root` the cohort, size empty: the plants of its chain and their prices, as the deciding solve placed them). A realized life extension is a row of its own (kind `extend`, `parent` the cohort it extends, its size): a later solve counts it as capacity (`p_entity_all_existing`) but not as previously invested capacity or as investment (`p_entity_invested`, the investment limits), retires it as model-built capacity, and offers its parent no other extension. |
|
|
964
|
+
| `realized_retire` | `[entity, cohort, period, value]` | Retired capacity per cohort and realised decision period, chain-cumulative; counts while the cohort is in service. |
|
|
965
|
+
| `realized_commission` | `[entity, period, commission_period, value]` | Realised investments with a construction lead time (coming online / in construction in a later solve). |
|
|
861
966
|
| `divest_cumulative` | `[entity, value]` | Cumulative divest per entity. |
|
|
862
967
|
| `roll_end_state` | `[node, value]` | `v_state` × unitsize at the last realised step; the start of the sub-solves that continue from it (routed, see [Storage carry routing](#storage-carry-routing-where-a-sub-solves-storage-starts)). |
|
|
863
968
|
| `upward_roll_end_state` | `[node, value]` | Same shape as `roll_end_state`; dispatch→storage upward feedback in nested cascades. |
|
|
@@ -921,6 +1026,10 @@ on the child solve:
|
|
|
921
1026
|
· rp_cost_weight[d, t] · inflation_op[d] / period_share[d]
|
|
922
1027
|
· pdt_branch_weight[d, t]
|
|
923
1028
|
|
|
1029
|
+
with `inflation_op[d]` (`p_inflation_op`, the social discount factor of
|
|
1030
|
+
operating costs) = Σ over the years of `d` of the years' length ·
|
|
1031
|
+
`(1 + social_discount_rate)^−(years from the run start + discount_offset_operations)`.
|
|
1032
|
+
|
|
924
1033
|
The same parameter is also populated for any node whose
|
|
925
1034
|
`storage_binding_method` is `use_reference_price`, so the routing is
|
|
926
1035
|
unified and the dual carrier merely supplies values for the existing
|
|
@@ -1059,7 +1168,26 @@ blocks forward in every period on `block_forward_lag` (the
|
|
|
1059
1168
|
roll uses in a period it holds in part), with the start in the first
|
|
1060
1169
|
block's balance and the end pin on the last block. So the start pin and
|
|
1061
1170
|
the end pin never sit on one state: a cyclic node is pinned at its wrap
|
|
1062
|
-
target by `fix_start` only, and at its end by `fix_end` only.
|
|
1171
|
+
target by `fix_start` only, and at its end by `fix_end` only. In a solve
|
|
1172
|
+
on representative periods the mapping is `_FIX_START_END_FORWARD_RP`: a
|
|
1173
|
+
`bind_within_timeblock` fix_start_end node becomes
|
|
1174
|
+
`bind_forward_only_blended_weights` (plain `bind_forward_only` there is a
|
|
1175
|
+
configuration error, `_reject_plain_forward_in_rp_solve`, checked on the
|
|
1176
|
+
database methods before this mapping).
|
|
1177
|
+
|
|
1178
|
+
Then `_run_model._timeblock_binds_within_period_in_roll` rewrites
|
|
1179
|
+
`bind_within_timeblock` to `bind_within_period` in a rolling solve
|
|
1180
|
+
(`_reject_rolling_with_gaps` has made sure each period is one timeblock),
|
|
1181
|
+
so the per-period rolling rule (`_scope_rows`, `scope_*` rows) applies to
|
|
1182
|
+
it. Order per sub-solve: non-RP downgrade → `_reject_rolling_rp` /
|
|
1183
|
+
`_reject_rolling_with_gaps` / `_warn_plain_cyclic_in_rp_solve` /
|
|
1184
|
+
`_reject_plain_forward_in_rp_solve` → fix_start_end → rolling timeblock.
|
|
1185
|
+
`_restore_methods` captures the frame after these rewrites.
|
|
1186
|
+
|
|
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.
|
|
1063
1191
|
|
|
1064
1192
|
## Output-writer shape adaptation
|
|
1065
1193
|
|
|
@@ -1107,8 +1235,8 @@ empty because the thing they read was a file no normal run writes):
|
|
|
1107
1235
|
`solve_data/group_entity` ⋉ `solve_data/group_invest`, replacing a disk read of
|
|
1108
1236
|
`input/group_entity_invest.csv` — a file only the retired GMPL model ever wrote.
|
|
1109
1237
|
|
|
1110
|
-
The
|
|
1111
|
-
`fix_storage_usage`, `p_roll_continue_state
|
|
1238
|
+
The four `solve_data/` handoff-mirror CSVs (`p_entity_divested`, `fix_storage_quantity`,
|
|
1239
|
+
`fix_storage_usage`, `p_roll_continue_state`) are write-only
|
|
1112
1240
|
debug output for `--csv-dump`, never read back by anything (`handoff_writers.py`'s module
|
|
1113
1241
|
docstring); a plain run computes and writes none of them. `period_capacity.csv` is the one
|
|
1114
1242
|
exception — written every run, unconditionally, always header-only (the per-period capacity dumps
|
|
@@ -62,7 +62,7 @@ Right-click a row for the same actions as the buttons. Column headers sort the l
|
|
|
62
62
|
|
|
63
63
|
### Migration and frozen databases
|
|
64
64
|
|
|
65
|
-
When the list is refreshed, a `.sqlite` source older than this FlexTool (or at the current version but with an older SpineDB schema, e.g. after a `spinedb_api` update) is migrated to the current version: a source in `input_sources/` without asking (a safety copy is kept until the migration has finished), an external reference after asking whether to migrate it in place or copy it into the project first. Checking the version reads the file read-only, so nothing in the file changes before you agree. Adding scenarios to the execution list, or opening **Calibrate investments**, checks their sources again and migrates any that changed since the last refresh; FlexTool does not run a database that is not at the current version.
|
|
65
|
+
When the list is refreshed, a `.sqlite` source older than this FlexTool (or at the current version but with an older SpineDB schema, e.g. after a `spinedb_api` update) is migrated to the current version: a source in `input_sources/` without asking (a safety copy, `<source>.premigration.bak`, is kept until the migration has finished and put back if it fails, so the source is either migrated or as it was; see [Migrate database schema](terminal_workflow.md#migrate-database-schema)), an external reference after asking whether to migrate it in place or copy it into the project first. Checking the version reads the file read-only, so nothing in the file changes before you agree. Adding scenarios to the execution list, or opening **Calibrate investments**, checks their sources again and migrates any that changed since the last refresh; FlexTool does not run a database that is not at the current version.
|
|
66
66
|
|
|
67
67
|
A released model can be **frozen** so that it is never migrated in place without asking: right-click a `.sqlite` source → **Freeze database…** and give a label, e.g. `Reference case 1.0` (at most 170 characters). Only a database at the current version can be frozen. A frozen source shows ❄ in the status column; the tooltip shows the label, the version and the date it was frozen. **Unfreeze database** removes the marker. The same can be done in a terminal with `flextool-freeze` (see [Freeze a released database](terminal_workflow.md#freeze-a-released-database)).
|
|
68
68
|
|
|
@@ -33,7 +33,7 @@ There methods can be combined by setting the `co2_method` to *price_period*, *pr
|
|
|
33
33
|
- a carbon-free *clean_plant* (`existing` 500 MW, `conversion_method` *none*), turned on in this alternative, with a `unit__outputNode` (*clean_plant*, *west*) and no input; its `other_operational_cost` of 80 CUR/MWh is on that flow;
|
|
34
34
|
- `co2_method` *period* on the group *co2_limit*, whose member is *coal_market*.
|
|
35
35
|
|
|
36
|
-
The objectives below assume no `
|
|
36
|
+
The objectives below assume no `social_discount_rate` (0).
|
|
37
37
|
|
|
38
38
|
**The trajectories.** Each trajectory alternative sets `co2_max_period` on *co2_limit* as a period map [tCO2/a]:
|
|
39
39
|
|